This is something I noticed in @radky 's BW64, but other distros are affected as well.
Most .desktop files are stored in /usr/share/applications and I wonder if the ones which are scattered in other locations wouldn't be easier to maintain if they also would be transfered to /usr/share/applications, then symlinked as needed.
Some of these are duplicates and - maybe - there is a good reason to have 2 of each. Not really my business.
/usr/local/apps/PackIt/PackIt.desktop
/usr/share/applications/PackIt.desktop
/usr/local/takeagif/tkagif.desktop
/usr/share/applications/tkagif.desktop
/usr/local/apps/UExtract/UExtract.desktop
/usr/share/applications/UExtract.desktop
However there is a crucial difference in UExtract.desktop:
/usr/local/apps/UExtract/UExtract.desktop contains a MimeType key:
Code: Select all
MimeType=application/dicom;application/epub+zip;application/gzip;application/img;application/initramfs-gz;application/mbox;application/ms-tnef;application/pdf;application/pet;application/pup;application/vnd.adobe.flash.movie;application/vnd.android.package-archive;application/vnd.appimage;application/vnd.chess-pgn;application/vnd.comicbook-rar;application/vnd.comicbook+zip;application/vnd.debian.binary-package;application/vnd.etsi.asic-e+zip;application/vnd.flatpak;application/vnd.ms-cab-compressed;application/vnd.ms-excel.sheet.macroEnabled.12;application/vnd.ms-powerpoint;application/vnd.ms-tnef;application/vnd.oasis.opendocument.chart;application/vnd.oasis.opendocument.database;application/vnd.oasis.opendocument.graphics;application/vnd.oasis.opendocument.graphics-template;application/vnd.oasis.opendocument.image;application/vnd.oasis.opendocument.presentation;application/vnd.oasis.opendocument.presentation-template;application/vnd.oasis.opendocument.spreadsheet;application/vnd.oasis.opendocument.spreadsheet-template;application/vnd.oasis.opendocument.text;application/vnd.oasis.opendocument.text-master;application/vnd.oasis.opendocument.text-template;application/vnd.oasis.opendocument.text-web;application/vnd.openofficeorg.extension;application/vnd.openxmlformats-officedocument.presentationml.presentation;application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;application/vnd.openxmlformats-officedocument.wordprocessingml.document;application/vnd.rar;application/vnd.sqlite3;application/vnd.squashfs;application/vnd.sun.xml.calc;application/vnd.sun.xml.calc.template;application/vnd.sun.xml.draw;application/vnd.sun.xml.draw.template;application/vnd.sun.xml.impress;application/vnd.sun.xml.impress.template;application/vnd.sun.xml.math;application/vnd.sun.xml.writer;application/vnd.sun.xml.writer.global;application/vnd.sun.xml.writer.template;application/x-7z-compressed;application/x-abiword;application/x-ace;application/x-aes;application/x-alz;application/x-amiga-disk-format;application/x-amipro;application/x-apple-diskimage;application/x-arc;application/x-archive;application/x-arj;application/x-bfe;application/x-blender;application/x-btrfs-image;application/x-bzip;application/x-bzip-compressed-tar;application/x-cb7;application/x-cbr;application/x-cbt;application/x-cbz;application/x-ccrypt;application/x-cd-image;application/x-chm;application/x-compress;application/x-compressed-tar;application/x-cpio;application/x-cpio-compressed;application/x-dar;application/x-deb;application/x-debian-package;application/x-doom-wad;application/x-emerald-theme;application/x-ext2-image;application/x-ext3-image;application/x-ext4-image;application/x-font-pcf;application/x-gamegear-rom;application/x-gettext-translation;application/x-gnumeric;application/x-gz-font-linux-psf;application/x-gzip;application/x-gzpdf;application/x-gzpostscript;application/x-hwp;application/x-initrd;application/x-initrd-compressed;application/x-iso9660-appimage;application/x-java-archive;application/x-java-pack200;application/x-lha;application/x-linux-kernel;application/x-lz4;application/x-lz4-compressed-tar;application/x-lrzip-compressed-tar;application/x-lzip;application/x-lzip-compressed-tar;application/x-lzma;application/x-lzma-compressed-tar;application/x-lzop;application/x-matroska;application/x-mimearchive;application/x-ms-dos-executable;application/x-ms-wim;application/x-navi-animation;application/x-nsv;application/x-ole-storage;application/x-pak;application/x-php;application/x-rar;application/x-raw-disk-image;application/x-raw-disk-image-xz-compressed;application/x-rpm;application/x-shar;application/x-sharedlib;application/x-shockwave-flash;application/x-sms-rom;application/x-source-rpm;application/x-sqlite3;application/x-squashfs-image;application/x-tar;application/x-tarz;application/x-truecrypt;application/x-tzo;application/x-veracrypt;application/x-virtualbox-ova;application/x-virtualbox-vbox-extpack;application/x-virtualbox-vdi;application/x-virtualbox-vmdk;application/x-windows-themepack;application/x-xar;application/x-xoj;application/x-xpinstall;application/x-xz;application/x-xz-compressed-tar;application/x-zstd-compressed-tar;application/x-zoo;application/zip;application/zstd;audio/basic;audio/mpeg;audio/x-flac;audio/x-m4b;audio/x-mo3;audio/x-ms-wma;audio/x-wav;audio/x-wavpack;font/collection;image/bmp;image/gif;image/jpeg;image/ktx;image/png;image/svg+xml-compressed;image/vnd.djvu;image/vnd.djvu+multipage;image/vnd.microsoft.icon;image/webp;image/x-dds;image/x-icns;image/x-win-bitmap;image/x-xcursor;message/rfc822;text/x-vhdl;video/3gpp;video/mp2t;video/mp4;video/mpeg;video/ogg;video/quicktime;video/webm;video/x-flv;video/x-matroska;video/x-matroska-3d;video/x-msvideo;video/x-ms-wmv;
In /usr/share/applications/UExtract.desktop this key is missing. This is the reason why Uextract, my preferred extractor , never appears in the ROX right-click menu. If it *would* be present then the update-desktop-database
script would scan this file and would update /usr/share/applications/mimeinfo.cache, which would be read by ROX for its right click menu. On the other hand the MimeType key in /usr/local/apps/UExtract/UExtract.desktop has no effect because update-desktop-database
ignores this file.
It's easy to fix and IMHO it should be fixed. It will not only affect ROX but e.g. in BW64 would put Uextract into the OpenWith choices ot Fsearch.