Re: Issue 126 in xmonad: xmonad doesn't warn when xmonad executable cannot be found

Updates: Summary: xmonad doesn't warn when xmonad executable cannot be found Status: Accepted Labels: Usability Comment #6 on issue 126 by vogt.adam: xmonad doesn't warn when xmonad executable cannot be found http://code.google.com/p/xmonad/issues/detail?id=126 In #xmonad today, jeffwheeler had some trouble getting his config to reload. It seems like this problem could have been avoided by adding a bit of logic to the default config: Currently M-q is bound to: spawn "xmonad --recompile && xmonad --restart" This could instead be something like: spawn $ "which xmonad && { xmonad --recompile && xmonad --restart } || " ++ "xmessage xmonad not in \$PATH: \"$PATH\"" But maybe this logic should be implemented in haskell, or is the /bin/sh syntax used here going to work everywhere? -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings

Comment #7 on issue 126 by allbery.b: xmonad doesn't warn when xmonad executable cannot be found http://code.google.com/p/xmonad/issues/detail?id=126 One small change for Solaris compatibility: add a semicolon before the close brace, otherwise you will get a head-scratchy type of error: [5] zaphod:501 {allbery} [~] Z$ /bin/sh -c 'true && { true && true } || echo huh' /bin/sh: syntax error at line 1: `end of file' unexpected zsh: exit 2 /bin/sh -c 'true && { true && true } || echo huh' [5] zaphod:502 {allbery} [~] Z$ /bin/sh -c 'true && { true && true; } || echo huh' [5] zaphod:503 {allbery} [~] Z$ -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings

Updates:
Status: Patch
Owner: SpencerJanssen
Comment #8 on issue 126 by vogt.adam: xmonad doesn't warn when xmonad
executable cannot be found
http://code.google.com/p/xmonad/issues/detail?id=126
Here is:
Mon Mar 29 20:33:10 EDT 2010 Adam Vogt

Updates: Status: Fixed Comment #9 on issue 126 by vogt.a...@gmail.com: xmonad doesn't warn when xmonad executable cannot be found http://code.google.com/p/xmonad/issues/detail?id=126 I've pushed the patch.
participants (1)
-
codesite-noreply@google.com