wok annotate emesene/stuff/slitaz-openbox.patch @ rev 13260
Up: git to 1.7.11.5.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Fri Aug 17 14:58:05 2012 +0000 (2012-08-17) |
parents | |
children |
rev | line source |
---|---|
rocky@3544 | 1 --- emesene-1.0.1/emesene.orig Fri Jun 19 13:58:30 2009 |
rocky@3544 | 2 +++ emesene-1.0.1/emesene Fri Jun 19 13:59:15 2009 |
rocky@3544 | 3 @@ -25,6 +25,22 @@ |
rocky@3544 | 4 except: |
rocky@3544 | 5 pass |
rocky@3544 | 6 |
rocky@3544 | 7 +# for slitaz openbox WM |
rocky@3544 | 8 +import os |
rocky@3544 | 9 +if not os.environ.has_key("KDE_FULL_SESSION") and \ |
rocky@3544 | 10 + not os.environ.has_key("DESKTOP_SESSION") and \ |
rocky@3544 | 11 + not os.environ.has_key("GNOME_DESKTOP_SESSION_ID"): |
rocky@3544 | 12 + if not os.environ.has_key("DESKTOP_LAUNCH"): |
rocky@3544 | 13 + if os.path.isfile('/usr/bin/firefox'): |
rocky@3544 | 14 + browser = '/usr/bin/firefox ' |
rocky@3544 | 15 + elif os.path.isfile('/usr/bin/opera'): |
rocky@3544 | 16 + browser = '/usr/bin/opera ' |
rocky@3544 | 17 + elif os.path.isfile('/usr/bin/midori'): |
rocky@3544 | 18 + browser = '/usr/bin/midori ' |
rocky@3544 | 19 + |
rocky@3544 | 20 + if browser: |
rocky@3544 | 21 + os.environ["DESKTOP_LAUNCH"] = browser |
rocky@3544 | 22 + |
rocky@3544 | 23 try: |
rocky@3544 | 24 from emesene import Controller |
rocky@3544 | 25 except ImportError: |