-
Notifications
You must be signed in to change notification settings - Fork 299
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
Comments
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. |
@xenopeek , thank you. |
After many tests and installations, I have solved installing dbus-x11. In Debian and derivates:
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. |
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
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
The text was updated successfully, but these errors were encountered: