Skip to content

Commit 47d5cb3

Browse files
YahyaZekryclaude
andcommitted
fix(build): the desktop template was never reaching the bundler
`bundle` already had a "linux" key for the deb `libasound2` depends, and this branch added a second one. JSON keeps the last of a duplicate key, so `desktopTemplate` was dropped on the floor: the AppImage shipped the stock Tauri entry with an empty `Categories=`. Merging the two blocks makes the template take effect. Verified by building the AppImage and reading the entry out of the AppDir. While in there, the template now matches flatpak/wtf.tonho.omniget.desktop -- same Categories, plus the GenericName and Keywords that make the app findable in a menu search -- and says why those three lines are hardcoded instead of coming from `bundle.category`. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
1 parent 6236a1e commit 47d5cb3

2 files changed

Lines changed: 12 additions & 10 deletions

File tree

src-tauri/desktop.template

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
[Desktop Entry]
2-
Categories=Network;FileTransfer;
2+
# Categories, GenericName and Keywords are hardcoded rather than derived from
3+
# `bundle.category`: settings.app_category() maps through a fixed AppCategory
4+
# table that cannot express a multi-value list like Network;FileTransfer;.
5+
# Keep these three lines in sync with flatpak/wtf.tonho.omniget.desktop.
6+
Categories=Network;FileTransfer;Utility;
7+
GenericName=Download Manager
8+
Keywords=omniget;download;downloader;video;media;udemy;hotmart;youtube;telegram;
39
{{#if comment}}
410
Comment={{comment}}
511
{{/if}}

src-tauri/tauri.conf.json

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,6 @@
6262
"../browser-extension/chrome/": "browser-extension/chrome/",
6363
"../browser-extension/firefox/": "browser-extension/firefox/"
6464
},
65-
"linux": {
66-
"deb": {
67-
"desktopTemplate": "./desktop.template"
68-
},
69-
"rpm": {
70-
"desktopTemplate": "./desktop.template"
71-
}
72-
},
7365
"icon": [
7466
"icons/32x32.png",
7567
"icons/128x128.png",
@@ -85,7 +77,11 @@
8577
"deb": {
8678
"depends": [
8779
"libasound2"
88-
]
80+
],
81+
"desktopTemplate": "./desktop.template"
82+
},
83+
"rpm": {
84+
"desktopTemplate": "./desktop.template"
8985
}
9086
}
9187
}

0 commit comments

Comments
 (0)