restructure config
This commit is contained in:
parent
1c6a1a4305
commit
ef0c9157f4
46 changed files with 656 additions and 716 deletions
|
@ -1,47 +0,0 @@
|
|||
diff --git a/sway/main.c b/sway/main.c
|
||||
index 85bc2f1c..a2f76590 100644
|
||||
--- a/sway/main.c
|
||||
+++ b/sway/main.c
|
||||
@@ -50,41 +50,7 @@ void sig_handler(int signal) {
|
||||
}
|
||||
|
||||
void detect_proprietary(int allow_unsupported_gpu) {
|
||||
- FILE *f = fopen("/proc/modules", "r");
|
||||
- if (!f) {
|
||||
- return;
|
||||
- }
|
||||
- char *line = NULL;
|
||||
- size_t line_size = 0;
|
||||
- while (getline(&line, &line_size, f) != -1) {
|
||||
- if (strncmp(line, "nvidia ", 7) == 0) {
|
||||
- if (allow_unsupported_gpu) {
|
||||
- sway_log(SWAY_ERROR,
|
||||
- "!!! Proprietary Nvidia drivers are in use !!!");
|
||||
- } else {
|
||||
- sway_log(SWAY_ERROR,
|
||||
- "Proprietary Nvidia drivers are NOT supported. "
|
||||
- "Use Nouveau. To launch sway anyway, launch with "
|
||||
- "--unsupported-gpu and DO NOT report issues.");
|
||||
- exit(EXIT_FAILURE);
|
||||
- }
|
||||
- break;
|
||||
- }
|
||||
- if (strstr(line, "fglrx")) {
|
||||
- if (allow_unsupported_gpu) {
|
||||
- sway_log(SWAY_ERROR,
|
||||
- "!!! Proprietary AMD drivers are in use !!!");
|
||||
- } else {
|
||||
- sway_log(SWAY_ERROR, "Proprietary AMD drivers do NOT support "
|
||||
- "Wayland. Use radeon. To try anyway, launch sway with "
|
||||
- "--unsupported-gpu and DO NOT report issues.");
|
||||
- exit(EXIT_FAILURE);
|
||||
- }
|
||||
- break;
|
||||
- }
|
||||
- }
|
||||
- free(line);
|
||||
- fclose(f);
|
||||
+ return;
|
||||
}
|
||||
|
||||
void run_as_ipc_client(char *command, char *socket_path) {
|
Loading…
Add table
Add a link
Reference in a new issue