View Single Post
Posts: 543 | Thanked: 181 times | Joined on Aug 2009 @ Universe,LocalCluster.MilkyWay.Sol.Earth.Europe.Slovenia.Ljubljana
#88
Originally Posted by thp View Post
Sure. We do this already for MPlayer using a named pipe (gitweb link). Ideally, the player should have a simple "pause" and not a "togglepause" signal, otherwise playback would start if it's paused and you unplug your headphones.

What I can offer is a directory like /etc/headphoned.d/ where other packages can install scripts that are executed when the headphones are unplugged. Would this be a workable solution for you?

Yes it has a simple pause as well. And yes the solution would be more than workable. Probably the best all around.
__________________
For any repos or anything else I might have working on my N900 see:
http://wiki.maemo.org/User:Ruskie
A quick list of what I have in the repos
zsh|xmms2|fcron|gtar|gcoreutils
 

The Following User Says Thank You to ruskie For This Useful Post: