background: use quote in case of spaces default tip @

Tue, 22 May 2018 21:39:11 +0200

author
David Demelier <markand@malikania.fr>
date
Tue, 22 May 2018 21:39:11 +0200
changeset 39
fa72d1db4fe4
parent 38
b8ee1540e065

background: use quote in case of spaces

dmenu-background/main.cpp file | annotate | diff | comparison | revisions
--- a/dmenu-background/main.cpp	Fri May 04 10:33:55 2018 +0200
+++ b/dmenu-background/main.cpp	Tue May 22 21:39:11 2018 +0200
@@ -127,7 +127,7 @@
 {
     std::ostringstream oss;
 
-    oss << command << " " << file;
+    oss << command << " \"" << file << "\"";
 
     std::system(oss.str().c_str());
 }

mercurial