-
Notifications
You must be signed in to change notification settings - Fork 19
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
Comments
Hi, are you using one of the releases or the latest git? I've beefed up the
tray tooltip support since the last release.
…On Tue, Oct 15, 2024 at 10:15 PM alaricljs ***@***.***> wrote:
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.
—
Reply to this email directly, view it on GitHub
<#245>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ASHPFFG42QHTKWAPHNVSHVTZ3WAWTAVCNFSM6AAAAABQABAWBOVHI2DSMVQWIX3LMV43ASLTON2WKOZSGU4DSOJUG44DMNI>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
AUR release, weekend attempt at building it myself landed me a binary that does nothing but instantly segfault |
^^ aur -git did the same |
Can you try sfwbar-git from aur?
…On Tue, 15 Oct 2024, 22:41 alaricljs, ***@***.***> wrote:
AUR release, weekend attempt at building it myself landed me a binary that
does nothing but instantly segfault
—
Reply to this email directly, view it on GitHub
<#245 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ASHPFFAMABBXVXWKL3NOZMLZ3WDZVAVCNFSM6AAAAABQABAWBOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMJVGIYTMOJUHE>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Looks like our messages crossed. Just saw the your tried -git.
…On Tue, 15 Oct 2024, 22:42 alaricljs, ***@***.***> wrote:
^^ aur -git did the same
—
Reply to this email directly, view it on GitHub
<#245 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ASHPFFBKBNUTSFI2IY5UBOLZ3WD4HAVCNFSM6AAAAABQABAWBOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMJVGIYTOOBQGI>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
did it again anyhow, still segfault/coredump. |
I have been testing nm-applet specifically with the git version and it's
been showing tooltips. You don't see anything for this applet even when
connected to WiFi?
Can you try running 'sfwbar -d -g sni' in a terminal and post the output
you get?
…On Tue, 15 Oct 2024, 22:43 Lev Babiev, ***@***.***> wrote:
Looks like our messages crossed. Just saw the your tried -git.
On Tue, 15 Oct 2024, 22:42 alaricljs, ***@***.***> wrote:
> ^^ aur -git did the same
>
> —
> Reply to this email directly, view it on GitHub
> <#245 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ASHPFFBKBNUTSFI2IY5UBOLZ3WD4HAVCNFSM6AAAAABQABAWBOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMJVGIYTOOBQGI>
> .
> You are receiving this because you commented.Message ID:
> ***@***.***>
>
|
no config crashes looking for /usr/share/sfwbar/startmenu.css ... |
Do you mean you get a segfault with the -git aur version? What compositor
are you using?
…On Tue, 15 Oct 2024, 22:47 Lev Babiev, ***@***.***> wrote:
I have been testing nm-applet specifically with the git version and it's
been showing tooltips. You don't see anything for this applet even when
connected to WiFi?
Can you try running 'sfwbar -d -g sni' in a terminal and post the output
you get?
On Tue, 15 Oct 2024, 22:43 Lev Babiev, ***@***.***> wrote:
> Looks like our messages crossed. Just saw the your tried -git.
>
> On Tue, 15 Oct 2024, 22:42 alaricljs, ***@***.***> wrote:
>
>> ^^ aur -git did the same
>>
>> —
>> Reply to this email directly, view it on GitHub
>> <#245 (comment)>,
>> or unsubscribe
>> <https://github.com/notifications/unsubscribe-auth/ASHPFFBKBNUTSFI2IY5UBOLZ3WD4HAVCNFSM6AAAAABQABAWBOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMJVGIYTOOBQGI>
>> .
>> You are receiving this because you commented.Message ID:
>> ***@***.***>
>>
>
|
yes to the -git versions and Hyprland. Do you want the above sfwbar attempt on -git or release? |
Startmenu.css? Are you using a default config or something custom? I don't
this startmenu.css is referenced anywhere in the default config.
…On Tue, 15 Oct 2024, 22:48 Lev Babiev, ***@***.***> wrote:
Do you mean you get a segfault with the -git aur version? What compositor
are you using?
On Tue, 15 Oct 2024, 22:47 Lev Babiev, ***@***.***> wrote:
> I have been testing nm-applet specifically with the git version and it's
> been showing tooltips. You don't see anything for this applet even when
> connected to WiFi?
>
> Can you try running 'sfwbar -d -g sni' in a terminal and post the output
> you get?
>
> On Tue, 15 Oct 2024, 22:43 Lev Babiev, ***@***.***> wrote:
>
>> Looks like our messages crossed. Just saw the your tried -git.
>>
>> On Tue, 15 Oct 2024, 22:42 alaricljs, ***@***.***> wrote:
>>
>>> ^^ aur -git did the same
>>>
>>> —
>>> Reply to this email directly, view it on GitHub
>>> <#245 (comment)>,
>>> or unsubscribe
>>> <https://github.com/notifications/unsubscribe-auth/ASHPFFBKBNUTSFI2IY5UBOLZ3WD4HAVCNFSM6AAAAABQABAWBOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMJVGIYTOOBQGI>
>>> .
>>> You are receiving this because you commented.Message ID:
>>> ***@***.***>
>>>
>>
|
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 |
Did you copy sfwbar.config for /usr/share/sfwbar/ to ~/.config/sfwbar/ and
running sfwbar without any parameters?
…On Tue, 15 Oct 2024, 22:58 alaricljs, ***@***.***> wrote:
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
—
Reply to this email directly, view it on GitHub
<#245 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ASHPFFAXCPQ3SNWOP3MKEG3Z3WFZJAVCNFSM6AAAAABQABAWBOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMJVGIZTQMRWGI>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
exactly so. in order to determine the failure I strace'd it afterward. |
The segfault here is a red herring I believe. When sfwbar can't find a
config file, it bails and dumps core. I should probably have a more
graceful failure for this scenario.
The odd bit is that it's looking for a startmenu.css in the first place.
Let me try to replicate this on my machine tomorrow morning.
…On Tue, 15 Oct 2024, 23:03 alaricljs, ***@***.***> wrote:
exactly so. in order to determine the failure I strace'd it afterward.
—
Reply to this email directly, view it on GitHub
<#245 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ASHPFFEFC4V2WJF2N5MFSYDZ3WGKRAVCNFSM6AAAAABQABAWBOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMJVGI2TAMBVGM>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
ok thanks |
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. |
|
Can you try running "sfwbar -d" to see if there is any debug output that
can shed some light on this?
Also, since it dumps core, can you try to get a backtrace? Run
"coredumpctl gdb" and in gdb run "bt full".
…On Wed, 16 Oct 2024, 19:09 alaricljs, ***@***.***> wrote:
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) +++
—
Reply to this email directly, view it on GitHub
<#245 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ASHPFFA4EGWIEIFX2YJPBB3Z32TWFAVCNFSM6AAAAABQABAWBOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMJXGU3DGNZTHE>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
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:
|
Thank you. This is just what I needed. It looks like the startmenu.css is a
red herring (does it show up as an error message when you start sfwbar
normally or only in strace?). The issue was triggered by only partially
merged update I was working on. I pushed the rest of it now and segfault
should be gone. Can you try updating sfwbar-git from AUR and see if it
works?
…On Tue, Oct 15, 2024 at 11:09 PM alaricljs ***@***.***> wrote:
ok thanks
—
Reply to this email directly, view it on GitHub
<#245 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ASHPFFGYXOPSHZREUX6KQM3Z3WHADAVCNFSM6AAAAABQABAWBOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMJVGI2TMOJWGU>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
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). |
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. |
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 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 |
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. |
Wow... nm-applet has issues. I created a VPN profile and now there's a tooltip. |
Your ML adjustment is working. |
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.
The text was updated successfully, but these errors were encountered: