wok-current view emesene/stuff/slitaz-openbox.patch @ rev 24507
updated easy-rsa (3.0.6 -> 3.0.8)
author | Hans-G?nter Theisgen |
---|---|
date | Sun Feb 20 16:37:53 2022 +0100 (2022-02-20) |
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: