! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
file:// URIs are always opened in web browser in newest Terminal releases
Status:
RESOLVED: WORKSFORME
Product:
Xfce4-terminal
Component:
General

Comments

Description Guillaume Laville 2011-12-30 14:45:06 CET
Since the c5cbf887baa8f4ffb0b205b2c69d031efd9a2367 commit of Terminal this summer, the terminal widget now always use exo_execute_preferred_application_on_screen() instead of gtk_show_uri() to open URIs to fix inconsistencies with links and mailto: references.

However, since the category parameter is set to WebBrowser in this case, file:// URIs which where recognized by gtk_show_uri() as local files and handled by MIME-associated apps such as image browsers or text editors are now always opened in the exo preferred web browser (Firefox).

This make advanced operations such as directly starting a slideshow or editing a source file much less direct than before from a terminal widget and requires the user to manually copy/paste the URI to the appropriate tool.

Could a fallback to the old method using gtk_show_uri() be implemented for these URIs, since the exo alternative doesn't appear to provide a "use MIME-associated application instead" category?

Regards,
Comment 1 Nick Schermer editbugs 2013-01-01 12:42:26 CET
If you set the preferred apps again it should create a line

x-scheme-handler/file=exo-file-manager.desktop

in ~/.local/share/applications/mimeapps.list

That will make sure gtk_show_uri will open file:// uris with thunar (though exo-open).

Bug #8289

Reported by:
Guillaume Laville
Reported on: 2011-12-30
Last modified on: 2013-01-01

People

Assignee:
Nick Schermer
CC List:
0 users

Version

Version:
unspecified

Attachments

Additional information