ROX Filer - What determines the menu options when you right click over a File? (Solved)

New to Puppy and have questions? Start here

Moderator: Forum moderators

Post Reply
xx_T3n0ch_X
Posts: 36
Joined: Thu Jul 22, 2021 1:31 am
Has thanked: 3 times
Been thanked: 10 times

ROX Filer - What determines the menu options when you right click over a File? (Solved)

Post 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,

Image

The Customise Menu... is,

Image

Where did mpv Media Player and pMediainfo come from?

Attachments
images_in_case_postimg_erases.tar.gz
(62.72 KiB) Downloaded 34 times
Last edited by xx_T3n0ch_X on Tue Jan 24, 2023 8:44 am, edited 1 time in total.
User avatar
BarryK
Posts: 2871
Joined: Tue Dec 24, 2019 1:04 pm
Has thanked: 149 times
Been thanked: 788 times

Re: ROX Filer - What determines the menu options when you right click over a File or Directory?

Post 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

User avatar
mikeslr
Posts: 3015
Joined: Mon Jul 13, 2020 11:08 pm
Has thanked: 174 times
Been thanked: 951 times

Re: ROX Filer - What determines the menu options when you right click over a File or Directory?

Post 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.

User avatar
OscarTalks
Posts: 623
Joined: Tue Jul 14, 2020 10:11 pm
Location: London UK
Has thanked: 2 times
Been thanked: 247 times

Re: ROX Filer - What determines the menu options when you right click over a File or Directory?

Post 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.

Post Reply

Return to “Beginners Help”