Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Evolution no longer starts
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

Goto page Previous  1, 2, 3  
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
pingtoo
Veteran
Veteran


Joined: 10 Sep 2021
Posts: 1492
Location: Richmond Hill, Canada

PostPosted: Sat Feb 08, 2025 1:59 pm    Post subject: Reply with quote

Da51d wrote:
However, if I try to connect as an ordinary unprivileged user:
Code:
$ nc -U -z /run/user/134/at-spi/bus_0
nc: /run/user/134/at-spi/bus_0: Permission denied


Why is this being denied on a file with these permissions?


Which "user" issue the nc command? is it 134? I think the /run/user/134 directory does not allow other go in there for read/write.
Back to top
View user's profile Send private message
sMueggli
Guru
Guru


Joined: 03 Sep 2022
Posts: 541

PostPosted: Sat Feb 08, 2025 2:05 pm    Post subject: Reply with quote

Da51d wrote:
Why is this being denied on a file with these permissions?


I guess because of the permissions of /run/user/134.

What is the value of $XDG_RUNTIME_DIR?
Back to top
View user's profile Send private message
Da51d
n00b
n00b


Joined: 27 Mar 2024
Posts: 62

PostPosted: Sat Feb 08, 2025 2:24 pm    Post subject: Reply with quote

OK, thanks both...its true /run/user/134 is rwx------ so stricter than the file itself.

And
Code:
# echo $XDG_RUNTIME_DIR
/run/user/1000


(which is me, 1000, the user)
_________________
What can be said at all can be said clearly and what we cannot talk about we must pass over in silence.
Back to top
View user's profile Send private message
sMueggli
Guru
Guru


Joined: 03 Sep 2022
Posts: 541

PostPosted: Sat Feb 08, 2025 3:07 pm    Post subject: Reply with quote

Your XDG_RUNTIME_DIR looks correct.

Does the at-spi bus exist for your user?

Code:
ls -l $XDG_RUNTIME_DIR/at-spi
?
Back to top
View user's profile Send private message
Da51d
n00b
n00b


Joined: 27 Mar 2024
Posts: 62

PostPosted: Sat Feb 08, 2025 3:11 pm    Post subject: Reply with quote

Quote:
Does the at-spi bus exist for your user?

No, it doesn't:
Code:
# ls -l $XDG_RUNTIME_DIR/at-spi
ls: cannot access '/run/user/1000/at-spi': No such file or directory

_________________
What can be said at all can be said clearly and what we cannot talk about we must pass over in silence.
Back to top
View user's profile Send private message
sMueggli
Guru
Guru


Joined: 03 Sep 2022
Posts: 541

PostPosted: Sat Feb 08, 2025 3:20 pm    Post subject: Reply with quote

Does it exist after executing (as normal user)
Code:
/usr/libexec/at-spi-bus-launcher --launch-immediately
?
Back to top
View user's profile Send private message
Da51d
n00b
n00b


Joined: 27 Mar 2024
Posts: 62

PostPosted: Sat Feb 08, 2025 7:22 pm    Post subject: Reply with quote

Apologies for the delay...
Quote:
Does it exist after executing (as normal user)


No it doesn't
Code:
$ /usr/libexec/at-spi-bus-launcher --launch-immediately
$ ls -l $XDG_RUNTIME_DIR/at-spi
ls: cannot access '/run/user/1000/at-spi': No such file or directory

And thanks for your help...
_________________
What can be said at all can be said clearly and what we cannot talk about we must pass over in silence.
Back to top
View user's profile Send private message
dumi
n00b
n00b


Joined: 17 Mar 2004
Posts: 28
Location: Czech Republic

PostPosted: Sun Feb 09, 2025 12:17 pm    Post subject: Reply with quote

look at permissions for directories above.

/run/user/137 and /run/user/134/at-spi i think they have 700 permisions.
_________________
Software is like sex.
It's better when it's free.
Back to top
View user's profile Send private message
Da51d
n00b
n00b


Joined: 27 Mar 2024
Posts: 62

PostPosted: Sun Feb 09, 2025 12:55 pm    Post subject: Reply with quote

Yes that's right (see about 6 comments back rwx------ =700).
I have set an environment variable NO_AT_BRIDGE=1. This stops the xsession errors. It may possibly solve the problem of evolution not working too, but I have uninstalled evolution, so can't check. But this seems more like a workaround than a solution.
_________________
What can be said at all can be said clearly and what we cannot talk about we must pass over in silence.
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23097

PostPosted: Sun Feb 09, 2025 2:55 pm    Post subject: Reply with quote

I would expect that the /run/user/uid directories should be mode 700. The question then is why these programs are trying to poke around in run directories other than their own. This is probably due to an incorrect environment variable instructing them to look there.
Back to top
View user's profile Send private message
Da51d
n00b
n00b


Joined: 27 Mar 2024
Posts: 62

PostPosted: Mon Feb 10, 2025 11:29 am    Post subject: Reply with quote

Evolution (now reinstalled) also works fine with the environment variable NO_AT_BRIDGE=1. So it solves my problem...however probably not useful for someone who requires assistive technology.
Quote:
This is probably due to an incorrect environment variable instructing them to look there

The SESSION_MANAGER environment variable is empty, with an i3 session. There is also a difference between the lightdm processes running prior to logging in with and without NO_AT_BRIDGE=1.
WIth:
Code:
root      2132  0.0  0.0 305628  7112 ?        Ssl  01:03   0:00 /usr/sbin/lightdm
root      2198  0.1  0.9 759700 74300 tty7     Ssl+ 01:03   0:00 /bin/X :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
root      2238  0.0  0.0 233596  7808 ?        Sl   01:04   0:00 lightdm --session-child 17 20
lightdm   2242  0.2  0.9 839260 77780 ?        Ssl  01:04   0:00 /bin/lightdm-gtk-greeter
lightdm   2247  0.0  0.0 378484  6656 ?        Sl   01:04   0:00 /usr/libexec/at-spi-bus-launcher --launch-immediately
lightdm   2256  0.0  0.0   4368  1664 ?        S    01:04   0:00 dbus-launch --autolaunch=8a55c654a3d71d4d27888bc0673e9427 --binary-syntax --close-stderr
lightdm   2258  0.0  0.0   5668  1792 ?        Ss   01:04   0:00 /usr/bin/dbus-daemon --syslog-only --fork --print-pid 5 --print-address 7 --session
lightdm   2261  0.0  0.0   4568  2816 ?        S    01:04   0:00 /usr/bin/dbus-daemon --config-file=/usr/share/defaults/at-spi2/accessibility.conf --nofork --print-address 11 --address=unix:path=/run/user/134/at-spi/bus_0
root      2267  0.0  0.0  12240  5888 ?        S    01:04   0:00 lightdm --session-child 13 20

Without:
Code:
root      2125  0.0  0.0 305628  6816 ?        Ssl  01:15   0:00 /usr/sbin/lightdm
root      2194  0.2  0.9 760192 74320 tty7     Ssl+ 01:15   0:00 /bin/X :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
root      2250  0.0  0.1 233596  8064 ?        Sl   01:15   0:00 lightdm --session-child 17 20
lightdm   2254  0.2  0.9 839348 77528 ?        Ssl  01:15   0:00 /bin/lightdm-gtk-greeter
lightdm   2261  0.0  0.0   4368  1792 ?        S    01:15   0:00 dbus-launch --autolaunch 8a55c654a3d71d4d27888bc0673e9427 --binary-syntax --close-stderr
lightdm   2262  0.0  0.0   5668  2048 ?        Ss   01:15   0:00 /usr/bin/dbus-daemon --syslog-only --fork --print-pid 5 --print-address 7 --session
lightdm   2264  0.0  0.0 378484  6528 ?        Sl   01:15   0:00 /usr/libexec/at-spi-bus-launcher
lightdm   2270  0.0  0.0   5648  2944 ?        S    01:15   0:00 /usr/bin/dbus-daemon --config-file=/usr/share/defaults/at-spi2/accessibility.conf --nofork --print-address 11 --address=unix:path=/run/user/134/at-spi/bus_0
root      2287  0.0  0.0  12240  5888 ?        S    01:15   0:00 lightdm --session-child 13 20
lightdm   2289  0.0  0.0 231412  6784 ?        Sl   01:15   0:00 /usr/libexec/at-spi2-registryd --use-gnome-session

My attention is drawn to "--use-gnome-session" in the latter case. Gnome-session is not installed.
Also, after logging in -
With:
Code:
root      2132  0.0  0.0 305788  7240 ?        SLsl 01:03   0:00 /usr/sbin/lightdm
root      2198  0.1  0.8 697712 70844 tty7     Ssl+ 01:03   0:00 /bin/X :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
lightdm   2256  0.0  0.0   4368  1664 ?        S    01:04   0:00 dbus-launch --autolaunch=8a55c654a3d71d4d27888bc0673e9427 --binary-syntax --close-stderr
lightdm   2258  0.0  0.0   5668  1792 ?        Ss   01:04   0:00 /usr/bin/dbus-daemon --syslog-only --fork --print-pid 5 --print-address 7 --session
root      2267  0.0  0.1 233596  8064 ?        Sl   01:04   0:00 lightdm --session-child 13 20
root      2405  0.0  0.0   6528  2176 tty5     S+   01:08   0:00 grep --color=auto lightdm

Without:
Code:
root      2125  0.0  0.0 305788  6944 ?        SLsl 01:15   0:00 /usr/sbin/lightdm
root      2194  0.1  0.8 706112 70992 tty7     Ssl+ 01:15   0:00 /bin/X :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
lightdm   2261  0.0  0.0   4368  1792 ?        S    01:15   0:00 dbus-launch --autolaunch 8a55c654a3d71d4d27888bc0673e9427 --binary-syntax --close-stderr
lightdm   2262  0.0  0.0   5668  2048 ?        Ss   01:15   0:00 /usr/bin/dbus-daemon --syslog-only --fork --print-pid 5 --print-address 7 --session
lightdm   2264  0.0  0.0 378484  6528 ?        Sl   01:15   0:00 /usr/libexec/at-spi-bus-launcher
lightdm   2270  0.0  0.0   5648  2944 ?        S    01:15   0:00 /usr/bin/dbus-daemon --config-file=/usr/share/defaults/at-spi2/accessibility.conf --nofork --print-address 11 --address=unix:path=/run/user/134/at-spi/bus_0
root      2287  0.0  0.1 233596  8064 ?        Sl   01:15   0:00 lightdm --session-child 13 20
lightdm   2289  0.0  0.0 231544  6912 ?        Sl   01:15   0:00 /usr/libexec/at-spi2-registryd --use-gnome-session
root      2434  0.0  0.0   6528  2176 tty3     S+   01:20   0:00 grep --color=auto lightdm


Anyway, the problem is solved for me. I suppose anyone who requires assistive technology can simply install Gnome Desktop and they won't have a problem. At-spi is Gnome's baby after all.
Thanks everyone for the help.
_________________
What can be said at all can be said clearly and what we cannot talk about we must pass over in silence.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Goto page Previous  1, 2, 3
Page 3 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum