changeset 39:fa72d1db4fe4 tip @

background: use quote in case of spaces
author David Demelier <markand@malikania.fr>
date Tue, 22 May 2018 21:39:11 +0200
parents b8ee1540e065
children
files dmenu-background/main.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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());
 }