wok view emesene/stuff/slitaz-openbox.patch @ rev 14102

maxima: up 5.29.1
author Samuel Trassare <samuel_trassare@yahoo.com>
date Sat Feb 23 09:22:39 2013 -0800 (2013-02-23)
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: