Re: shutdown menu item

Simon Bowden <[email protected]>
Newsgroups gmane.comp.window-managers.fluxbox.user
Message-ID <[email protected]>
You can't inline the script. The wiki is helping you make a shell script to
call from the menu.

You need to put the #!/bin/sh ... stuff in a file, make it executable, then
call that in your exec:

$ cat > ~/bin/my-shutdown.sh << EOF
#!/bin/sh
gdmflexiserver -a -c 'SET_LOGOUT_ACTION HALT'
kill -TERM $(xprop -root _BLACKBOX_PID | awk '{print $3}')
EOF
$ chmod +x ~/bin/my-shutdown.sh

Then [exec] (Shutdown) { ~/bin/my-shutdown.sh }

Cheers,

 - Simon

On Sun, Jul 4, 2010 at 2:40 PM, Kete <[email protected]> wrote:

> Hello,
> I put Shutdown in my menu and clicked on Reconfigure, but clicking on
> Shutdown doesn't shut down the computer. I'm using xdm in Debian, and
> here is my .fluxbox/menu:
> [begin] (fluxbox)
> [include] (/etc/X11/fluxbox/fluxbox-menu)
> [exec] (Shutdown) { #!/bin/sh
>  gdmflexiserver -a -c 'SET_LOGOUT_ACTION HALT'
>  kill -TERM $(xprop -root _BLACKBOX_PID | awk '{print $3}') }
> [end]
> That's based on
> http://fluxbox-wiki.org/index.php?title=Shutdown_computer_with_dialog I
> also moved it to /etc/X11/fluxbox/fluxbox-menu and clicked Reconfigure,
> but it still didn't work.
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Sprint
> What will you do first with EVO, the first 4G phone?
> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
> _______________________________________________
> Fluxbox-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/fluxbox-users
>

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first

_______________________________________________
Fluxbox-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fluxbox-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.