wok-6.x view emesene/stuff/slitaz-openbox.patch @ rev 16261

ARM: add most lxde componement
author Christophe Lincoln <pankso@slitaz.org>
date Sat Apr 05 07:55:33 2014 +0200 (2014-04-05)
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: