Results 1 to 9 of 9

Thread: Wallpaper is changing when using "gksu nautilus"

  1. #1
    Join Date
    May 2007
    Beans
    112

    Question Wallpaper is changing when using "gksu nautilus"

    Hi,

    I've stumbled across a weird (bug)? Everytime I open nautilus with root rights, f.i. with "gksu nautilus" or by the "nautilus-gksu" script, my wallpaper is changing to a default one. Additionally, it does take quiet a while for nautilus to load. I've never experienced such a behaviour prior to 11.10.

    Is this a bug or a feature and how to solve it (if it's bug)?

    Btw, typing:
    gksudo "nautilus --no-desktop $HOME"
    is not a solution...

  2. #2
    Join Date
    Sep 2008
    Location
    LA (i.e., Lower Alabama)
    Beans
    204
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Wallpaper is changing when using "gksu nautilus"

    Just to be clear: Nautilus is the program that normally draws your wallpaper, right? And you don't get this effect if you invoke Nautilus as a normal user without root privileges?

  3. #3
    Join Date
    Feb 2010
    Location
    Obscurial Springs
    Beans
    15,204
    Distro
    Ubuntu Budgie Development Release

    Re: Wallpaper is changing when using "gksu nautilus"

    Try restarting nautilus using following and try again .
    Code:
    nautilus -q
    "Our intention creates our reality. "

    Ubuntu Documentation Search: Popular Pages
    Ubuntu: Security Basics
    Ubuntu: Flavors

  4. #4
    Join Date
    May 2007
    Beans
    112

    Re: Wallpaper is changing when using "gksu nautilus"

    Quote Originally Posted by gldearman View Post
    Just to be clear: Nautilus is the program that normally draws your wallpaper, right? And you don't get this effect if you invoke Nautilus as a normal user without root privileges?
    You're totally right.

    @Frogs Hair

    When invoking nautilus with gksu, the system freezes for nearly 20 seconds, then nautilus with root rights is opened. Your suggested command doesn't have an effect at all. The wallpaper stays, the only way I've found is to reboot ubuntu...

  5. #5
    Join Date
    Nov 2011
    Location
    /dev/root
    Beans
    Hidden!

    Re: Wallpaper is changing when using "gksu nautilus"

    Quote Originally Posted by sojusnik View Post
    You're totally right.

    @Frogs Hair

    When invoking nautilus with gksu, the system freezes for nearly 20 seconds, then nautilus with root rights is opened. Your suggested command doesn't have an effect at all. The wallpaper stays, the only way I've found is to reboot ubuntu...
    I had a similar problem, when I ran nautilus via ssh from another computer, and then my solution was
    Code:
    gksudo "nautilus --no-desktop"
    I tested it now; it works for me without a long delay. Are you running it via a remote connection from a desktop without nautilus installed? Or are you running it within a desktop environment which includes nautilus?

  6. #6
    Join Date
    Jan 2006
    Location
    Sunny Southend-on-Sea
    Beans
    8,430
    Distro
    Kubuntu 20.04 Focal Fossa

    Re: Wallpaper is changing when using "gksu nautilus"

    Tell root's nautilus not to draw the Desktop. There are probably neater ways to do it, but gksudo gconf-editor should suffice.
    None but ourselves can free our minds

  7. #7
    Join Date
    May 2007
    Beans
    112

    Re: Wallpaper is changing when using "gksu nautilus"

    Quote Originally Posted by sudodus View Post
    I had a similar problem, when I ran nautilus via ssh from another computer, and then my solution was
    Code:
    gksudo "nautilus --no-desktop"
    I tested it now; it works for me without a long delay. Are you running it via a remote connection from a desktop without nautilus installed? Or are you running it within a desktop environment which includes nautilus?
    I'll stick to this workaround, as it seems to work fine, with no delays, and my wallpaper stays

  8. #8
    Join Date
    Oct 2008
    Location
    Barcelona
    Beans
    37

    Re: Wallpaper is changing when using "gksu nautilus"

    I have the same issue, when gksu nautilus is invoked, the wallpaper changes to the (ugly) default, and whatever you do it stays until logoff. Using nautilus --no-desktop obviously works, but it is a ugly workaround to have to alias that.

    More importantly, I suspect gksu gets stuck in sudo mode after that. I can gksu gedit and the likes without having to answer any other password prompts, even after having waited 10 minutes (!) from the initial gksu. This looks like a big security flaw that should be patched asap!

  9. #9
    Join Date
    Nov 2011
    Location
    /dev/root
    Beans
    Hidden!

    Re: Wallpaper is changing when using "gksu nautilus"

    Quote Originally Posted by Ender985 View Post
    ...

    More importantly, I suspect gksu gets stuck in sudo mode after that. I can gksu gedit and the likes without having to answer any other password prompts, even after having waited 10 minutes (!) from the initial gksu. This looks like a big security flaw that should be patched asap!
    You may be right but I have not noticed that! I know there is a time-out for sudo, but it might be more than 10 minutes, probably less than one hour in Ubuntu. This can vary between distros. Maybe you can test it with gksudo nautilus running and not running.

    While you have a superuser's nautilus session running, you have power to a lot to the system, so that is probably the biggest risk. My advice is to close it as soon as the particular task (requiring privileges) is finished.

Bookmarks

Posting Permissions

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