GNOME Bugzilla – Bug 81603
Should register gnome terminal as a mime handler for opening folders.
Last modified: 2006-01-10 10:41:31 UTC
Basically what i want is to be able to open a folder from nautilus in a terminal by right clicking on the folder and choosing open with -> terminal from the context menu. there have been some feature requests for this in nautilus, but considering the setup of the nautilus ui, I think this is the best way to implement such a feature and is probably a gnome-terminal type bug, since it would require gnome terminal to register itself as a potential handler but not the default.
*** Bug 48290 has been marked as a duplicate of this bug. ***
This is easy enough to patch, any takers ;-)
Created attachment 11846 [details] [review] patch, part 1
Created attachment 11847 [details] [review] applications file
Here we go. Seems to work for zvt, but not for vte.
CC'ing myself, sorry for the spam...
jorn this patch doesn't seem to work for me. always opens a folder in $home (may be a nautilus bug though.)
You using vte? It only works with zvt atm, no idea why, i guess the vte wdiget doesnt support changing dir yet or something. If anyone intends to commit this btw, the .applications file needs a little change, can_open_multiple_files is set to true now but it should be false.
jorn could you file a vte bug and block this bug on that one?
I posted a patch to bug 101154 which works perfectly for me with vte. The only difference I can see is that I have can_open_multiple_files=false in the application file. *** This bug has been marked as a duplicate of 101154 ***
*** Bug 101154 has been marked as a duplicate of this bug. ***
Sorry, marked the wrong bug as a dupe.
Can I commit this to gnome-panel HEAD?
Ping! A working patch, I've got cvs access, freezes are approaching. All you have to do is say yes ;)
Yes, looks good. (Be sure can_open_multiple_files is false, that was the only issue I saw as well)
Ok this is committed, but one more thing before i close the bug: Do we want it to be in the nautilus Open With context menu by default and if yet how do we do that?
No clue on that one.
You have to add to the short-list of applications in gnome-mime-data to get into the nautilus context menu by default.
I don't understand the last comment, but I do have gnome-terminal (listed as Terminal, of course) in the Open With menu in the context menu in nautilus for folders, and that must be there by default, since I never did anything to put it there.
Marked patches as patches and both as obsolete, real fix coming.
Fixed in CVS HEAD (finally!)
Hm, this kind of duplicates the nautilus-open-terminal extension... Is it really a good idea?
Actually, I didn't know nautilus-open-terminal before. I am convinced that it is a much better approach to this problem in a number of ways and am, therefore, reverting the change on HEAD. Thanks!