Page 5 of 5 FirstFirst ... 345
Results 41 to 48 of 48

Thread: cannot open nautilus with gksu

  1. #41
    Join Date
    Jun 2007
    Beans
    17,337

    Re: cannot open nautilus with gksu

    Don't think it's gksu, just some nonsense with nautilus

    Fresh 14.04 amd64 install just now.
    Installed gksu, ran command, failed
    Added my ppa, updated nautilus to a pkexec enabled one, ran gksudo nautilus, failed, ran nautilus-pkexec, failed on same error
    Installed dconf-editor, ran command to open root nautilus, failed
    Ran dconf-editor thru gksudo, closed dconf-editor
    Now nautilus can be opened as root, both gksudo & pkexec work

    It's if nautilus can't get a root gui display until some other root gui has be opened (that also would be satisfied with sudo nautilus
    doug@doug-Lenovo-IdeaPad-Y510P:~$ gksudo nautilus

    (nautilus:4988): GLib-GObject-WARNING **: invalid cast from 'GtkMessageDialog' to 'NautilusWindow'
    **
    ERROR:nautilus-window.c:2116:nautilus_window_get_slots: assertion failed: (NAUTILUS_IS_WINDOW (window))
    doug@doug-Lenovo-IdeaPad-Y510P:~$ nautilus -q
    doug@doug-Lenovo-IdeaPad-Y510P:~$ gksudo nautilus

    (nautilus:8091): GLib-GObject-WARNING **: invalid cast from 'GtkMessageDialog' to 'NautilusWindow'
    **
    ERROR:nautilus-window.c:2116:nautilus_window_get_slots: assertion failed: (NAUTILUS_IS_WINDOW (window))
    doug@doug-Lenovo-IdeaPad-Y510P:~$ nautilus-pkexec

    (nautilus:8140): Gtk-WARNING **: Failed to register client: GDBus.Errorrg.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files

    (nautilus:8140): GLib-GObject-WARNING **: invalid cast from 'GtkMessageDialog' to 'NautilusWindow'
    **
    ERROR:nautilus-window.c:2116:nautilus_window_get_slots: assertion failed: (NAUTILUS_IS_WINDOW (window))
    Aborted (core dumped)
    doug@doug-Lenovo-IdeaPad-Y510P:~$ gksudo dconf-editor

    ** (dconf-editor:8159): WARNING **: dconf-schema.vala:330: Unknown property on <schema>, extends
    doug@doug-Lenovo-IdeaPad-Y510P:~$ nautilus-pkexec
    doug@doug-Lenovo-IdeaPad-Y510P:~$ Working ^

  2. #42
    Join Date
    Jun 2005
    Beans
    Hidden!

    Re: cannot open nautilus with gksu

    Quote Originally Posted by ventrical View Post
    Make startup USB with SDC from trusty-desktop-i386.iso 2014/04/14.
    Install trusty to i386 form factor (this case a Dell Latitiude).
    Remove USB pen drive/reboot.
    sudo apt-get install synaptic
    sudo apt-get update
    sudo apt-get dist-upgrade
    Use Ubuntu Software Center to download ubuntu-unrestricted-extras
    reboot

    Login: Ctrl+Alt+t and enter-
    gksu nautilus

    apt will remind you that gksu is not installed.

    sudo apt-get install gksu

    gksu nautilus..... authentication window asks for password- Enter PSWD> (at this point a blank pop-up comes ups then it dies ,window closes, and leaves the usual error message in terminal.) Ctrl +c and exit gksu.

    Run:

    sudo nautilus

    Works beautiful. Close nautilus window. Then:

    gksu nautilus

    Works as normal .

    The scary thing about this is that after the gksu first fail and then you try 'sudo nautilus' it does not ask for password so I would have to ask if this bug is a security risk.

    Regards..
    I'll be watching to see if it sticks for a day or so, At the beginnig of your post i had commented there about "sudo -i" then "nautilus" but it did not stick for me.
    I like mc4man's lead on nautilus not consitanly grabing root.
    Last edited by QDR06VV9; April 16th, 2014 at 03:20 AM.

  3. #43
    Join Date
    Sep 2010
    Beans
    9,205
    Distro
    Ubuntu Budgie 17.10 Artful Aardvark

    Re: cannot open nautilus with gksu

    Quote Originally Posted by runrickus View Post
    I'll be watching to see if it sticks for a day or so, At the beginnig of your post i had commented there about "sudo -i" then "nautilus" but it did not stick for me.
    I like mc4man's lead on nautilus not consitanly grabing root.
    I think thats where it is too.

  4. #44
    Join Date
    Oct 2008
    Location
    ExodusHair<Čubura
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: cannot open nautilus with gksu

    Does it work with
    Code:
    sudo -H
    and does
    Code:
    rm ~/.gksu.lock
    help?

  5. #45
    Join Date
    Jun 2005
    Beans
    Hidden!

    Re: cannot open nautilus with gksu

    Here is what i get with "sudo -H"
    Code:
    usage: sudo -h | -K | -k | -V
    usage: sudo -v [-AknS] [-g group] [-h host] [-p prompt] [-u user]
    usage: sudo -l [-AknS] [-g group] [-h host] [-p prompt] [-U user] [-u user]
                [command]
    usage: sudo [-AbEHknPS] [-r role] [-t type] [-C num] [-g group] [-h host] [-p
                prompt] [-u user] [VAR=value] [-i|-s] [<command>]
    usage: sudo -e [-AknS] [-r role] [-t type] [-C num] [-g group] [-h host] [-p
                prompt] [-u user] file ...
    me@me-Aspire-M3300:~$ sudo -H nautilus
    [sudo] password for me: 
    
    ** (nautilus:9501): WARNING **: Can't load fallback CSS resource: Failed to import: The resource at '/org/gnome/adwaita/gtk-fallback.css' does not exist
    
    ** (nautilus:9501): WARNING **: Can't load fallback CSS resource: Failed to import: The resource at '/org/gnome/adwaita/gtk-fallback.css' does not exist
    
    (nautilus:9501): Gtk-WARNING **: Failed to register client: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
    Initializing nautilus-open-terminal extension
    Yes the Nautilus opened in root,
    then after "rm ~/.gksu.lock"
    I then issued sudo gedit
    Code:
    sudo gedit
    
    ** (gedit:9699): WARNING **: Can't load fallback CSS resource: Failed to import: The resource at '/org/gnome/adwaita/gtk-fallback.css' does not exist
    
    ** (gedit:9699): WARNING **: Can't load fallback CSS resource: Failed to import: The resource at '/org/gnome/adwaita/gtk-fallback.css' does not exist
    
    ** (gedit:9699): CRITICAL **: file log.c: line 980: unexpected error: Error calling StartServiceByName for org.gnome.zeitgeist.Engine: GDBus.Error:org.freedesktop.DBus.Error.Spawn.ExecFailed: Failed to execute program /usr/bin/zeitgeist-daemon: Success (g-dbus-error-quark, 23)
    ^Cme@me-Aspire-M3300:~$
    Complete fail so then i issued "gksu gedit" It was trying to start admin privileges then nothing fails, with nothing in the terminal See Attachment.
    Ventrical had this earlier also so I close the terminal via <control+c>
    Then I issued "sudo -i" then "gedit" worked! (second attachment)
    There just seems to me like focus is being lost.
    Attached Images Attached Images
    Last edited by QDR06VV9; April 16th, 2014 at 01:59 PM. Reason: fix

  6. #46
    Join Date
    Sep 2010
    Beans
    9,205
    Distro
    Ubuntu Budgie 17.10 Artful Aardvark

    Re: cannot open nautilus with gksu

    Pretty well the same thing here. Whats happening is that this bug has become random. It will be there on some hard-boots and disappear on others, both 32bit and 64bit.

    Code:
    ventrical@ventrical-desktop:~$ sudo -H nautilus
    [sudo] password for ventrical: 
    
    (nautilus:2239): Gtk-WARNING **: Failed to register client: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
    
    (nautilus:2239): GLib-GObject-WARNING **: invalid cast from 'GtkMessageDialog' to 'NautilusWindow'
    **
    ERROR:nautilus-window.c:2116:nautilus_window_get_slots: assertion failed: (NAUTILUS_IS_WINDOW (window))
    ventrical@ventrical-desktop:~$ sudo gedit
    ventrical@ventrical-desktop:~$ sudo nautilus
    
    (nautilus:2290): Gtk-WARNING **: Failed to register client: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
    Nautilus-Share-Message: Called "net usershare info" but it failed: 'net usershare' returned error 255: net usershare: cannot open usershare directory /var/lib/samba/usershares. Error No such file or directory
    Please ask your system administrator to enable user sharing.
    
    
    (nautilus:2290): GLib-CRITICAL **: Source ID 114 was not found when attempting to remove it
    
    (nautilus:2290): GLib-CRITICAL **: Source ID 115 was not found when attempting to remove it
    
    (nautilus:2290): GLib-CRITICAL **: Source ID 116 was not found when attempting to remove it
    ventrical@ventrical-desktop:~$ gksu nautilus
    Nautilus-Share-Message: Called "net usershare info" but it failed: 'net usershare' returned error 255: net usershare: cannot open usershare directory /var/lib/samba/usershares. Error No such file or directory
    Please ask your system administrator to enable user sharing.
    
    
    (nautilus:2309): GLib-CRITICAL **: Source ID 98 was not found when attempting to remove it
    
    (nautilus:2309): GLib-CRITICAL **: Source ID 100 was not found when attempting to remove it
    ventrical@ventrical-desktop:~$

  7. #47
    Join Date
    Aug 2009
    Beans
    Hidden!
    Distro
    Xubuntu

    Re: cannot open nautilus with gksu

    After installing the final release ISO today I got the errors the first time I entered this but after that first time I got no errors with gksu or gksudo nautilus or gedit.

    Code:
    cavsfan@cavsfan-desktop:~$ gksudo gedit /etc/grub.d/05_debian_theme 
    
    (gedit:7039): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
    So, it appears to fix itself after the first time.

    EDIT: I take that back I got the error again after saving a text file gksudo gedit /etc/default/grub. It was OK until I saved it then it gave the error.
    Last edited by Cavsfan; April 17th, 2014 at 05:54 PM.

  8. #48
    Join Date
    Nov 2012
    Beans
    3

    Re: cannot open nautilus with gksu

    Strangest thing. I also had this issu while trying to get nautilus-gksu to work. The thing that solved it for me, was to install "Samba". So now it works to launch nautilus with gksu from terminal, and it also works to open as administrator from the right-click menu. gksu gedit also works fine... Seems to be solved for me.

Page 5 of 5 FirstFirst ... 345

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
  •