Thunar - "option not known"
Posted: Sat Oct 19, 2024 10:15 am
Hi,
Background
I'm working on a new AVL Enlightenment Base ISO to formulate a solid underlying setup for future AVL versions and a lot of good progress has been made thanks to the generosity and kindness of the MX devs
Fortunately I'm getting down to the tiny nits and this one is a bit of a mystery... If you've tried or used AVL before you will know the File Manager (Thunar) is loaded with Custom Actions to do various Audio and Video tasks (Resize photos, Convert Audio, Concatenate Videos, Create SFZ Sound libs, Change properties of WAVs etc.). Until now this has been fairly easy with a large amount of Custom Actions in Thunar which has it's built-in Custom Actions functionality but here's the rub... I recently spent a couple of months trying and testing KDE and realized all the work I had done on Thunar Custom Actions was pretty much useless in Dolphin and any other File Manager from any other DE (including Enlightenment's native 'EFM' File Manager) so instead I decided to put the focus into making File Manager agnostic 'Open With' actions that are essentially specialized application '.desktop' files that are selectable by File mimetype and that only appear in right-click context menus, these tuned .desktop files are working as expected for the most part under Thunar and EFM (Dolphin is untested at this point) except for one stubborn edge-case I can't figure out..
One of these Open With Actions uses yad to show the output of 'mediainfo', yes there is a mediainfo-gui available but I think it could look better and be easier to read so I rolled my own... What's weird is this Open With works perfectly in EFM: Here is the contents of the Launcher Desktop File:
Where things go astray is... it does not work in Thunar as an "Open with" .desktop action but the identical launch code as a regular Thunar Custom Action item does work, note that the dozens of other 'Open With" actions I've made DO work as expected in Thunar so the format is known to work, just not this particular one. If I run Thunar in a terminal and try to run the Mediainfo launcher the terminal outputs "option not known"...?
Also weirdly if I run the execution code from the launcher and select the file explicitly it runs as expected...
Oh and I googled 'Thunar option not known' and no relevant info... Any XFCE4/Thunar gurus here know why Thunar has a bee in it's bonnet about the launcher only? To recap other similar launchers work fine in Thunar, and this launcher works as expected in another File Manager (EFM)..
Background
I'm working on a new AVL Enlightenment Base ISO to formulate a solid underlying setup for future AVL versions and a lot of good progress has been made thanks to the generosity and kindness of the MX devs

One of these Open With Actions uses yad to show the output of 'mediainfo', yes there is a mediainfo-gui available but I think it could look better and be easier to read so I rolled my own... What's weird is this Open With works perfectly in EFM: Here is the contents of the Launcher Desktop File:
Code: Select all
[Desktop Entry]
Type=Application
Name=AVL-MXe Action - Get Media Info
Comment=Get Codec Info and Other Media Details
Icon=/usr/local/share/icons/custom/mediainfo.png
OnlyShowIn=Enlightenment;KDE;XFCE;
NoDisplay=true
Exec=mediainfo %f | yad --text-info --wrap --title="Media Info" --image-on-top --image=/usr/local/share/icons/custom/mediainfo-app.png --text="<b>Displaying Codec Info and Details for the Selected File</b>" --text-align=center --fontname="Red Hat Text Medium" --window-icon=/usr/local/share/icons/custom/mediainfo.png --width=640 --height=400 --borders=24
Terminal=false
MimeType=application/ogg;application/x-ogg;application/mxf;application/sdp;application/smil;application/x-smil;application/streamingmedia;application/x-streamingmedia;application/vnd.rn-realmedia;application/vnd.rn-realmedia-vbr;audio/aac;audio/x-aac;audio/vnd.dolby.heaac.1;audio/vnd.dolby.heaac.2;audio/aiff;audio/x-aiff;audio/m4a;audio/x-m4a;application/x-extension-m4a;audio/mp1;audio/x-mp1;audio/mp2;audio/x-mp2;audio/mp3;audio/x-mp3;audio/mpeg;audio/mpeg2;audio/mpeg3;audio/mpegurl;audio/x-mpegurl;audio/mpg;audio/x-mpg;audio/rn-mpeg;audio/musepack;audio/x-musepack;audio/ogg;audio/scpls;audio/x-scpls;audio/vnd.rn-realaudio;audio/wav;audio/x-pn-wav;audio/x-pn-windows-pcm;audio/x-realaudio;audio/x-pn-realaudio;audio/x-ms-wma;audio/x-pls;audio/x-wav;video/mpeg;video/x-mpeg2;video/x-mpeg3;video/mp4v-es;video/x-m4v;video/mp4;application/x-extension-mp4;video/divx;video/vnd.divx;video/msvideo;video/x-msvideo;video/ogg;video/quicktime;video/vnd.rn-realvideo;video/x-ms-afs;video/x-ms-asf;audio/x-ms-asf;application/vnd.ms-asf;video/x-ms-wmv;video/x-ms-wmx;video/x-ms-wvxvideo;video/x-avi;video/avi;video/x-flic;video/fli;video/x-flc;video/flv;video/x-flv;video/x-theora;video/x-theora+ogg;video/x-matroska;video/mkv;audio/x-matroska;application/x-matroska;video/webm;audio/webm;audio/vorbis;audio/x-vorbis;audio/x-vorbis+ogg;video/x-ogm;video/x-ogm+ogg;application/x-ogm;application/x-ogm-audio;application/x-ogm-video;application/x-shorten;audio/x-shorten;audio/x-ape;audio/x-wavpack;audio/x-tta;audio/AMR;audio/ac3;audio/eac3;audio/amr-wb;video/mp2t;audio/flac;audio/mp4;application/x-mpegurl;video/vnd.mpegurl;application/vnd.apple.mpegurl;audio/x-pn-au;video/3gp;video/3gpp;video/3gpp2;audio/3gpp;audio/3gpp2;video/dv;audio/dv;audio/opus;audio/vnd.dts;audio/vnd.dts.hd;audio/x-adpcm;application/x-cue;audio/m3u;
Categories=AudioVideo;
StartupNotify=false
StartupWMClass=e_fm
Also weirdly if I run the execution code from the launcher and select the file explicitly it runs as expected...
Oh and I googled 'Thunar option not known' and no relevant info... Any XFCE4/Thunar gurus here know why Thunar has a bee in it's bonnet about the launcher only? To recap other similar launchers work fine in Thunar, and this launcher works as expected in another File Manager (EFM)..