You are not logged in.
Pages: 1
Can anyone tell-me please all the steeps to apply this patch (http://bugs.archlinux.org/task/5371) on mplayer?
Thanks!
Offline
It does not work... I use this python script:
#!/usr/bin/python
#import dbus
import os
import os.path
import sys
#bus = dbus.Bus(dbus.Bus.TYPE_SESSION)
#devobj = bus.get_object('org.gnome.ScreenSaver', '/org/gnome/ScreenSaver')
#dev = dbus.Interface(devobj, "org.gnome.ScreenSaver")
#cookie = dev.Inhibit('MPlayer', 'Watching video')
os.system("killall gnome-screensaver")
command = '/usr/bin/mplayer %s "%s"' % (' '.join(sys.argv[1:-1]), os.path.normpath(sys.argv[-1]))
os.system(command)
os.system("gnome-screensaver")
#dev.UnInhibit(cookie)
Put it in ~/bin and add that to the start of your path. The commented out bits are a fancy dbus method that I never got to work...
Offline
Please tell-me all the steeps I should do (complete version)
Thanks
Offline
1) Create a bin directory in you home directory
2) In your .bashrc, add PATH=~/bin:$PATH (you will need to logout/login to refresh your path)
3) put the script in a file called mplayer in your home directory and run "chmod +x mplayer" on it
Now when you call mplayer, it will pick up that script first.
Offline
Pages: 1