I made deb installer. Text editor ok installed. It has category "editors" in deb file. Why it's not shown in "Open with" menu (Ubuntu 14.04)? even in Other applications.
Maybe fix my deb file? (I cannot show it, it beta).
I made deb installer. Text editor ok installed. It has category "editors" in deb file. Why it's not shown in "Open with" menu (Ubuntu 14.04)? even in Other applications.
Maybe fix my deb file? (I cannot show it, it beta).
To show an entry in open with, you need a desktop
file. In your case in /usr/share/applications
.
And you need a %f
or %F
at the end of the command for Exec=
Exec variables
Add... Accepts...
%f a single filename.
%F multiple filenames.
%u a single URL.
%U multiple URLs.
%d a single directory. Used in conjunction with %f to locate a file.
%D multiple directories. Used in conjunction with %F to locate files.
%n a single filename without a path.
%N multiple filenames without paths.
%k a URI or local filename of the location of the desktop file.
%v the name of the Device entry.
E.G.
[Desktop Entry]
Name=myeditor
GenericName=Text Editor
Comment=Edit text files
Exec=myeditor %F
Terminal=false
Type=Application
StartupNotify=true
MimeType=text/plain;
Icon=accessories-text-editor
Categories=Utility;TextEditor;