QPhotoRec desktop application doesn't appear in the launcher menu

How to use TestDisk to recover lost partition
Forum rules
When asking for technical support:
- Search for posts on the same topic before posting a new question.
- Give clear, specific information in the title of your post.
- Include as many details as you can, MOST POSTS WILL GET ONLY ONE OR TWO ANSWERS.
- Post a follow up with a "Thank you" or "This worked!"
- When you learn something, use that knowledge to HELP ANOTHER USER LATER.
Before posting, please read https://www.cgsecurity.org/testdisk.pdf
Locked
Message
Author
hervyqa
Posts: 1
Joined: 19 Jul 2023, 21:48

QPhotoRec desktop application doesn't appear in the launcher menu

#1 Post 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

recuperation
Posts: 2737
Joined: 04 Jan 2019, 09:48
Location: Hannover, Deutschland (Germany, Allemagne)

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

#2 Post 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?

Locked