| Prev |   7     8   9   10     11   19 | Next | Last
maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   OS2008 / Maemo 4 / Chinook - Diablo (https://talk.maemo.org/forumdisplay.php?f=29)
-   -   Odds and ends (https://talk.maemo.org/showthread.php?t=74915)

jstokes 2011-09-14 23:00

Re: Odds and ends
 
Hmm, maybe "su - user -c 'xmmsctrl whatever'" in the script will work

Addison 2011-09-15 09:31

Re: Odds and ends
 
Do you mean writing it exactly like this?


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


That gave me nothing as well.

jstokes 2011-09-15 09:41

Re: Odds and ends
 
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


auouymous 2011-09-15 10:55

Re: Odds and ends
 
Be sure to stop that screenlock program if you try out the new ASUI release. :)

Addison 2011-09-15 13:34

Re: Odds and ends
 
Quote:

Originally Posted by jstokes (Post 1088757)
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?

jstokes 2011-09-15 13:42

Re: Odds and ends
 
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 :)

Addison 2011-09-15 15:03

Re: Odds and ends
 
This is how I have it set.
/usr/bin/xmmslock
http://img199.imageshack.us/img199/3...1091510524.png

/home/user/xmmskey
http://img828.imageshack.us/img828/8...1091510584.png

lma 2011-09-15 17:04

Re: Odds and ends
 
Just a thought: make it setuid user and omit the "su - user -c" business.

jstokes 2011-09-15 17:13

Re: Odds and ends
 
@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

Addison 2011-09-15 17:13

Re: Odds and ends
 
Is the "setuid user" permissions correct on the way I have it now, lma?


| Prev |   7     8   9   10     11   19 | Next | Last
All times are GMT. The time now is 21:02.

vBulletin® Version 3.8.8