mirror of
https://github.com/labwc/labwc.git
synced 2025-11-05 13:29:58 -05:00
Remove info() and die()
This commit is contained in:
parent
22f5073ebd
commit
20fd8f59a7
11 changed files with 26 additions and 51 deletions
|
|
@ -10,7 +10,7 @@
|
|||
#include <strings.h>
|
||||
#include <unistd.h>
|
||||
#include <wayland-server-core.h>
|
||||
|
||||
#include <wlr/util/log.h>
|
||||
#include "common/dir.h"
|
||||
#include "common/log.h"
|
||||
#include "common/nodename.h"
|
||||
|
|
@ -273,7 +273,7 @@ static void
|
|||
post_processing(void)
|
||||
{
|
||||
if (!wl_list_length(&rc.keybinds)) {
|
||||
info("load default key bindings");
|
||||
wlr_log(WLR_INFO, "load default key bindings");
|
||||
bind("A-Escape", "Exit", NULL);
|
||||
bind("A-Tab", "NextWindow", NULL);
|
||||
bind("A-F3", "Execute", "bemenu-run");
|
||||
|
|
@ -323,7 +323,7 @@ rcxml_read(const char *filename)
|
|||
find_config_file(rcxml, sizeof(rcxml), filename);
|
||||
}
|
||||
if (rcxml[0] == '\0') {
|
||||
info("cannot find rc.xml config file; using defaults");
|
||||
wlr_log(WLR_INFO, "cannot find rc.xml config file");
|
||||
goto no_config;
|
||||
}
|
||||
|
||||
|
|
@ -333,7 +333,7 @@ rcxml_read(const char *filename)
|
|||
warn("cannot read (%s)", rcxml);
|
||||
goto no_config;
|
||||
}
|
||||
info("read config file (%s)", rcxml);
|
||||
wlr_log(WLR_INFO, "read config file %s", rcxml);
|
||||
buf_init(&b);
|
||||
while (getline(&line, &len, stream) != -1) {
|
||||
char *p = strrchr(line, '\n');
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <sys/stat.h>
|
||||
#include <wlr/util/log.h>
|
||||
#include "common/dir.h"
|
||||
#include "common/log.h"
|
||||
#include "common/spawn.h"
|
||||
|
|
@ -52,7 +53,7 @@ read_environment_file(const char *filename)
|
|||
if (!stream) {
|
||||
return;
|
||||
}
|
||||
info("read environment file (%s)", filename);
|
||||
wlr_log(WLR_INFO, "read environment file %s", filename);
|
||||
while (getline(&line, &len, stream) != -1) {
|
||||
char *p = strrchr(line, '\n');
|
||||
if (p) {
|
||||
|
|
@ -101,7 +102,7 @@ session_autostart_init(void)
|
|||
warn("no autostart file");
|
||||
goto out;
|
||||
}
|
||||
info("run autostart file (%s)", autostart);
|
||||
wlr_log(WLR_INFO, "run autostart file %s", autostart);
|
||||
int len = strlen(autostart) + 4;
|
||||
char *cmd = calloc(len, 1);
|
||||
strcat(cmd, "sh ");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue