wok view emesene/stuff/slitaz-openbox.patch @ rev 8344
lvm2: add patch to fix udevsync.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Wed Feb 02 01:22:46 2011 +0000 (2011-02-02) |
parents | |
children |
line source
1 --- emesene-1.0.1/emesene.orig Fri Jun 19 13:58:30 2009
2 +++ emesene-1.0.1/emesene Fri Jun 19 13:59:15 2009
3 @@ -25,6 +25,22 @@
4 except:
5 pass
7 +# for slitaz openbox WM
8 +import os
9 +if not os.environ.has_key("KDE_FULL_SESSION") and \
10 + not os.environ.has_key("DESKTOP_SESSION") and \
11 + not os.environ.has_key("GNOME_DESKTOP_SESSION_ID"):
12 + if not os.environ.has_key("DESKTOP_LAUNCH"):
13 + if os.path.isfile('/usr/bin/firefox'):
14 + browser = '/usr/bin/firefox '
15 + elif os.path.isfile('/usr/bin/opera'):
16 + browser = '/usr/bin/opera '
17 + elif os.path.isfile('/usr/bin/midori'):
18 + browser = '/usr/bin/midori '
19 +
20 + if browser:
21 + os.environ["DESKTOP_LAUNCH"] = browser
22 +
23 try:
24 from emesene import Controller
25 except ImportError: