mirror of
https://github.com/perk11/runwhenidle.git
synced 2026-01-10 06:08:00 -05:00
Move newline from fprintf_error to the error messages
This commit is contained in:
4
main.c
4
main.c
@@ -138,7 +138,7 @@ int main(int argc, char *argv[]) {
|
||||
x_display = XOpenDisplay(NULL);
|
||||
if (!x_display) {
|
||||
xscreensaver_is_available = 0;
|
||||
fprintf_error("Couldn't open an X11 display!");
|
||||
fprintf_error("Couldn't open an X11 display!\n");
|
||||
} else {
|
||||
int xscreensaver_event_base, xscreensaver_error_base; //not sure why these are needed
|
||||
xscreensaver_is_available = XScreenSaverQueryExtension(x_display, &xscreensaver_event_base,
|
||||
@@ -149,7 +149,7 @@ int main(int argc, char *argv[]) {
|
||||
}
|
||||
|
||||
if (!xscreensaver_is_available) {
|
||||
fprintf_error("No available method for detecting user idle time on the system, user will be considered idle to allow the command to finish.");
|
||||
fprintf_error("No available method for detecting user idle time on the system, user will be considered idle to allow the command to finish.\n");
|
||||
}
|
||||
|
||||
pid = run_shell_command(shell_command_to_run);
|
||||
|
||||
Reference in New Issue
Block a user