file-type specific right-click menu on desktop

Asked by Shannon Fang

I have two problems related to right-click menu on a file:

1) I would like to have an option to open a file in a set program (e.g. gedit), no matter what the file type is. How can I add such a menu item to desktop (and nautilus) right click menu?

2) I recently put a Windows EXE file on my ubuntu desktop, while I right click on it (try to create an archive), it does not have the option to create an archive, instead, it shows a menu item to "extract here", however, this is NOT an archive at all!

I guess both the 2 problems has something to do with nautilus' way of dealing file types...

Could anyone kindly tell me how to set it up or correct the behavior?

Thank you very much!

Sincerely,
Shannon

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Olivier
Solved:
Last query:
Last reply:
Revision history for this message
Best Olivier (olivier-lacroix) said :
#1

Hi !

.exe are actually archives...

for customizing your right-click menu, have a look at nautilus-action : I am sure you will find what you where looking for, and even more !

http://www.grumz.net/index.php?q=taxonomy/term/2/9

have fun !

Revision history for this message
Shannon Fang (xrfang) said :
#2

Hi Olivier,

Nautilus-action is very good! I think this solved my problem, thanks! However, I still have a question, I think this might still be related with mime...

If I try to open a binary file with gedit, it tell me that it cannot open... *why* gedit try to determine the charset of a file it tries to open? Under windows, if I open a file with pspad for example, it just opens it, if that file is a binary file, it will switch to hex edit mode automatically, however, even if programs don't have hex editing function, it just open (although content may be rubbish...).

If you use a good hexeditor under linux, please recommend...

Thanks again!

Revision history for this message
Clóvis Fabrício (nosklo) said :
#3

Gedit is a text editor, there is no hex plugin yet.

Try ghex, it is nice.

sudo aptitude install ghex

Revision history for this message
Shannon Fang (xrfang) said :
#4

Thanks Clovis...

Revision history for this message
Shannon Fang (xrfang) said :
#5

Thanks Olivier, that solved my question.