X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=i3-nagbar%2Fmain.c;h=91de317fb67084e8b9dfa3dae2de2f2b4238ccd3;hb=42515308e72e4ea6f6b49508c1ba286263dded64;hp=bdf6582bd04f917fe642892702c90349249d7e6c;hpb=1b69ddacbe01741e01a6955cbe464a7b56fae45b;p=i3%2Fi3 diff --git a/i3-nagbar/main.c b/i3-nagbar/main.c index bdf6582b..91de317f 100644 --- a/i3-nagbar/main.c +++ b/i3-nagbar/main.c @@ -5,7 +5,7 @@ * © 2009-2013 Michael Stapelberg and contributors (see also: LICENSE) * * i3-nagbar is a utility which displays a nag message, for example in the case - * when the user has an error in his configuration file. + * when the user has an error in their configuration file. * */ #include @@ -164,7 +164,9 @@ static void handle_button_release(xcb_connection_t *conn, xcb_button_release_eve char *link_path; char *exe_path = get_exe_path(argv0); sasprintf(&link_path, "%s.nagbar_cmd", script_path); - symlink(exe_path, link_path); + if (symlink(exe_path, link_path) == -1) { + err(EXIT_FAILURE, "Failed to symlink %s to %s", link_path, exe_path); + } char *terminal_cmd; sasprintf(&terminal_cmd, "i3-sensible-terminal -e %s", link_path);