wok-current annotate emesene/stuff/slitaz-openbox.patch @ rev 24629
updated gsl and gsl-dev (2.6 -> 2.7.1)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Mar 08 09:29:44 2022 +0100 (2022-03-08) |
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: |