wok-6.x view emesene/stuff/slitaz-openbox.patch @ rev 19846
Up tazweb (188)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Mar 14 20:18:44 2017 +0200 (2017-03-14) |
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: