Mercurial > vixm
changeset 19:a3385f616b53
Implemented the run shell command command
author | Josef "Jeff" Sipek <jeffpc@josefsipek.net> |
---|---|
date | Sun, 20 Aug 2006 00:31:33 -0400 |
parents | e87e577cc32f |
children | f39963e96ca1 |
files | vixm/control.py vixm/ui.py |
diffstat | 2 files changed, 11 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/vixm/control.py Sun Aug 20 00:19:49 2006 -0400 +++ b/vixm/control.py Sun Aug 20 00:31:33 2006 -0400 @@ -1,4 +1,4 @@ -import xmms +import os, xmms import playlist, util @@ -106,3 +106,8 @@ def cmd_next(ui, start, stop, args): xmms.control.playlist_next() +def cmd_shell(ui, start, stop, args): + if args[0]: + os.system(args[0]) + print "!" +