! 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 !
xfrun should open files using their default handler
Status:
RESOLVED: FIXED
Severity:
enhancement
Product:
Xfce-utils

Comments

Description Alan Tam 2006-11-05 17:54:10 CET
Create a file "~/test.txt".
Press Alt-F2 and type "~/test.txt" and enter.

Actual:
Error is shown

Expected:
Run "mousepad ~/test.txt"

".txt" is assigned to "text/plain" which is assigned to be opened by mousepad.

Of course "~/test.txt" has to be first detected to be a non-executable file, i.e. shell-like tide expansion needed.
Comment 1 Olivier Fourdan editbugs 2006-11-05 17:59:59 CET
xfrun is an application launcher, it's not a file manager. Why would it need to know about file types to run applications?
Comment 2 Benedikt Meurer editbugs 2006-11-05 21:00:31 CET
Thunar could implement the xfrun interface and provide the requested functionality.
Comment 3 Alan Tam 2006-11-06 06:40:48 CET
> xfrun is an application launcher, it's not a file manager. Why would it need to
know about file types to run applications?

Because you can pick almost any application launcher in both free and non-free world and find this functionality implemented, both this bug and bug 2504.

> Thunar could implement the xfrun interface and provide the requested
functionality.
Perhaps a good idea. What does the "xfrun interface" mean? Do you mean thunar should implement the whole application?
Comment 4 Benedikt Meurer editbugs 2006-11-06 19:54:41 CET
(In reply to comment #3)
> > Thunar could implement the xfrun interface and provide the requested
> functionality.
> Perhaps a good idea. What does the "xfrun interface" mean? Do you mean thunar
> should implement the whole application?

Yes.
Comment 5 Christian Dywan 2008-08-26 23:52:59 CEST
What about simply letting xfrun call exo-open if it fails to open the executable? Then if exo-open cannot open the file either it can still show an error dialog.
Comment 6 Jérôme Guelfucci editbugs 2010-10-25 14:51:30 CEST
Fixed in git master.

Bug #2506

Reported by:
Alan Tam
Reported on: 2006-11-05
Last modified on: 2010-10-25

People

Assignee:
Jérôme Guelfucci
CC List:
2 users

Version

Attachments

Additional information