hostnamectl; # tested on
Operating System: Debian GNU/Linux 12 (bookworm)  
          Kernel: Linux 6.1.0-20-amd64
    Architecture: x86-64

# become root
su - root
apt update
# if it's graphical application
echo $DISPLAY
# and the user "user" is the user that started the x11 desktop
export DISPLAY=':0.0';
# cp -v /home/user/.Xauthority /root/.Xauthority
su user -c "/usr/bin/pluma" &

# test with xeyes
apt install x11-apps
su user -c "xeyes" &

# this should appear

liked this article?

  • only together we can create a truly free world
  • plz support dwaves to keep it up & running!
  • (yes the info on the internet is (mostly) free but beer is still not free (still have to work on that))
  • really really hate advertisement
  • contribute: whenever a solution was found, blog about it for others to find!
  • talk about, recommend & link to this blog and articles
  • thanks to all who contribute!
admin