Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nemo doesn't save settings if runned by root #1676

Closed
vlad0337187 opened this issue Dec 16, 2017 · 3 comments
Closed

Nemo doesn't save settings if runned by root #1676

vlad0337187 opened this issue Dec 16, 2017 · 3 comments

Comments

@vlad0337187
Copy link

vlad0337187 commented Dec 16, 2017

 * Nemo version: 3.6.4
 * Is issue with desktop or windowed nemo? windowed
 * Distribution - Mint 18.3
 * Graphics hardware *and* driver used Nvidia Geforce GT 630, Nvidia proprietary driver
 * 64 bit

Issue
If to start Nemo from root user, change settings (for example, to double click to open items), that quit and run Nemo again, settings are reset.

Steps to reproduce

  • Press right mouse button in any folder and select "run as root"
  • in opened window go to behavior settings (edit > preferences > behavior)
  • select 'double click to open items' clause
  • close Nemo window
  • Press right mouse button in any folder and select "run as root"
  • ensure that settings are reset

Expected behaviour
After changing settings in Nemo (ran from root) and closing / opening window settings would be saved.

Other information
In IRC they suggested that it's for security reasons.
But such behavior is met only in Linux Mint 18.3, 17.3/18/18.1/18.2 save settings correctly (thanks xenopeek for this info).

I searched in sources for all uses for:
geteuid, nemo_global_preferences_finalize, nemo_global_preferences_init, nemo_application_quit_mainloop, nemo_application_startup,
and did not found such behaviour in logic.
(but I don't know C and don't know how C and GTK applications are arranged)
So I suggest it's a bug.

Workaround (thanks xenopeek for this info):
Settings of nemo are stored in dconf.
There is no /root/.config/dconf directory by default.
Creating that directory and copying the files from my user to root, applies the changes I made by user.
Make the changes you want to do to your own account and then run: sudo cp -R ~/.config/dconf /root/.config

@xenopeek
Copy link

I can't reproduce this with Nemo 4.6.4 on Linux Mint 20 Cinnamon: opening a root window and making changes to preferences, such are remembered between sessions and only affect the root window. This looks to have been fixed.

@vlad0337187
Copy link
Author

@xenopeek , thank you.
I also can't reproduce it with Nemo 4.6.4 on Fedora 32.

@rlibanez
Copy link

rlibanez commented Dec 5, 2021

After many tests and installations, I have solved installing dbus-x11. In Debian and derivates:

sudo apt install dbus-x11

I noticed that installing Debian Cinnamon or KDE from netinst, the dbus-x11 did not appear as installed and Nemo gave problems. But when installing them from Calamares (live), it automatically installs dbux-x11 and Nemo works without problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants