Running gksu nautilus freezes screen after a while

Post questions regarding lower-level issues will here.

Running gksu nautilus freezes screen after a while

Postby zlatanovic-nebojsa » January 31st, 2018, 11:43 am

I have debian 9 with Gnome.

When i try to run nautilus with alt + f2 and gksu nautilus, after a while my system freezes sometimes i can just move my mouse.

I am new in this world any help will be appreciated.
zlatanovic-nebojsa
 
Posts: 4
Joined: January 31st, 2018, 11:40 am

Re: Running gksu nautilus freezes screen after a while

Postby cynwulf » January 31st, 2018, 12:41 pm

If you must run graphical applications as root, try pkexec as an alternative (but no idea why gksu doesn't work.)
cynwulf
 
Posts: 2548
Joined: April 26th, 2011, 2:46 pm

Re: Running gksu nautilus freezes screen after a while

Postby zlatanovic-nebojsa » January 31st, 2018, 12:45 pm

Thanks for an answer.

You think its problem in gksu?

Can i somehow show u my logs if u exlain me how to.

And when i try pkexec nautilus i get :

(nautilus:6901): Gtk-WARNING **: cannot open display:

EDIT:

And one more thing i was googling about a problem for like 5 hours and couldnt find answer,
that's why i asked here for advanced help
zlatanovic-nebojsa
 
Posts: 4
Joined: January 31st, 2018, 11:40 am

Re: Running gksu nautilus freezes screen after a while

Postby cynwulf » January 31st, 2018, 3:16 pm

You will need to set up a custom action for nautilus, otherwise pkexec will fail.

Code: Select all
$ man pkexec


https://linux.die.net/man/1/pkexec

No idea why gksu wouldn't work. You're running gnome and I've not much of a clue when it comes to that particular desktop.

I'm also not sure why you need a graphical file manager running as root....
cynwulf
 
Posts: 2548
Joined: April 26th, 2011, 2:46 pm

Re: Running gksu nautilus freezes screen after a while

Postby zlatanovic-nebojsa » January 31st, 2018, 3:43 pm

EDIT:
I found a way to run pkexec
Code: Select all
pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY nautilus


And it works fine no freeze no crash.

END OF EDIT

I am just annoyed with that bug. I don't particularly need a graphical file manager running as root.

These messages i see in my /var/log/messages file when i type
Code: Select all
$sudo less messages


I found this lines of error maybe is related to something.
    Jan 31 16:09:28 zlatanovic-nebojsa gnome-shell[773]: unable to create file '/run/user/1000/dconf/user': Permission denied. dconf will not work properly
    Jan 31 16:09:40 zlatanovic-nebojsa gnome-shell[773]: _st_create_shadow_pipeline: assertion 'src_texture != NULL' failed
    Jan 31 16:10:49 zlatanovic-nebojsa gnome-terminal-[2190]: Allocating size to GtkScrollbar 0x555b475e0370 without calling gtk_widget
    _get_preferred_width/height(). How does the code know the size to allocate?
    Jan 31 16:17:36 zlatanovic-nebojsa org.gnome.Shell.desktop[773]: couldn't lock 16384 bytes of memory (secret_session): Cannot allocate memory.
Last edited by zlatanovic-nebojsa on January 31st, 2018, 3:54 pm, edited 1 time in total.
zlatanovic-nebojsa
 
Posts: 4
Joined: January 31st, 2018, 11:40 am

Re: Running gksu nautilus freezes screen after a while

Postby cynwulf » January 31st, 2018, 3:54 pm

zlatanovic-nebojsa wrote:
Code: Select all
Jan 31 16:09:28 zlatanovic-nebojsa gnome-shell[773]: unable to create file '/run/user/1000/dconf/user': Permission denied.  dconf will not work properly

Seems relevant: https://bugs.debian.org/cgi-bin/bugrepo ... bug=732209

And the bug was reassigned to libpam-systemd and is still current: https://bugs.debian.org/cgi-bin/pkgrepo ... t=unstable

I no longer use Debian, it's been quite a few years now and have no experience with systemd. Hopefully someone else can jump in and provide assistance.
cynwulf
 
Posts: 2548
Joined: April 26th, 2011, 2:46 pm

Re: Running gksu nautilus freezes screen after a while

Postby zlatanovic-nebojsa » January 31st, 2018, 3:57 pm

Thank you a lot, i hope someone will help me to solve this issue.

Best regards
zlatanovic-nebojsa
 
Posts: 4
Joined: January 31st, 2018, 11:40 am


Return to System Issues

Who is online

Users browsing this forum: No registered users and 1 guest

cron

x