Stop this non-sense about trying to open every browser binaries on earth

and just use xdg-open.
This commit is contained in:
ajacoutot 2011-07-27 15:27:26 +00:00
parent 73897d9820
commit badd54a14d
2 changed files with 22 additions and 3 deletions

View File

@ -1,10 +1,10 @@
# $OpenBSD: Makefile,v 1.29 2011/06/08 17:31:33 jasper Exp $
# $OpenBSD: Makefile,v 1.30 2011/07/27 15:27:26 ajacoutot Exp $
COMMENT= elegant music player for MPD
MODPY_EGG_VERSION=1.6.2.1
DISTNAME= sonata-${MODPY_EGG_VERSION}
REVISION = 5
REVISION = 6
CATEGORIES= audio
HOMEPAGE= http://sonata.berlios.de/
@ -35,7 +35,8 @@ RUN_DEPENDS= devel/desktop-file-utils \
audio/py-mpd \
audio/py-tagpy \
x11/dbus-python \
x11/py-gtk2
x11/py-gtk2 \
devel/xdg-utils
USE_GROFF = Yes
NO_REGRESS= Yes

View File

@ -0,0 +1,18 @@
$OpenBSD: patch-sonata_misc_py,v 1.1 2011/07/27 15:27:26 ajacoutot Exp $
--- sonata/misc.py.orig Wed Jul 27 17:22:46 2011
+++ sonata/misc.py Wed Jul 27 17:22:03 2011
@@ -159,13 +159,7 @@ def browser_load(docslink, browser, window):
if browser and browser.strip():
browsers = [browser.strip()]
else:
- browsers = ["gnome-open", # default, we are a "gnome" app
- "x-www-browser", # default on Debian-based systems
- "exo-open",
- "kfmclient openURL",
- "firefox",
- "mozilla",
- "opera"]
+ browsers = ["xdg-open"]
for browser in browsers:
try:
subprocess.Popen(browser.split()+[docslink])