-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Inapropriate icon on snap #2568
Comments
If this argument is replaced with an absolate path to the icon, it will work.
|
As far as I know, it should not be replaced with absolute path as many use custom icons, for instance for dark mode. I have these on my system: I think for some reason you don't have icon packs. I don't know if this is something that can/should be solved by Flameshot. Perhaps @borgmanJeremy and @veracioux have a solution to this. |
Yes I agree with @mmahmoudian especially because you have compiled from source but not run "make install" or installed any other way to the system. The notification is handled by the system, not flameshot, so if the icon is not installed in the notification daemon search path it will not be found. |
Hi @borgmanJeremy, $ flameshot --version
Flameshot v11.0.0 ()
Compiled with Qt 5.15.3 However, when installing the older version via $ flameshot --version
Flameshot 0.6.0+git20191001-2(Debian)
Compiled with Qt 5.12.5 Maybe there is something wrong with the snap? |
Hi @borgmanJeremy, @mmahmoudian,
$ find /usr/share/icons -name flameshot.* -type f
/usr/share/icons/hicolor/48x48/apps/flameshot.png
/usr/share/icons/hicolor/128x128/apps/flameshot.png
/usr/share/icons/hicolor/scalable/apps/flameshot.svg
$ notify-send -u normal "TEST" "Test" -i flameshot
However, with snap:
find /usr/share/icons -name flameshot.* -type f
notify-send -u normal "TEST" "Test" -i flameshot Should I create a separate issue for this? Thanks. |
Seems like compelling evidence. Thank you. I'll reopen this and assign it to myself to see if I can reproduce it in a clean VM. |
So snap's CANNOT install the icons outside the confinement, thats the whole purpose of a snap. After some research I'm not sure this is fixable without reworking the notification system to not use d-bus. I'm likely to close this as "won't fix" unless someone can turn up a way to fix resolve this. |
@borgmanJeremy how about keeping it open but in backlog in case someone want to work on it? |
My understanding is it is not fixable without reworking our notifications completely. |
@borgmanJeremy What about using snap layouts? They can be used to map system folders into the snap folders. Maybe if we map |
I think we need to do the opposite. Map the icon from inside the snap to the system. |
Yeah, you are right. But I think that's exactly what layouts do as that's a very common issue. (I probably should've phrased it the other way around) |
Hi @borgmanJeremy, The only quick work-around I could think of is to replace |
What if we make it a compile time string and pass in the alternate value in the snapcraft CI only |
Hi @borgmanJeremy, |
Will do, let me know if you hit any roadblocks. Always happy to have more contributors :) |
I tested it and it seems to be working. When testing snapcraft locally, don't forget to change |
Flameshot Version
Flameshot v11.0.0 (03af9d8)
Compiled with Qt 5.12.8
Installation Type
Compiled from source
Operating System type and version
Linux
Description
After saving the screenshot, the information bar that pops up seems to have an inapropriate (missing?) icon.
Steps to reproduce
./flameshot gui
Screenshots or screen recordings
System Information
The text was updated successfully, but these errors were encountered: