Apps like Qphotorec open without password prompt with limited functionality. I don’t want to open them from terminal, is there something that i can add to the app’s launcher?
I am afraid you should explain your problem/question much better. Even the thread title “SU” isn’t very clear and I doubt it is giving away any details to draw attention of people that are knowledgable in the area your problem lies in.
Remember that a good problem description has three aspects: What did you do (and we can not look over your shoulder, thus you must describe what you did, or better post code), What did you expect to happen and What happened instead.
I suppose you can bring up the command with “kdesu” or “gnomesu” or similar.
But I’ll agree with hcvv. I really don’t know what you are asking.
Hi
I would copy the launcher (desktop file) to your user directory ~/.local/share/applications, in this case;
/usr/share/applications/qphotorec.desktop
Open the file with the editor of your choice and modify the exec= and Tryexec line and append;
TryExec=xdg-su -c "/usr/bin/qphotorec"
exec=xdg-su -c "/usr/bin/qphotorec"
Drop the %F as this may not work with xdg_su, could also try kdesu instead.
@malcolmlewis,
You seem to understand what he means. Can you explain to us noobs (who want to learn also) what he means with SU (Soviet Union is the only one that comes to my mind, but that is gone) and what the problem is?
Hi
Testdisk (as in photorec) really needs to run as root user (su) so can access the drive your trying to recover files from… xdg_su, gnomesu, kdesu etc all do the same thing, graphical dialog to switch to root user and run an application…
I know of course that programs that need to be run by the Superuser (root) can be started as such in different ways like sudo and su from the CLI and kdesu, gnomesu, etc. from the GUI, but I would never have understood from the title SU that the OP needs an equivalent for su behaviour in the CLI, nor did I understand that from his descriptions. You must be pretty clairvoyant. or I lack a lot of capability to reed between the lines.
Thanks for the explanation.
Good day, right click on the Qphotorec launcher in Whisker Menu (xfce) and replacing command with **xdg-su -c “/usr/bin/qphotorec” **did the work for me. This should be done be default, all those little things make the difference for Linux as alternative desktop. Thanks for the help, i have solved this before with Unetbootin but i forgot what was it.
On Thu 21 Feb 2019 11:06:03 AM CST, hcvv wrote:
I know of course that programs that need to be run by the Superuser
(root) can be started as such in different ways like sudo and su from
the CLI and kdesu, gnomesu, etc. from the GUI, but I would never have
understood from the title SU that the OP needs an equivalent for su
behaviour in the CLI, nor did I understand that from his descriptions.
You must be pretty clairvoyant.or I lack a lot of capability to reed
between the lines.
Thanks for the explanation.
Hi
From my reading between the lines the OP didn’t want to use the command
line, hence the launcher (desktop file), xdg-su is the goto method for
me to launch as root user if required…
–
Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
SLES 15 | GNOME Shell 3.26.2 | 4.12.14-25.28-default
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below… Thanks!