Before i post the steps i want to give a background first:
I was trying to find a solution for
nemo file manager; since it belongs to cinnamon and i’m actually using i3-wm. Nemo has a contex menu “open terminal here” which can be easilly configured with:
gsettings set org.cinnamon.desktop.default-applications.terminal exec your_terminal
OR by loading a dumped config with:
To save your actual config:
dconf dump / > path_to_save/file_name_.dconf
To load the saved config:
dconf load / < path_to_file/file_name_.dconf
But when using
nemo as root the “open terminal here” my terminal doesn’t open since i don’t have the “nemo terminal” but
So after reading and trials and errors i found solutions i want to share with you (terminal example, adapt acording to your needs).
To set configs with gsettings use:
sudo -u $USER dbus-launch --exit-with-session gsettings set org.cinnamon.desktop.default-applications.terminal exec tilix
To load a dconf file to root use:
sudo su root -c /bin/bash -c "dbus-launch dconf load / < path_to_file/file_name_.dcon"
sudo su #0 -c ; dbus-launch dconf load / <path_to_file/file_name_.dconf <This works if you are already logged in as root in the terminal.
This will set the configs to your root. I hope this can be of some use for you.