Commit 95ec8bef authored by Toni Asensi Esteve's avatar Toni Asensi Esteve
Browse files

Mark KTorrent as a single main window program

As it happens with other programs (https://github.com/nextcloud/desktop/pull/4194 ,
pim/knotes@70e81d72 ,
https://github.com/qbittorrent/qBittorrent/pull/15996 ,
https://nicolasfella.de/posts/taskbar-single-app ,
https://gitlab.freedesktop.org/xdg/xdg-specs/-/merge_requests/53):

There can only be one instance of the program running. Mark it as such in
the .desktop file. This allows desktop environments to adjust their UI
accordingly.
parent ee687e68
Pipeline #185773 passed with stage
in 1 minute and 39 seconds
......@@ -122,6 +122,7 @@ Exec=ktorrent %U
Icon=ktorrent
Type=Application
X-DocPath=ktorrent/index.html
SingleMainWindow=True
MimeType=application/x-bittorrent;application/x-torrent;x-scheme-handler/magnet;
X-DBUS-StartupType=Unique
X-DBUS-ServiceName=org.kde.ktorrent
......
  • Does the value should be a lowercase "true"? I try to package the latest unstable ktorrent based on this commit, but there is a desktop-file-validate error from the check stage:

    $ desktop-file-validate org.kde.ktorrent.desktop 
    org.kde.ktorrent.desktop: error: value "True" for boolean key "SingleMainWindow" in group "Desktop Entry" contains invalid characters, boolean values must be "false" or "true"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment