Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: How was Dolphin made to open as root?

  1. #1

    Default How was Dolphin made to open as root?

    How was Dolphin made to open as root?

  2. #2
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,743

    Default Re: How was Dolphin made to open as root?

    Quote Originally Posted by Chdslv View Post
    How was Dolphin made to open as root?
    Sorry, to me it is unclear what you mean.

    Did you mean you thought you just started Dolphin and that unexpected it started as a root pocess?

    Did you mean: I once did that, but now I am forgotten how to do it (in my KDE main menu there is an item System > File Manager Super User mode).

    Or do you mean: how did they create such a menu item to start Dolphin in Super User Mode?

    For a good problem description it is best to have three items:
    • what exactly you did;
    • what you expected to happen;
    • what happened instead.
    Henk van Velden

  3. #3

    Default Re: How was Dolphin made to open as root?

    Sorry that I didn't elaborate. I never opened Dolphin as root. I saw that 1st time in OpenSuse. So, I wondered how it is possible. How did they create such a menu item to start Dolphin in Super User Mode?

  4. #4
    Join Date
    Aug 2010
    Location
    Chicago suburbs
    Posts
    13,161
    Blog Entries
    3

    Default Re: How was Dolphin made to open as root?

    It probably does something like
    Code:
    kdesu dolphin
    which should prompt for the root password.
    openSUSE Leap 15.1; KDE Plasma 5;
    testing Leap 15.2Alpha

  5. #5

    Default Re: How was Dolphin made to open as root?

    Quote Originally Posted by nrickert View Post
    It probably does something like
    Code:
    kdesu dolphin
    which should prompt for the root password.
    That was once with Dolphin, not any more, but somehow OpenSuse had done it.

  6. #6
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,743

    Default Re: How was Dolphin made to open as root?

    You mean you want to know how that menu item works?

    Go to the menu item and do a right click. There is "Edit". It will show you all ther is.
    Last edited by hcvv; 03-Dec-2019 at 14:28.
    Henk van Velden

  7. #7
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,829
    Blog Entries
    1

    Default Re: How was Dolphin made to open as root?

    Quote Originally Posted by hcvv View Post
    You mean you want to know how that menu item works?

    Go to the menu item and do a right click. There is "Edit". It will show you all ther is.
    I think that the OP is asking how it gets invoked under the hood. The command to launch via KDE menu is
    Code:
    dbus-launch dolphin -qwindowtitle "%c" "%u"
    but like nrickert is suggesting, there will be code in the actual executable to launch as root.
    openSUSE Leap 15.1; KDE Plasma 5

  8. #8
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,743

    Default Re: How was Dolphin made to open as root?

    Quote Originally Posted by deano_ferrari View Post
    I think that the OP is asking how it gets invoked under the hood. The command to launch via KDE menu is
    Code:
    dbus-launch dolphin -qwindowtitle "%c" "%u"
    Yes, but that (and more) can be seen on the place I point to.
    Henk van Velden

  9. #9
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,829
    Blog Entries
    1

    Default Re: How was Dolphin made to open as root?

    Quote Originally Posted by hcvv View Post
    Yes, but that (and more) can be seen on the place I point to.
    Yes, it's a starting point, but there is nothing in that command that makes it inherently obvious that dolphin should launch as root. That decision is done within the app itself, unlike when just deliberately using 'kdesu -c dolphin' for example.
    openSUSE Leap 15.1; KDE Plasma 5

  10. #10
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,743

    Default Re: How was Dolphin made to open as root?

    It is still my opinion that one should not do it at all. At least I only tried it now te be of help to the OP. That will probably be the last time for years to come, Simply no need.and too much a temptation to do things as root that need not to be done as root. Again, my personal opinion.
    Henk van Velden

Page 1 of 2 12 LastLast

Tags for this Thread

Posting Permissions

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