dogtail-devel PATCH: fix epiphany.py to work under Debian/Ubuntu
- From: Andrew Beresford <a j beresford sheffield ac uk>
- To: dogtail-devel-list gnome org
- Subject: dogtail-devel PATCH: fix epiphany.py to work under Debian/Ubuntu
- Date: Tue, 18 Oct 2005 10:49:34 +0100
I sent this to the wrong list originally...
Here's a fix for the epiphany wrapper to work under Debian/Ubuntu. On
these systems the Epiphany package is called "epiphany-browser".
Cheers,
Andrew
--- dogtail/dogtail/apps/wrappers/epiphany.py 2005-10-05 22:43:47.000000000 +0100
+++ dogtail-new/dogtail/apps/wrappers/epiphany.py 2005-10-18 10:16:57.000000000 +0100
@@ -5,7 +5,7 @@
__author__ = 'David Malcolm <dmalcolm redhat com>'
from dogtail.tree import *
-from dogtail.distro import packageDb
+from dogtail.distro import *
from dogtail.apps.categories import *
class EpiphanyApp(Application, WebBrowser):
@@ -13,8 +13,12 @@
def __init__(self):
Application.__init__(self, root.application("epiphany"))
-
- self.epiVersion = packageDb.getVersion("epiphany")
+
+ if isinstance(distro, Debian):
+ self.epiPackageName="epiphany-browser"
+ else:
+ self.epiPackageName="epiphany"
+ self.epiVersion = packageDb.getVersion(self.epiPackageName)
print "Epiphany version %s"%self.epiVersion
def browseToUrl(self, urlString):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]