Page 1 of 1
ROX Filer - What determines the menu options when you right click over a File? (Solved)
Posted: Mon Jan 23, 2023 8:47 am
by xx_T3n0ch_X
The title describes the question, What determines the menu options available when you right click over a File or Directory?
I have noticed the Customise Menu... option but It shows some of the options not necessarily all.
For example when I right click over video files,
The Customise Menu... is,
Where did mpv Media Player and pMediainfo come from?
Re: ROX Filer - What determines the menu options when you right click over a File or Directory?
Posted: Mon Jan 23, 2023 1:02 pm
by BarryK
I don't know how the latest pups do it. There is some history here:
https://bkhome.org/news/201909/rox-file ... types.html
At the bottom of that post, there is a brief description how it is now done in EasyOS, by calling /usr/sbin/build-rox-sendto every time a package is installed.
Here is another post about 'build-rox-sendto':
https://bkhome.org/news/201805/rox-file ... -menu.html
Re: ROX Filer - What determines the menu options when you right click over a File or Directory?
Posted: Mon Jan 23, 2023 3:15 pm
by mikeslr
Right-Click options are determined by the contents of the hidden files in /root/.config/rox.sourceforge.net/OpenWith and MIME-Types. Left-Click 'Rox's Eye' to show hidden files.
Much simplified explanation: The 'list' in OpenWith tells rox what application can be used to open a particular mime-type. Most often a file's suffix provides a clue to Humans as to that file's mime-type. There must be an association between the mime-type and the application for that mime-type to be opened by that application. For example, to open both 'png' and 'tif' files in mtPaint, OpenWith has to have a listing for both.
Woof when creating a Puppy may provides some of those lists and associations. The Puppy's Dev may add others. Sometimes the publisher of an application will include the necessary files. And some user's publish applications which do so.
Rox's Right-Click>Customize provides the means by which a User can add his or her own options. Just Right-Click a file, select Customize and drag/drop the applications desktop file from /usr/share/application --occasionally the application's binary or script-- onto the Window which opens.
Sometimes --I think if there is no default application already associated with a file's mime-type-- Right-Clicking such file will also offer 'Set Run Action' to do so.
Re: ROX Filer - What determines the menu options when you right click over a File or Directory?
Posted: Mon Jan 23, 2023 10:35 pm
by OscarTalks
xx_T3n0ch_X wrote: Mon Jan 23, 2023 8:47 am
The title describes the question, What determines the menu options available when you right click over a File or Directory?
Where did mpv Media Player and pMediainfo come from?
I could be wrong about this, but I think those extra right-click options appear via another mechanism (besides the "Customise Menu" symlink mechanism).
ROX-Filer reads the properties of the file (or directory) you are right-clicking and it also looks through all the .desktop files in /usr/share/applications
Some of those .desktop files will have a "MimeType" string and if a MIME Type in that string matches the properties of the file it will be offered to you as a right-click option for that file.