aMule Forum
English => Feature requests => Topic started by: pochu on April 01, 2008, 08:10:08 PM
-
Hello all,
I've got this bugs in Ubuntu:
https://launchpad.net/bugs/209810
https://launchpad.net/bugs/89672
I think there should be a 'Default Browser' and 'Default video player' whenever possible. I don't know whether/how that could be done for Windows/MacOS, but for Linux there's xdg-open (http://portland.freedesktop.org/xdg-utils-1.0/xdg-open.html), which is a Freedesktop tool, which will open any file in the preferred application. So this would work for Web pages (Default Browser), and video files (Default video player).
So on the first aMule launch, if xdg-open (or similar for other platforms if they have something like this) is available in $PATH, it would use that as default.
What do you think about this? Comments appreciated.
-
For mac, /usr/bin/open works fine.
-
I tried to make a patch but I have not succeeded, apparently it is necessary to make more changes than simply replace mplayer by xdg-open.
Regarding the default browser I think I have had more luck. I think it is best to use the firefox default because his popularity respect to konqueror is important. The only problem is that we should change all translations.
-
wx already opens the default browser.
-
O.o.... and why there is a web browser dialog in aMule preferences?
I found this:
http://bugs.amule.org/view.php?id=1308
I believe this patch xdg-open is better than mine. I changed a little this new patch ;D
-
Has this been applied? Apparently not in 2.2.3 and I can't check SVN version (the SVN download site is too slow).
-
As far as I can see, none of these patches have been applied, and the web browser patch no longer makes sense with the present code.
I think that we should take this idea a little bit further and use a general preview system. Currently we only preview movies. What do you think about using xdg-open to start an application on any downloaded file? Of course, some applications will fail due to the incompleteness of the file, but I think that this is worthty, it will improove useability.
That should be much easier to code, but would switch the configuration to the system. So, in some place we should explain the user how to make xdg-open to call the program he wants.
What do you think?
-
https://launchpad.net/ubuntu/jaunty/+source/amule/2.2.3-1ubuntu1
* Now aMule will use user's preferred app to see previews. Fixed (LP: #89672)
+ Added use_xdg-open.diff patch