This forum has been archived. All content is frozen. Please use KDE Discuss instead.

How to start KTorrent minimized to tray?

Tags: None
(comma "," separated)
User avatar
Spectrum
Registered Member
Posts
17
Karma
0
OS
Hi! I want to start KTorrent from a Bash script so KTorrent runs in the background and system tray but does not show the main window. I cannot get this to work on my current machine running KTorrent 5.1.0 under Kubuntu 17.10 (KDE framework version 5.38.0).

The weird thing is that on another machine running Kubuntu 14.04, I have this working. I just run "ktorrent" from a Bash script on startup, and KTorrent starts in minimized mode. I don't remember how I accomplished this.

On my Kubuntu 17.10 machine, I can start KTorrent and then minimize it to the tray. If I then right-click the tray icon and close KTorrent from there, then run KTorrent again, it once again displays the main window. :(

Does anyone know? Thanks!

EDIT: My other machine (with Kubuntu 14.04) runs KTorrent 4.3.1 and KDE Development Platform 4.13.3.

Last edited by Spectrum on Tue Jan 02, 2018 2:44 pm, edited 1 time in total.
lueck
Mentor
Posts
225
Karma
2
kstart5 --iconify ktorrent
User avatar
Spectrum
Registered Member
Posts
17
Karma
0
OS
lueck wrote:kstart5 --iconify ktorrent

Thanks for the suggestion. This starts KTorrent as a minimized window on the taskbar, which is slightly better, but still doesn't solve my problem. I want KTorrent minimized to the system tray.
bbo
Registered Member
Posts
60
Karma
0
OS
Hi,

Not a direct answer to your question but what about asking Plasma restoring the previous session state ? (in System Settings > Startup and Shutdown > Desktop Session > On login > Restore previous session). Starting KTorrent once and it will be always available in your system tray.
User avatar
Spectrum
Registered Member
Posts
17
Karma
0
OS
bbo wrote:Hi,

Not a direct answer to your question but what about asking Plasma restoring the previous session state ? (in System Settings > Startup and Shutdown > Desktop Session > On login > Restore previous session). Starting KTorrent once and it will be always available in your system tray.

Yeah, I guess I could do that. I don't really want to because there are a bunch of programs I don't want to autostart. But thanks for the suggestion.


Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot], rblackwell