snapper-gui icon indicating copy to clipboard operation
snapper-gui copied to clipboard

"Open" button not available with sudo

Open luochen1990 opened this issue 2 years ago • 2 comments

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.

luochen1990 avatar Apr 25 '23 02:04 luochen1990

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 avatar Sep 02 '24 21:09 timmwille

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?

timmwille avatar Sep 02 '24 21:09 timmwille