Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tray tooltips? #245

Open
alaricljs opened this issue Oct 15, 2024 · 27 comments
Open

Tray tooltips? #245

alaricljs opened this issue Oct 15, 2024 · 27 comments

Comments

@alaricljs
Copy link

I'm working on the switch from X to Wayland and sfwbar is a pretty close fit for me.

The Tray items do not have any tooltips and I'm wondering if that's on your roadmap? Right now the apps I use have an array of possibilities from their window name (like: 'Passwords - KeePassXC'), status output (connection list from nm-applet or nextcloud client), to nothing at all (solaar). None of these show up with sfwbar's tray implementation. Not sure if that's an application side thing or sfwbar.

@LBCrion
Copy link
Owner

LBCrion commented Oct 15, 2024 via email

@alaricljs
Copy link
Author

AUR release, weekend attempt at building it myself landed me a binary that does nothing but instantly segfault

@alaricljs
Copy link
Author

^^ aur -git did the same

@LBCrion
Copy link
Owner

LBCrion commented Oct 15, 2024 via email

@LBCrion
Copy link
Owner

LBCrion commented Oct 15, 2024 via email

@alaricljs
Copy link
Author

did it again anyhow, still segfault/coredump.

@LBCrion
Copy link
Owner

LBCrion commented Oct 15, 2024 via email

@alaricljs
Copy link
Author

no config crashes looking for /usr/share/sfwbar/startmenu.css ...
my config crashes after the ubiquitous "Theme parsing error: :1:32 Expected semicolon that the release version also gives. I have attempted to find that issue and failed, can't even get it to change the location of it.

@LBCrion
Copy link
Owner

LBCrion commented Oct 15, 2024 via email

@alaricljs
Copy link
Author

yes to the -git versions and Hyprland. Do you want the above sfwbar attempt on -git or release?

@LBCrion
Copy link
Owner

LBCrion commented Oct 15, 2024 via email

@alaricljs
Copy link
Author

with the -git from aur -- I copied sfwbar.config from /usr/share/sfwbar/ and it's choking on startmenu.css and you are totally right, there's no mention of that file in sfwbar.config

@LBCrion
Copy link
Owner

LBCrion commented Oct 15, 2024 via email

@alaricljs
Copy link
Author

exactly so. in order to determine the failure I strace'd it afterward.

@LBCrion
Copy link
Owner

LBCrion commented Oct 15, 2024 via email

@alaricljs
Copy link
Author

ok thanks

@LBCrion
Copy link
Owner

LBCrion commented Oct 16, 2024

Can I just confirm that it's looking for startmenu.css and not startmenu.widget?

I just tried installing a clean config into ~/.config/sfwbar and don't see any reference to startmenu.css in the debug mode. On the other hand sfwbar with the default config would bail if startmenu.widget is missing.

@alaricljs
Copy link
Author

openat(AT_FDCWD, "/usr/share/applications/org.gnupg.pinentry-qt.desktop", O_RDONLY|O_CLOEXEC) = 15
fstat(15, {st_mode=S_IFREG|0644, st_size=219, ...}) = 0
read(15, "[Desktop Entry]\nName=Pinentry\nTy"..., 4096) = 219
read(15, "", 4096)                      = 0
close(15)                               = 0
access("/usr/bin/pinentry-qt", X_OK)    = 0
getuid()                                = 1000
newfstatat(AT_FDCWD, "/usr/bin/pinentry-qt", {st_mode=S_IFREG|0755, st_size=204424, ...}, 0) = 0
futex(0x780b92e2fff8, FUTEX_WAKE_PRIVATE, 2147483647) = 0
futex(0x780b92e2fff8, FUTEX_WAKE_PRIVATE, 2147483647) = 0
futex(0x780b92e2fff8, FUTEX_WAKE_PRIVATE, 2147483647) = 0
futex(0x780b92e2fff8, FUTEX_WAKE_PRIVATE, 2147483647) = 0
futex(0x780b92e2fff8, FUTEX_WAKE_PRIVATE, 2147483647) = 0
futex(0x780b92e2fff8, FUTEX_WAKE_PRIVATE, 2147483647) = 0
futex(0x780b92e2fff8, FUTEX_WAKE_PRIVATE, 2147483647) = 0
futex(0x780b92e2fff8, FUTEX_WAKE_PRIVATE, 2147483647) = 0
access("/usr/share/sfwbar/startmenu.css", F_OK) = -1 ENOENT (No such file or directory)
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=NULL} ---
+++ killed by SIGSEGV (core dumped) +++

@LBCrion
Copy link
Owner

LBCrion commented Oct 16, 2024 via email

@alaricljs
Copy link
Author

it's calling the init function for appmenu and produces a list of appmenu items. Then there's 4 expr's like '""open-menu"" = "open-menu" (vstate: 0)' and then the seg fault. I can past the whole output if you like.

backtrace:

(gdb) bt full
#0  0x000071af3999460b in workspaces_supported () at /usr/lib/sfwbar/libsfwbar.so
#1  0x000071af39998c0b in ??? () at /usr/lib/sfwbar/libsfwbar.so
#2  0x000071af3984bb09 in g_type_create_instance () at /usr/lib/libgobject-2.0.so.0
#3  0x000071af39830805 in ??? () at /usr/lib/libgobject-2.0.so.0
#4  0x000071af39831e7f in g_object_new_with_properties () at /usr/lib/libgobject-2.0.so.0
#5  0x000071af39832ed2 in g_object_new () at /usr/lib/libgobject-2.0.so.0
#6  0x000071af399ab630 in config_widget_child () at /usr/lib/sfwbar/libsfwbar.so
#7  0x000071af399ab742 in config_widget () at /usr/lib/sfwbar/libsfwbar.so
#8  0x000071af399afab1 in config_parse_toplevel () at /usr/lib/sfwbar/libsfwbar.so
#9  0x000071af399aa6a8 in config_parse_data () at /usr/lib/sfwbar/libsfwbar.so
#10 0x000071af399aa899 in config_parse () at /usr/lib/sfwbar/libsfwbar.so
#11 0x00005b9c97866596 in ??? ()
#12 0x000071af3981e82a in g_closure_invoke () at /usr/lib/libgobject-2.0.so.0
#13 0x000071af3984f565 in ??? () at /usr/lib/libgobject-2.0.so.0
#14 0x000071af3983fca9 in ??? () at /usr/lib/libgobject-2.0.so.0
#15 0x000071af3983ff32 in g_signal_emit_valist () at /usr/lib/libgobject-2.0.so.0
#16 0x000071af3983fff4 in g_signal_emit () at /usr/lib/libgobject-2.0.so.0
#17 0x000071af38f0f9a1 in ??? () at /usr/lib/libgio-2.0.so.0
#18 0x000071af38f0fb47 in g_application_run () at /usr/lib/libgio-2.0.so.0
#19 0x00005b9c978660eb in main ()

@LBCrion
Copy link
Owner

LBCrion commented Oct 17, 2024 via email

@alaricljs
Copy link
Author

alaricljs commented Oct 18, 2024

Not an error message, just the last thing in strace before the dump.

The new -git r1594.70ba3ef-1 build works to a large extent. Amusingly enough nm-applet is the one that has no tooltip, everything else does. The menu is different for nm-applet between X and Wayland as well which is odd but not your problem. Another thing is Solaar using html(?) that is not getting interpreted, specifically <b></b>. I'll need to track down a unicode glyph for blueman... hm, battery apparently (01f50b).

@alaricljs
Copy link
Author

On another note (glad to open a separate issue) what should be responsible for notifications generated by these tray apps? blueman pops notifications for my mouse connect/disconnect and they appear with an sfw icon so sfwbar is seen as the owner/parent. The particular issue I face is that they show up and never go away without being deliberately closed.

@LBCrion
Copy link
Owner

LBCrion commented Oct 18, 2024

I added an update to the latest git to handle tooltip markup. Hopefully this will help with Solaar. For nm-applet, can you try running sfwbar -d -g sni to see what nm-applet sends over dbus?

As for blueman, if you get a popup window notifying you of a mouse connection, it's a notification being handled by a program other than sfwbar (i.e. mako or dunst). sfwbar does have a notification center, but it's disabled by default to avoid interfering with what you may already have setup on your system (you can only have one notification center). If you want to enable sfwbar's notification center, you can uncomment include("ncenter.widget") in the config, but you probably want to disable your existing notification center first.

@alaricljs
Copy link
Author

I can paste it here, but the short story is nm-applet isn't providing anything not labelled a menu. And while looking at the menu it's apparently updating icons in the menu.

@alaricljs
Copy link
Author

Wow... nm-applet has issues. I created a VPN profile and now there's a tooltip.

@alaricljs
Copy link
Author

Your ML adjustment is working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants