SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#26 2011-07-09 11:06:09

Tunafish
#! Die Hard
From: the Netherlands
Registered: 2010-03-07
Posts: 1,204

Re: Looking for a more friendly shutdown...

Offline

Help fund CrunchBang, donate to the project!

#27 2011-07-12 03:18:49

johnraff
nullglob
From: Nagoya, Japan
Registered: 2009-01-07
Posts: 4,148
Website

Re: Looking for a more friendly shutdown...

Last edited by johnraff (2011-07-12 04:30:13)

Offline

#28 2011-07-12 03:56:42

Dev
Member
Registered: 2011-07-08
Posts: 27

Re: Looking for a more friendly shutdown...

Offline

#29 2011-07-12 15:08:39

Tunafish
#! Die Hard
From: the Netherlands
Registered: 2010-03-07
Posts: 1,204

Re: Looking for a more friendly shutdown...

Offline

#30 2012-02-14 21:50:12

arelim
Member
From: Hungary with love
Registered: 2012-02-09
Posts: 11

Re: Looking for a more friendly shutdown...

guys, i have a small problem with the script. well, not with the script, but with the execution of the script. i've saved the sh file as ~/.bin/safeshutdown.sh and added the following lines to rc.xml, but to no avail.

    <keybind key="XF86PowerOff">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>Shutdown Now</name>
        </startupnotify>
        <command>safeshutdown</command>
      </action>
    </keybind>

when i press the power button, all i got is an error message about permissions and denials.
am i doing something wrong?


ɐɹǝןıɯ ןıʞǝs ɔɹnuɔɥqɐuɓ

Offline

#31 2012-02-14 22:09:49

lain
#! Junkie
Registered: 2011-11-03
Posts: 313

Re: Looking for a more friendly shutdown...

<keybind key="XF86PowerOff">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>Shutdown Now</name>
        </startupnotify>
        <command>safeshutdown.sh</command>
      </action>
    </keybind>

Last edited by lain (2012-02-14 22:16:02)

Offline

#32 2012-02-15 13:22:42

arelim
Member
From: Hungary with love
Registered: 2012-02-09
Posts: 11

Re: Looking for a more friendly shutdown...

<keybind key="XF86PowerOff">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>Shutdown Now</name>
        </startupnotify>
        <command>safeshutdown.sh</command>
      </action>
    </keybind>

ɐɹǝןıɯ ןıʞǝs ɔɹnuɔɥqɐuɓ

Offline

#33 2012-02-15 14:18:37

lain
#! Junkie
Registered: 2011-11-03
Posts: 313

Re: Looking for a more friendly shutdown...

Hmm... are you sure that your script is in ~/.bin and not ~/bin?

I don't use openbox, but you could try this:

<command>sh /home/*yourname*/.bin/safeshutdown.sh</command>

If that does not work you should check your script for errors. (Have you tried executing it from a terminal?)

Offline

#34 2012-02-15 22:17:47

arelim
Member
From: Hungary with love
Registered: 2012-02-09
Posts: 11

Re: Looking for a more friendly shutdown...

<command>sh /home/*yourname*/.bin/safeshutdown.sh</command>

ɐɹǝןıɯ ןıʞǝs ɔɹnuɔɥqɐuɓ

Offline

#35 2015-11-02 08:30:39

johnraff
nullglob
From: Nagoya, Japan
Registered: 2009-01-07
Posts: 4,148
Website

Re: Looking for a more friendly shutdown...

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: bleh

Debian Logo