wok annotate emesene/stuff/slitaz-openbox.patch @ rev 8135

Replace openmotif by lesstif in libglw-mesa - openmotif is a non-free software
author Antoine Bodin <gokhlayeh@slitaz.org>
date Tue Jan 25 02:37:38 2011 +0100 (2011-01-25)
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: