Skip to content

Commit ce8eaeb

Browse files
committed
Add .desktop template for debian package
1 parent 67b6ef6 commit ce8eaeb

File tree

4 files changed

+13
-2
lines changed

4 files changed

+13
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Some differentiating features:
2323

2424
Planned:
2525

26-
* Better system integration with Linux and possibly MacOS with mime types (needs support in tauri)
26+
* Better system integration with MacOS with mime types (needs support in tauri)
2727
* Better bandwidth groups support when API is ready (https://github.com/transmission/transmission/issues/5455)
2828

2929
Currently transmission v2.80 or later is required, goal is to have v2.40 and up compatibility.

src-tauri/app.desktop

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[Desktop Entry]
2+
Categories={{{categories}}}
3+
Exec={{{exec}}} %u
4+
Icon={{{icon}}}
5+
Name={{{name}}}
6+
Comment={{{comment}}}
7+
Terminal=false
8+
Type=Application
9+
MimeType=application/x-bittorrent;x-scheme-handler/magnet;

src-tauri/src/torrentcache.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ fn show_notification(app: &AppHandle, name: &str) {
158158
notification.auto_icon();
159159

160160
let config = app.config();
161+
#[allow(unused_variables)]
161162
let identifier = config.tauri.bundle.identifier.as_str();
162163

163164
#[cfg(windows)]

src-tauri/tauri.conf.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929
"shortDescription": "Transmission torrent daemon remote GUI",
3030
"longDescription": "Remote control GUI for Transmission torrent daemon",
3131
"deb": {
32-
"depends": []
32+
"depends": ["libasound2"],
33+
"desktopTemplate": "app.desktop"
3334
},
3435
"macOS": {
3536
"frameworks": [],

0 commit comments

Comments
 (0)