You are not logged in.

#1 2022-12-24 14:56:08

aka_b
Member
Registered: 2022-12-24
Posts: 4

Xorg permission-Issue - only root can start gui-programs

Hello,

today I installed a fresh Arch Linux. Base-system, xorg and i3. I can launch i3 as normal user - everything is fine. And I can e.g. start alacritty. But I cannot start any program with graphical frontend.

Examples:
firefox: Error: cannot open display: :0
thunar: (thunar:8401): Gtk-WARNING **: 15:52:34.757: cannot open display: :0
libreoffice: /usr/lib/libreoffice/program/soffice.bin X11 error: Can't open display: (...)

As root I can start the above programs though. So supposedly it's a permission-problem. Any idea how I can solve these problems?

Thanks!!


Ps.:  I noticed, that I can e.g. start qutebrowser without problems as normal user.

Last edited by aka_b (2022-12-24 15:15:49)

Offline

#2 2022-12-24 15:37:56

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: Xorg permission-Issue - only root can start gui-programs

How are you launching i3?
What's the output of hostnamectl?


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2022-12-24 15:54:16

aka_b
Member
Registered: 2022-12-24
Posts: 4

Re: Xorg permission-Issue - only root can start gui-programs

Via startx. I testet it with an emtpy .xinitrc except "exec i3".

Output of hostnamectl:

Static hostname: standrechner
       Icon name: computer-desktop
         Chassis: desktop ?️
      Machine ID: x
         Boot ID: y
Operating System: Arch Linux
          Kernel: Linux 6.1.1-arch1-1
    Architecture: x86-64
 Hardware Vendor: Gigabyte Technology Co., Ltd.
  Hardware Model: B360M-D3H
Firmware Version: F4

Offline

#4 2022-12-24 16:21:22

Lone_Wolf
Forum Moderator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,922

Re: Xorg permission-Issue - only root can start gui-programs

I testet it with an emtpy .xinitrc except "exec i3".

The empty .xinitrc is likely the reason for the issue.
Check https://wiki.archlinux.org/title/Xinit#xinitrc and create a proper .xinitrc .


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#5 2022-12-24 22:58:40

aka_b
Member
Registered: 2022-12-24
Posts: 4

Re: Xorg permission-Issue - only root can start gui-programs

Sadly, that doesn't help either. Actually the first try was a copy of an old .xinitrc from another installation before trying the empty one. Creating a new one as stated above results in the same behavior...

Offline

#6 2022-12-24 23:13:09

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,532
Website

Re: Xorg permission-Issue - only root can start gui-programs

Please post the output of the following (from alacritty in the running i3 session):

echo $DISPLAY
stat ~/.Xauthority
find $HOME ! -user $USER

"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#7 2022-12-24 23:53:35

aka_b
Member
Registered: 2022-12-24
Posts: 4

Re: Xorg permission-Issue - only root can start gui-programs

echo $DISPLAY
:0

stat ~/.Xauthority
 Datei: /home/aka/.Xauthority
 Größe: 57        	Blöcke: 8          EA Block: 4096   reguläre Datei
Gerät: 259/4	Inode: 6162499     Verknüpfungen: 1
Zugriff: (0600/-rw-------)  Uid: ( 1000/    aka)   Gid: ( 1000/    aka)
Zugriff: 2022-12-25 00:49:52.823247328 +0100
Modifiziert: 2022-12-25 00:49:52.819913994 +0100
Geändert: 2022-12-25 00:49:52.819913994 +0100
Geburt: 2022-12-25 00:49:52.819913994 +0100

find $HOME ! -user $USER
--> no output

Offline

Board footer

Powered by FluxBB