You are not logged in.

#1 2025-08-16 16:27:09

Succulent of your garden
Member
From: Majestic kingdom of pot plants
Registered: 2024-02-29
Posts: 1,396

[SOLVED] Dbus error in script.

So I made this script to check the weather some time back ago:


#!/bin/sh
choice=$(echo "" | dmenu -p 'Please write city to check weather: ')
link="wttr.in/$choice"
kitty --hold -- bash -c "curl $link; read -p 'Press Enter to exit'"

But today  I launched by a terminal and not with my keybinding shortcut [which obviously launch kitty terminal] and I found this error being printed by the  terminal that launched the script process:


[0.464] [glfw error 65544]: process_desktop_settings: failed with error: org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.portal.Settings” on object at path /org/freedesktop/portal/desktop
[0.464] [glfw error 65544]: Notify: Failed to get server capabilities error: org.freedesktop.DBus.Error.ServiceUnknown: The name is not activatable

What could be mean this ? I'm running it with DWM, so I'm not sure if could be some DWM issue. Any help in trying to understand what is going on here will be appreciated smile

Last edited by Succulent of your garden (2025-08-17 14:25:47)


str( @soyg ) == str( @potplant ) btw!

Also now with avatar logo included!

Online

#2 2025-08-16 20:12:37

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 73,712

Re: [SOLVED] Dbus error in script.

Sounds like you don't have a notification daemon (like eg. dunst) running (kittty might try to run notifications)
portal is most likely just noise, you could install xdg-desktop-portal-gtk, https://wiki.archlinux.org/title/XDG_De … interfaces but it's typically only "needed" for flatpak and sometimes wayland.

Offline

#3 2025-08-16 21:10:00

Succulent of your garden
Member
From: Majestic kingdom of pot plants
Registered: 2024-02-29
Posts: 1,396

Re: [SOLVED] Dbus error in script.

I have installed the xdg-desktop-portal package but probably not a backend. But for example I have an app in flatpak, which seems to work fine.

What do you think about this ? Do you recommend some backend for dwm ? Is probably adding noise as you said, but do you think this error could make some others happen ?


str( @soyg ) == str( @potplant ) btw!

Also now with avatar logo included!

Online

#4 2025-08-16 21:46:02

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 73,712

Re: [SOLVED] Dbus error in script.

flatpack requires portal for desktop integration, but if you don't have a problem w/ your specific flatpak app, you can ignore that.
You also do not strictly "need" a notification daemon but might wish to receive notifications and iirc some applications (don't ask me which, that somewhere deep in the back of my head) may actually fail/crash if they cannot start/access one.

Offline

#5 2025-08-16 22:34:34

Succulent of your garden
Member
From: Majestic kingdom of pot plants
Registered: 2024-02-29
Posts: 1,396

Re: [SOLVED] Dbus error in script.

Do you think that with just installing dunst the problem will be solved ? I mean since I'm ussing dwm it doesn't make some sense to me to use some backend to xdg. But to be honest I haven't yet completly read the archwiki of the backends. I'm debugging a php container lol


str( @soyg ) == str( @potplant ) btw!

Also now with avatar logo included!

Online

#6 2025-08-17 09:32:40

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 73,712

Re: [SOLVED] Dbus error in script.

What "problem" specifically?
tbh, I don't even see where your script would utilize glfw, this might be coming from your bash profile?

Offline

#7 2025-08-17 13:23:18

Succulent of your garden
Member
From: Majestic kingdom of pot plants
Registered: 2024-02-29
Posts: 1,396

Re: [SOLVED] Dbus error in script.

The problem is the errors coming from the first terminal that are showing me that I have an error in my system, and my sysadmin iron hearth to fix every possible error in my system, which creates some kind of healthy OCD in me lol. So yeah in some sense I'm creating an error from an "false negative" error, but I wasn't sure first what the error mean.

Do you think that is because of alacritty launching kitty ? or is a kitty only thing ? If I tweak the script to use the alacritty for example do you think that the problem would cease to exists ? My intuition in someway is saying me that.


str( @soyg ) == str( @potplant ) btw!

Also now with avatar logo included!

Online

#8 2025-08-17 13:32:47

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 73,712

Re: [SOLVED] Dbus error in script.

alacritty neither uses glfw…

pacman -Qi glfw

Does just running "kitty -e top" get you some or all of those "errors"?

I'd install (and run) dunst just to have working notifications (eg. I use them as volume feedback, countdown for scheduled and abortable sleep and shutdowns and what not else) but xdg-desktop-portal will keep nagging you unless you learn to ignore it or install an implementation.

Offline

#9 2025-08-17 14:01:30

Succulent of your garden
Member
From: Majestic kingdom of pot plants
Registered: 2024-02-29
Posts: 1,396

Re: [SOLVED] Dbus error in script.

pacman -Qi glfw

my_terminal_says wrote:

error: package 'glfw' was not found

As we both expected.

Does just running "kitty -e top" get you some or all of those "errors"?



yes it does

[0.393] [glfw error 65544]: process_desktop_settings: failed with error: org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.portal.Settings” on object at path /org/freedesktop/portal/desktop
[0.393] [glfw error 65544]: Notify: Failed to get server capabilities error: org.freedesktop.DBus.Error.ServiceUnknown: The name is not activatable

Some time back ago I played with dunst and it seems fine, and I totally get it the usage. But now days I have all my useful information in my bar [the battery script from the other post for example], so maybe the only thing that could be useful is to change the volume, but I have the sound card in front of me btw, so probably is more like a coding challenge for me.

I'm going to read the arch wiki now[ I'm starting to wake up now], do you recommend some implementation in particular ? I'm going to read and make a decision if I install someone or not.

Nevertheless, as always thanks for you help smile

Last edited by Succulent of your garden (2025-08-17 14:03:29)


str( @soyg ) == str( @potplant ) btw!

Also now with avatar logo included!

Online

#10 2025-08-17 14:15:59

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 73,712

Re: [SOLVED] Dbus error in script.

So it's coming from kitty and not related to glfw-glfw, kitty just throws that in there …

https://github.com/kovidgoyal/kitty/issues/8141
https://github.com/kovidgoyal/kitty/iss … 2585956680

Offline

#11 2025-08-17 14:25:33

Succulent of your garden
Member
From: Majestic kingdom of pot plants
Registered: 2024-02-29
Posts: 1,396

Re: [SOLVED] Dbus error in script.

Thanks, I can confirm is just a kitty "issue".  I launched another alacritty terminal from another alacritty terminal and send the order to launch top. The error disappears. Also launching my script from alacritty does the same, there are no errors. I guess dog > kitty.

Thank you so much for your help!

Last edited by Succulent of your garden (2025-08-17 14:26:30)


str( @soyg ) == str( @potplant ) btw!

Also now with avatar logo included!

Online

Board footer

Powered by FluxBB