Results 1 to 9 of 9

Thread: SU

  1. #1

    Default SU

    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?

  2. #2
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    24,732

    Default Re: SU

    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.
    Henk van Velden

  3. #3
    Join Date
    Aug 2010
    Location
    Chicago suburbs
    Posts
    12,185
    Blog Entries
    3

    Default Re: SU

    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.
    openSUSE Leap 15.1; KDE Plasma 5;

  4. #4
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    26,326
    Blog Entries
    15

    Default Re: SU

    Quote Originally Posted by artivision View Post
    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?
    Hi
    I would copy the launcher (desktop file) to your user directory ~/.local/share/applications, in this case;

    Code:
    /usr/share/applications/qphotorec.desktop
    Open the file with the editor of your choice and modify the exec= and Tryexec line and append;

    Code:
    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.
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  5. #5
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    24,732

    Default Re: SU

    @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?
    Henk van Velden

  6. #6
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    26,326
    Blog Entries
    15

    Default Re: SU

    Quote Originally Posted by hcvv View Post
    @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...
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  7. #7
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    24,732

    Default Re: SU

    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.
    Henk van Velden

  8. #8

    Default Re: SU

    Quote Originally Posted by malcolmlewis View Post
    Hi
    I would copy the launcher (desktop file) to your user directory ~/.local/share/applications, in this case;

    Code:
    /usr/share/applications/qphotorec.desktop
    Open the file with the editor of your choice and modify the exec= and Tryexec line and append;

    Code:
    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.

    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.

  9. #9
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    26,326
    Blog Entries
    15

    Default Re: SU

    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!


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •