[Bug 1639952] Re: When running in unity8 desktop snap, icons aren't found
Retargetting to snapcraft, based on Ted's comment. Sounds like we need them to fix up the desktop file? Is there a way for an app author to get their icon to appear today? (by using a relative path themselves maybe?) ** No longer affects: unity-scope-snappy (Ubuntu) ** Package changed: ubuntu-app-launch (Ubuntu) => snapcraft (Ubuntu) ** Summary changed: - When running in unity8 desktop snap, icons aren't found + When running in unity8 desktop snap, snap application icons aren't found in app scope -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1639952 Title: When running in unity8 desktop snap, snap application icons aren't found in app scope To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/snapcraft/+bug/1639952/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1639952] Re: When running in unity8 desktop snap, icons aren't found
So there are a few interesting things going on here. Some things to keep in mind. The FD.o spec doesn't allow for expansion of variables in the Icon entry. We can't let snaps reference items outside of their own snap directory or it is a security issue (someone can mimic another app, which they could do, but it's worse if they do it locally) To that end UAL resolves absolute paths in the Icon field as being relative to the snap directory. In essence that means "/foo/bar.png" resolves to (effectively, not literally) "${SNAP}/foo/bar.png". It also means that we resolve "foo/bar.png" to (effectively) "${SNAP}/foo/bar.png". Which is a form that makes more sense. The problem is that snapd was broken on Unity7 so everyone encoded their Icon paths like they were running on a Ubuntu based Deb system, they put in paths that would only work there (for instance, snapd on other Linux distros uses different paths) because Unity7 didn't do this substitution. Now snapd is making illegal desktop files to compensate and work around that. The plan to solve this problem is that snapcraft will be setting the icons and the paths for applications so that they are properly relative to the snap directory. This will allow application developers to have predictable results on a variety of distros and icons to work properly on Unity8. Unfortunately we have a set of apps that are broken today. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1639952 Title: When running in unity8 desktop snap, icons aren't found To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-app-launch/+bug/1639952/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1639952] Re: When running in unity8 desktop snap, icons aren't found
There's two desktop files /var/lib/snapd/desktop/applications/telegram-latest_telegram.desktop and /snap/telegram-latest/current/meta/gui/telegram.desktop the first has the valid path ( i.e. Icon=/snap/telegram-latest/2/meta/gui/icon.png ) the second the "invalid" paath ( i.e. Icon=${SNAP}/meta/gui/icon.png ) i am thinking that ubuntu-app-launch should be reading /var/lib/snapd/desktop/applications/telegram-latest_telegram.desktop instead of /snap/telegram-latest/current/meta/gui/telegram.desktop ** Changed in: unity-scope-snappy (Ubuntu) Status: New => Invalid ** Also affects: ubuntu-app-launch (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1639952 Title: When running in unity8 desktop snap, icons aren't found To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-app-launch/+bug/1639952/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1639952] Re: When running in unity8 desktop snap, icons aren't found
So the main problem with the telegram snap is that it has Icon=${SNAP}/meta/gui/icon.png and ubuntu-app-launch is not doing any special treatment for ${SNAP} So either the snap is wrong or ubuntu-app-launch needs to add special casing for ${SNAP} -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1639952 Title: When running in unity8 desktop snap, icons aren't found To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/unity-scope-snappy/+bug/1639952/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1639952] Re: When running in unity8 desktop snap, icons aren't found
There's no icon because there's no "art" field coming in from the scope (at least in the telegram-latest snap case), you can check by doing scopes-client clickscope "" and looking at the results ( http://paste.ubuntu.com/23447173/ ), for example both system-settings and terminal have art but not telegram. Will investigate more tomorrow why the art is missing. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1639952 Title: When running in unity8 desktop snap, icons aren't found To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/unity-scope-snappy/+bug/1639952/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1639952] Re: When running in unity8 desktop snap, icons aren't found
I suspect it's probably not an issue with $SNAP being resolved. The "URL" for the icon of installed apps comes from ubuntu-app-launch. There's also the case where things in the store have icons, but they don't necessarily have an icon defined in the .desktop files, or it's pointing to the wrong thing. This issue is not in unity-scope-snappy though, but I am not yet sure where to move the bug. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1639952 Title: When running in unity8 desktop snap, icons aren't found To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/unity-scope-snappy/+bug/1639952/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs