geckolinux / geckolinux-project

GeckoLinux bug tracker and documentation
https://geckolinux.github.io
209 stars 17 forks source link

Rolling Cinnamon: Unable to open GUI apps as root. #389

Closed amethystgosling closed 2 years ago

amethystgosling commented 2 years ago

I.e. sudo mousepad gives "(mousepad:6127): Gtk-WARNING **: 08:59:18.536: cannot open display:" pkexec mousepad works

geckolinux commented 2 years ago

Hello, this is by design in openSUSE: https://www.suse.com/c/how-get-graphical-applications-working-sudo-sle-10/

Please use gnomesu to open GUI apps as root.

amethystgosling commented 2 years ago

Hello, this is by design in openSUSE: https://www.suse.com/c/how-get-graphical-applications-working-sudo-sle-10/

I wish to have my text editor always open files as root without asking a password (using sudo). Should I follow this guide so that I can run GUI apps using sudo. Will it have any negative repercussions?

geckolinux commented 2 years ago

Why not simply use "Open with..." and define a custom command of gnomesu mousepad ?