mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 22:27:20 +02:00
Handle snap icon problem in snapcraft.yaml rather than in code
This commit is contained in:
parent
7dffc6e912
commit
55167ea95b
2 changed files with 5 additions and 4 deletions
|
@ -593,9 +593,7 @@ void MainWindow::setSNITrayIcon(int counter, bool muted) {
|
|||
const auto iconName = GetTrayIconName(counter, muted);
|
||||
|
||||
if (qEnvironmentVariableIsSet(kDisableTrayCounter.utf8())
|
||||
&& !iconName.isEmpty()
|
||||
&& (!InSnap()
|
||||
|| qEnvironmentVariableIsSet(kForcePanelIcon.utf8()))) {
|
||||
&& !iconName.isEmpty()) {
|
||||
if (_sniTrayIcon->iconName() == iconName) {
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -117,7 +117,10 @@ parts:
|
|||
|
||||
snapcraftctl set-version "$version"
|
||||
|
||||
sed -i 's|^Icon=.*|Icon=/usr/share/icons/hicolor/512x512/apps/telegram.png|g' lib/xdg/telegramdesktop.desktop
|
||||
sed -i 's|^Icon=.*|Icon=${SNAP}/meta/gui/icon.png|g' lib/xdg/telegramdesktop.desktop
|
||||
override-build: |
|
||||
snapcraftctl build
|
||||
rm -rf "$SNAPCRAFT_PART_INSTALL/usr/share/icons"
|
||||
stage:
|
||||
- -./usr/lib/$SNAPCRAFT_ARCH_TRIPLET/libjpeg.so.8.2.2
|
||||
after:
|
||||
|
|
Loading…
Add table
Reference in a new issue