ricardomv / snapper-gui

GUI for snapper, a tool for Linux filesystem snapshot management, works with btrfs, ext4 and thin-provisioned LVM volumes
GNU General Public License v2.0
226 stars 32 forks source link

"Open" button not available with sudo #56

Open luochen1990 opened 1 year ago

luochen1990 commented 1 year ago

I have to use sudo snapper-gui to see snapshots which is owned by root, but Dolphin (the KDE file explorer, which is called by "Open" botton) complains about that.

Running Dolphin with sudo can cause bugs and expose you to security vulnerabilities. Instead use Dolphin normally and youwill be prompted for elevated privileges when performing file operations that require them.
timmwille commented 1 month ago

it took me a while to figure out, had a similar issue. I'm not 100% sure it helps in your case but while noticing snapper-gui is opened as root I realised: one has to check for the system standard settings as root with sudo su root and following this suggestion/check what app is set as standard for opening directories:

nano ~/.config/mimeappslist and enter under [Default Applications] a line with your preferred file explorer e.g. inode/directory=nemo.desktop

https://forum.manjaro.org/t/set-nemo-as-default-filemanager/83387/7

So in your case you might need to install/use a different file explorer when navigating as root user.

timmwille commented 1 month ago

seems to be related to #17 and was answered in https://github.com/ricardomv/snapper-gui/issues/40#issuecomment-626107565 already too I figured now :)

Might be worth adding to the FAQ @ricardomv ? plus this issue can be maybe marked solved, as I think this in particular is a Dolphin specific issue, when running it as sudo?