mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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);
|
const auto iconName = GetTrayIconName(counter, muted);
|
||||||
|
|
||||||
if (qEnvironmentVariableIsSet(kDisableTrayCounter.utf8())
|
if (qEnvironmentVariableIsSet(kDisableTrayCounter.utf8())
|
||||||
&& !iconName.isEmpty()
|
&& !iconName.isEmpty()) {
|
||||||
&& (!InSnap()
|
|
||||||
|| qEnvironmentVariableIsSet(kForcePanelIcon.utf8()))) {
|
|
||||||
if (_sniTrayIcon->iconName() == iconName) {
|
if (_sniTrayIcon->iconName() == iconName) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -117,7 +117,10 @@ parts:
|
||||||
|
|
||||||
snapcraftctl set-version "$version"
|
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:
|
stage:
|
||||||
- -./usr/lib/$SNAPCRAFT_ARCH_TRIPLET/libjpeg.so.8.2.2
|
- -./usr/lib/$SNAPCRAFT_ARCH_TRIPLET/libjpeg.so.8.2.2
|
||||||
after:
|
after:
|
||||||
|
|
Loading…
Add table
Reference in a new issue