chore: Linux app id it.panov.musyx.desktop
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
f80de805c2
commit
093c41435a
6 files changed
+10
-10
No files matched your search
@@ -58,7 +58,7 @@ on Arch, `libasound2-dev` and `libdbus-1-dev` on Debian/Ubuntu). The AppImage al
|
|||||||
`APPIMAGETOOL`). A binary runs only on a glibc at least as new as the one it was built
|
`APPIMAGETOOL`). A binary runs only on a glibc at least as new as the one it was built
|
||||||
against, so build release packages on the oldest distro you want to support.
|
against, so build release packages on the oldest distro you want to support.
|
||||||
|
|
||||||
The desktop entry, metainfo and icons are installed as `dev.musyx.Musyx`, which is also the
|
The desktop entry, metainfo and icons are installed as `it.panov.musyx.desktop`, which is also the
|
||||||
window's Wayland app id. The token goes to the Secret Service (GNOME Keyring, KWallet,
|
window's Wayland app id. The token goes to the Secret Service (GNOME Keyring, KWallet,
|
||||||
KeePassXC), and media keys and the desktop's player widget work through MPRIS. The menu bar
|
KeePassXC), and media keys and the desktop's player widget work through MPRIS. The menu bar
|
||||||
mini player is macOS-only.
|
mini player is macOS-only.
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ use ui::theme;
|
|||||||
|
|
||||||
/// The Linux application id: the window's Wayland app id / X11 class and the `.desktop` name.
|
/// The Linux application id: the window's Wayland app id / X11 class and the `.desktop` name.
|
||||||
#[cfg(target_os = "linux")]
|
#[cfg(target_os = "linux")]
|
||||||
const APP_ID: &str = "dev.musyx.Musyx";
|
const APP_ID: &str = "it.panov.musyx.desktop";
|
||||||
|
|
||||||
fn main() -> iced::Result {
|
fn main() -> iced::Result {
|
||||||
let app = iced::application(App::new, App::update, App::view)
|
let app = iced::application(App::new, App::update, App::view)
|
||||||
@@ -32,7 +32,7 @@ fn main() -> iced::Result {
|
|||||||
size: Size::new(1280.0, 800.0),
|
size: Size::new(1280.0, 800.0),
|
||||||
min_size: Some(Size::new(960.0, 620.0)),
|
min_size: Some(Size::new(960.0, 620.0)),
|
||||||
icon: window::icon::from_file_data(include_bytes!("../assets/icon/musyx.png"), None).ok(),
|
icon: window::icon::from_file_data(include_bytes!("../assets/icon/musyx.png"), None).ok(),
|
||||||
// Matches the installed `dev.musyx.Musyx.desktop`, so the shell shows its name and icon.
|
// Matches the installed `it.panov.musyx.desktop.desktop`, so the shell shows its name and icon.
|
||||||
#[cfg(target_os = "linux")]
|
#[cfg(target_os = "linux")]
|
||||||
platform_specific: window::settings::PlatformSpecific {
|
platform_specific: window::settings::PlatformSpecific {
|
||||||
application_id: APP_ID.to_owned(),
|
application_id: APP_ID.to_owned(),
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ options=('!lto' '!debug')
|
|||||||
source=("$pkgname::git+file://${startdir%/packaging/arch}")
|
source=("$pkgname::git+file://${startdir%/packaging/arch}")
|
||||||
sha256sums=('SKIP')
|
sha256sums=('SKIP')
|
||||||
|
|
||||||
app_id=dev.musyx.Musyx
|
app_id=it.panov.musyx.desktop
|
||||||
|
|
||||||
pkgver() {
|
pkgver() {
|
||||||
cd "$pkgname"
|
cd "$pkgname"
|
||||||
|
|||||||
+2
-2
@@ -6,10 +6,10 @@ GenericName[ru]=Музыкальный проигрыватель
|
|||||||
Comment=Desktop player for Yandex Music
|
Comment=Desktop player for Yandex Music
|
||||||
Comment[ru]=Настольный проигрыватель для Яндекс Музыки
|
Comment[ru]=Настольный проигрыватель для Яндекс Музыки
|
||||||
Exec=musyx
|
Exec=musyx
|
||||||
Icon=dev.musyx.Musyx
|
Icon=it.panov.musyx.desktop
|
||||||
Terminal=false
|
Terminal=false
|
||||||
Categories=AudioVideo;Audio;Player;
|
Categories=AudioVideo;Audio;Player;
|
||||||
Keywords=music;yandex;player;audio;
|
Keywords=music;yandex;player;audio;
|
||||||
Keywords[ru]=музыка;яндекс;плеер;аудио;
|
Keywords[ru]=музыка;яндекс;плеер;аудио;
|
||||||
StartupWMClass=dev.musyx.Musyx
|
StartupWMClass=it.panov.musyx.desktop
|
||||||
SingleMainWindow=true
|
SingleMainWindow=true
|
||||||
+3
-3
@@ -1,12 +1,12 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<component type="desktop-application">
|
<component type="desktop-application">
|
||||||
<id>dev.musyx.Musyx</id>
|
<id>it.panov.musyx.desktop</id>
|
||||||
<name>Musyx</name>
|
<name>Musyx</name>
|
||||||
<summary>Desktop player for Yandex Music</summary>
|
<summary>Desktop player for Yandex Music</summary>
|
||||||
<summary xml:lang="ru">Настольный проигрыватель для Яндекс Музыки</summary>
|
<summary xml:lang="ru">Настольный проигрыватель для Яндекс Музыки</summary>
|
||||||
<metadata_license>MIT</metadata_license>
|
<metadata_license>MIT</metadata_license>
|
||||||
<project_license>MIT</project_license>
|
<project_license>MIT</project_license>
|
||||||
<developer id="dev.musyx">
|
<developer id="it.panov">
|
||||||
<name>Yuriy Panov</name>
|
<name>Yuriy Panov</name>
|
||||||
</developer>
|
</developer>
|
||||||
<description>
|
<description>
|
||||||
@@ -15,7 +15,7 @@
|
|||||||
lyrics and lossless streaming. Not affiliated with or endorsed by Yandex.
|
lyrics and lossless streaming. Not affiliated with or endorsed by Yandex.
|
||||||
</p>
|
</p>
|
||||||
</description>
|
</description>
|
||||||
<launchable type="desktop-id">dev.musyx.Musyx.desktop</launchable>
|
<launchable type="desktop-id">it.panov.musyx.desktop.desktop</launchable>
|
||||||
<categories>
|
<categories>
|
||||||
<category>AudioVideo</category>
|
<category>AudioVideo</category>
|
||||||
<category>Audio</category>
|
<category>Audio</category>
|
||||||
@@ -25,7 +25,7 @@ if [[ ${#formats[@]} -eq 0 && $install -eq 0 ]]; then
|
|||||||
formats=(tar deb appimage)
|
formats=(tar deb appimage)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
app_id="dev.musyx.Musyx"
|
app_id="it.panov.musyx.desktop"
|
||||||
version="$(sed -n 's/^version = "\(.*\)"/\1/p' Cargo.toml | head -1)"
|
version="$(sed -n 's/^version = "\(.*\)"/\1/p' Cargo.toml | head -1)"
|
||||||
arch="$(uname -m)"
|
arch="$(uname -m)"
|
||||||
case "$arch" in
|
case "$arch" in
|
||||||
|
|||||||
Reference in new issue
Block a user