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

Notification Icon isn't replaced #2851

Open
SethBarberee opened this issue Aug 11, 2019 · 7 comments
Open

Notification Icon isn't replaced #2851

SethBarberee opened this issue Aug 11, 2019 · 7 comments
Assignees
Milestone

Comments

@SethBarberee
Copy link
Contributor

SethBarberee commented Aug 11, 2019

@Elv13, sorry I keep hitting you with naughty bugs πŸ˜„

Output of awesome --version:

awesome v4.3-350-ged091838 (Too long)
 β€’ Compiled against Lua 5.3.5 (running with Lua 5.3)
 β€’ D-Bus support: βœ”
 β€’ xcb-errors support: βœ”
 β€’ execinfo support: βœ”
 β€’ xcb-randr version: 1.6
 β€’ LGI version: 0.9.2

How to reproduce the issue:

Trigger a new notification that uses icons (used spotify since it shows album art on each new song) during when the first notifcation is displayed. The text is replaced but icon is not replaced.

NOTE: When first notification is destroyed, the icon is properly set. This does not happen when the first notification is still displayed.

Actual result:

Album Art (Icon) from first notification is still there while text is updated.

Expected result:

Album art (icon) for the recent notification should be the icon and properly replace just like the text.

@psychon psychon added this to the v4.4 milestone Aug 12, 2019
@Elv13 Elv13 self-assigned this Aug 13, 2019
@SethBarberee
Copy link
Contributor Author

This has been fixed so closing this for now

@actionless
Copy link
Member

i still can reproduce it in a bit more limited test case:

if content of the image file changes
then setting notification.icon to the same filename doesn't update the icon

@actionless actionless reopened this Apr 23, 2020
@elenapan
Copy link

if content of the image file changes then setting notification.icon to the same filename doesn't update the icon

As far as I know, imageboxes in general have this issue.

@psychon
Copy link
Member

psychon commented Apr 23, 2020

Should

local icn = gsurface.load_silently(notif.icon)
and
local icn = gsurface.load_silently(tb._private.notification.icon)
use load_uncached_silently?

@actionless
Copy link
Member

mb cache should check the filesize, not only filename?

@psychon
Copy link
Member

psychon commented Apr 23, 2020

mtime would be more sensible than filesize, I think

@actionless
Copy link
Member

yup

Elv13 added a commit to Elv13/awesome-1 that referenced this issue Dec 30, 2023
This *should* allow to reload images when the path has not changed.
I only did limited testing (aka, it doesn't crash and detect changes).

See awesomeWM#2851
Elv13 added a commit to Elv13/awesome-1 that referenced this issue Dec 30, 2023
Elv13 added a commit to Elv13/awesome-1 that referenced this issue Dec 31, 2023
This *should* allow to reload images when the path has not changed.
I only did limited testing (aka, it doesn't crash and detect changes).

See awesomeWM#2851
Elv13 added a commit to Elv13/awesome-1 that referenced this issue Dec 31, 2023
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

5 participants