Stop this non-sense about trying to open every browser binaries on earth
and just use xdg-open.
This commit is contained in:
parent
73897d9820
commit
badd54a14d
@ -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
|
||||
|
18
audio/sonata/patches/patch-sonata_misc_py
Normal file
18
audio/sonata/patches/patch-sonata_misc_py
Normal 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])
|
Loading…
Reference in New Issue
Block a user