Page 1 of 1

QPhotoRec desktop application doesn't appear in the launcher menu

Posted: 19 Jul 2023, 22:13
by hervyqa
I use NixOS linux which does not follow FHS rules.
The problem is that qphotorec desktop doesn't show its application icon because it uses the path "/usr/bin/qphotorec" which NixOS uses "/run/current-system/sw/bin/qphotorec". So, it doesn't appear in the launcher menu.
"qphotorec.desktop" should just use "Exec=qphotorec". Usually linux automatically uses the path "/usr/bin" to detect the binary of the application.

Current qphotorec.desktop:
https://git.cgsecurity.org/cgit/testdis ... ec.desktop

[Desktop Entry]
Type=Application
Version=1.0
Name=QPhotoRec
GenericName=Data Recovery Utility
Icon=qphotorec
TryExec=/usr/bin/qphotorec
Exec=/usr/bin/qphotorec %F
Terminal=false
Categories=System;Filesystem;Qt;

How to fix:
Rename "Exec=/usr/bin/qphotorec" to "Exec=photorec"

[Desktop Entry]
Type=Application
Version=1.0
Name=QPhotoRec
GenericName=Data Recovery Utility
Icon=qphotorec
TryExec=qphotorec
Exec=qphotorec %F
Terminal=false
Categories=System;Filesystem;Qt;

Version:
qphotorec --version
QPhotoRec 7.1, Data Recovery Utility, July 2019

Re: QPhotoRec desktop application doesn't appear in the launcher menu

Posted: 20 Jul 2023, 07:02
by recuperation
I don't know what FHS is. This is another example why you should avoid abbreviations except for the most common ones in storage.
There is no question in your posting. Should this be a answer how to fix a certain problem?