summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2017-04-18 08:24:09 +0200
committerDave Davenport <qball@gmpclient.org>2017-04-18 08:24:09 +0200
commit8c11b48532a133ec60bc7c41e6436c84ab57668c (patch)
treef46e54fc95ac1e8d4ef1d006beff488980263fe5 /source
parent6250e39e311e6a9edc522cbdab7c9581f3435a81 (diff)
Print message about disabled mode to stderr using fprintf.
g_warning breaks the colour output.
Diffstat (limited to 'source')
-rw-r--r--source/rofi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/rofi.c b/source/rofi.c
index c994c36a..a9db81ce 100644
--- a/source/rofi.c
+++ b/source/rofi.c
@@ -367,9 +367,9 @@ static void help_print_disabled_mode ( const char *mode )
int is_term = isatty ( fileno ( stdout ) );
// Only output to terminal
if ( is_term ) {
- g_warning ( "Mode %s%s%s is not enabled. I have enabled it for now.",
+ fprintf ( stderr, "Mode %s%s%s is not enabled. I have enabled it for now.\n",
color_red, mode, color_reset );
- g_warning ( "Please consider adding %s%s%s to the list of enabled modi: %smodi: %s%s%s,%s%s.",
+ fprintf ( stderr, "Please consider adding %s%s%s to the list of enabled modi: %smodi: %s%s%s,%s%s.\n",
color_red, mode, color_reset,
color_green, config.modi, color_reset,
color_red, mode, color_reset