mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-07-23 22:13:08 +02:00
Unify packaged/non-packaged binary name
This commit is contained in:
parent
15c817dd15
commit
56ff5808a3
6 changed files with 8 additions and 11 deletions
|
@ -1864,11 +1864,7 @@ else()
|
|||
set(bundle_identifier "com.tdesktop.Telegram")
|
||||
endif()
|
||||
set(bundle_entitlements "Telegram.entitlements")
|
||||
if (LINUX AND DESKTOP_APP_USE_PACKAGED)
|
||||
set(output_name "telegram-desktop")
|
||||
else()
|
||||
set(output_name "Telegram")
|
||||
endif()
|
||||
set(output_name "Telegram")
|
||||
endif()
|
||||
|
||||
if (CMAKE_GENERATOR STREQUAL Xcode)
|
||||
|
|
|
@ -769,7 +769,7 @@ bool OpenSystemSettings(SystemSettingsType type) {
|
|||
}
|
||||
|
||||
void NewVersionLaunched(int oldVersion) {
|
||||
if (oldVersion <= 4001001 && cAutoStart()) {
|
||||
if (oldVersion <= 5014003 && cAutoStart()) {
|
||||
AutostartToggle(true);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
[Desktop Entry]
|
||||
Name=Telegram
|
||||
Comment=New era of messaging
|
||||
TryExec=telegram-desktop
|
||||
Exec=telegram-desktop -- %u
|
||||
TryExec=Telegram
|
||||
Exec=Telegram -- %u
|
||||
Icon=org.telegram.desktop
|
||||
Terminal=false
|
||||
StartupWMClass=TelegramDesktop
|
||||
|
@ -17,6 +17,6 @@ X-GNOME-UsesNotifications=true
|
|||
X-GNOME-SingleWindow=true
|
||||
|
||||
[Desktop Action quit]
|
||||
Exec=telegram-desktop -quit
|
||||
Exec=Telegram -quit
|
||||
Name=Quit Telegram
|
||||
Icon=application-exit
|
||||
|
|
|
@ -106,7 +106,7 @@
|
|||
</content_rating>
|
||||
<launchable type="desktop-id">org.telegram.desktop.desktop</launchable>
|
||||
<provides>
|
||||
<binary>telegram-desktop</binary>
|
||||
<binary>Telegram</binary>
|
||||
<dbus type="session">org.telegram.desktop</dbus>
|
||||
<mediatype>x-scheme-handler/tg</mediatype>
|
||||
<mediatype>x-scheme-handler/tonsite</mediatype>
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
[D-BUS Service]
|
||||
Name=org.telegram.desktop
|
||||
Exec=@CMAKE_INSTALL_FULL_BINDIR@/telegram-desktop
|
||||
Exec=@CMAKE_INSTALL_FULL_BINDIR@/Telegram
|
||||
|
|
|
@ -146,6 +146,7 @@ parts:
|
|||
craftctl set version="$version"
|
||||
override-build: |
|
||||
craftctl default
|
||||
mv "$CRAFT_PART_INSTALL"/usr/bin/{Telegram,telegram-desktop}
|
||||
|
||||
APP_ID=org.telegram.desktop
|
||||
sed -i "s/^Icon=$APP_ID$/Icon=snap.telegram-desktop./g" "$CRAFT_PART_INSTALL/usr/share/applications/$APP_ID.desktop"
|
||||
|
|
Loading…
Add table
Reference in a new issue