Active Topics

 


Reply
Thread Tools
Posts: 235 | Thanked: 339 times | Joined on Nov 2010
#81
Hmm, maybe "su - user -c 'xmmsctrl whatever'" in the script will work
 

The Following User Says Thank You to jstokes For This Useful Post:
Addison's Avatar
Posts: 3,811 | Thanked: 1,151 times | Joined on Oct 2007 @ East Lansing, MI
#82
Do you mean writing it exactly like this?


if [ "$1" = "in" ]; then 'su - user -c 'xmmsctrl next''


That gave me nothing as well.
 

The Following User Says Thank You to Addison For This Useful Post:
Posts: 235 | Thanked: 339 times | Joined on Nov 2010
#83
Try replacing the script with this:

Code:
#!/bin/sh

case $1 in
  in) su - user -c "xmmsctrl next" ;;
  out) su - user -c "xmmsctrl previous" ;;
esac
 

The Following User Says Thank You to jstokes For This Useful Post:
Posts: 875 | Thanked: 918 times | Joined on Sep 2010
#84
Be sure to stop that screenlock program if you try out the new ASUI release.
 

The Following 2 Users Say Thank You to auouymous For This Useful Post:
Addison's Avatar
Posts: 3,811 | Thanked: 1,151 times | Joined on Oct 2007 @ East Lansing, MI
#85
Originally Posted by jstokes View Post
Try replacing the script with this:

Code:
#!/bin/sh

case $1 in
  in) su - user -c "xmmsctrl next" ;;
  out) su - user -c "xmmsctrl previous" ;;
esac
Sorry boss. Nothing on that either.

What are you using this for stokes?
 

The Following User Says Thank You to Addison For This Useful Post:
Posts: 235 | Thanked: 339 times | Joined on Nov 2010
#86
TBH, I have no need for this. Does the script have the executable bit set? If you're running screenlock from the Terminal, you should see the output of xmmsctrl as it's running.

Anyway, I'd forget about this and update ASUI
 

The Following User Says Thank You to jstokes For This Useful Post:
Addison's Avatar
Posts: 3,811 | Thanked: 1,151 times | Joined on Oct 2007 @ East Lansing, MI
#87
This is how I have it set.
/usr/bin/xmmslock


/home/user/xmmskey
 

The Following User Says Thank You to Addison For This Useful Post:
Posts: 2,802 | Thanked: 4,491 times | Joined on Nov 2007
#88
Just a thought: make it setuid user and omit the "su - user -c" business.
 

The Following 2 Users Say Thank You to lma For This Useful Post:
Posts: 235 | Thanked: 339 times | Joined on Nov 2010
#89
@Addison

That looks correct... I guess I should buy a new battery so that I can properly test xmmsctrl myself... auouymous seems to be using the same commands for his new ASUI feature.

@lma

I thought about that, but (and I haven't checked so I may be wrong) I need to be root to use the /dev/input interface directly, so I'd have to fork I think and I'm lazy
 

The Following User Says Thank You to jstokes For This Useful Post:
Addison's Avatar
Posts: 3,811 | Thanked: 1,151 times | Joined on Oct 2007 @ East Lansing, MI
#90
Is the "setuid user" permissions correct on the way I have it now, lma?
 
Reply

Tags
nokia n800, volume


 
Forum Jump


All times are GMT. The time now is 06:00.