wok diff emesene/stuff/slitaz-openbox.patch @ rev 18136

poptop: fix plugin version (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Jun 13 18:57:17 2015 +0200 (2015-06-13)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/emesene/stuff/slitaz-openbox.patch	Sat Jun 13 18:57:17 2015 +0200
     1.3 @@ -0,0 +1,25 @@
     1.4 +--- emesene-1.0.1/emesene.orig	Fri Jun 19 13:58:30 2009
     1.5 ++++ emesene-1.0.1/emesene	Fri Jun 19 13:59:15 2009
     1.6 +@@ -25,6 +25,22 @@
     1.7 + except:
     1.8 +     pass
     1.9 + 
    1.10 ++# for slitaz openbox WM
    1.11 ++import os
    1.12 ++if not os.environ.has_key("KDE_FULL_SESSION") and \
    1.13 ++    not os.environ.has_key("DESKTOP_SESSION") and \
    1.14 ++    not os.environ.has_key("GNOME_DESKTOP_SESSION_ID"):
    1.15 ++    if not os.environ.has_key("DESKTOP_LAUNCH"):
    1.16 ++        if os.path.isfile('/usr/bin/firefox'):
    1.17 ++            browser = '/usr/bin/firefox '
    1.18 ++        elif os.path.isfile('/usr/bin/opera'):
    1.19 ++            browser = '/usr/bin/opera '
    1.20 ++        elif os.path.isfile('/usr/bin/midori'):
    1.21 ++            browser = '/usr/bin/midori '
    1.22 ++
    1.23 ++        if browser:
    1.24 ++            os.environ["DESKTOP_LAUNCH"] = browser
    1.25 ++
    1.26 + try:
    1.27 +     from emesene import Controller
    1.28 + except ImportError: