diff options
Diffstat (limited to 'src/RootCmdMenuItem.cc')
-rw-r--r-- | src/RootCmdMenuItem.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/RootCmdMenuItem.cc b/src/RootCmdMenuItem.cc index eabc5d3..a52a4d8 100644 --- a/src/RootCmdMenuItem.cc +++ b/src/RootCmdMenuItem.cc | |||
@@ -23,6 +23,7 @@ | |||
23 | 23 | ||
24 | #include "RootCmdMenuItem.hh" | 24 | #include "RootCmdMenuItem.hh" |
25 | 25 | ||
26 | #include "defaults.hh" | ||
26 | #include "FbCommands.hh" | 27 | #include "FbCommands.hh" |
27 | #include "fluxbox.hh" | 28 | #include "fluxbox.hh" |
28 | 29 | ||
@@ -33,9 +34,10 @@ RootCmdMenuItem::RootCmdMenuItem(const FbTk::FbString &label, | |||
33 | const std::string &cmd): | 34 | const std::string &cmd): |
34 | FbTk::MenuItem(label), | 35 | FbTk::MenuItem(label), |
35 | m_filename(filename) { | 36 | m_filename(filename) { |
36 | 37 | ||
37 | FbTk::RefCount<FbTk::Command> | 38 | std::string prog = cmd.empty() ? realProgramName("fbsetbg") : cmd; |
38 | setwp_cmd(new FbCommands::ExecuteCmd(cmd + " \"" + m_filename + "\"")); | 39 | FbTk::RefCount<FbTk::Command> |
40 | setwp_cmd(new FbCommands::ExecuteCmd(prog + " \"" + m_filename + "\"")); | ||
39 | setCommand(setwp_cmd); | 41 | setCommand(setwp_cmd); |
40 | setToggleItem(true); | 42 | setToggleItem(true); |
41 | } | 43 | } |