How do I disable Ktorrent from autostarting on login?

6,269

Solution 1

When you close ktorrent, it's still running in the system tray. If you have "restore previous session" enabled in the System "Startup and Shutdown" settings, KTorrent will be re-started in windowed mode, even if it was minimized to the tray when shut down. ktorrent still running in the system tray System Settings - Restore Previous Session To prevent KTorrent from starting, either

  1. close it by right clicking on it's tray entry and press "Quit". closing ktorrent from system tray
  2. disabling "restore previous session" in System Settings

Solution 2

Do two things:

  1. First check to see if it's enabled with the command

    sudo systemctl list-unit-files | grep -i ktorrent
    
  2. Then disable it with

    sudo systemctl disable ktorrent
    

Info:

list-unit-files [PATTERN...] List unit files installed on the system, in combination with their enablement state (as reported by is-enabled). If one or more PATTERNs are specified, only unit files whose name matches one of them are shown (patterns matching unit file system paths are not supported).

Share:
6,269

Related videos on Youtube

Electric Skeleton
Author by

Electric Skeleton

I'm ready to make the web, and life itself great again!

Updated on September 18, 2022

Comments

  • Electric Skeleton
    Electric Skeleton over 1 year

    I'm using Kbuntu and when I turn on my computer and log in, the default app KTorrent automatically starts up and opens a window on my desktop. I want KTorrent to open up when I manually select the application from the start menu. I check in the Ktorrent settings and I don't see an option, nor in the Autostart application, which is empty.

    How do I stop KTorrent from automatically starting short of uninstalling the app?

    • George Udosen
      George Udosen over 5 years
      I don't use kbuntu but run this sudo systemctl list-unit-files | grep -i ktorrent and lets see if it's there it should be. If there disable with sudo systemctl disable ktorrent, now it won't start at boot
    • DK Bose
      DK Bose over 5 years
      Open System Settings > Startup & Shutdown > Desktop Session and try Start with an empty session in the On Login section. Log out and log back in.
    • Smeterlink
      Smeterlink almost 5 years
      @GeorgeUdosen thank you very much, that works!
    • George Udosen
      George Udosen almost 5 years
      @smeterlink let me post an answer so you can accept it!
    • Smeterlink
      Smeterlink almost 5 years
      @GeorgeUdosen I just disabled session restore. For some reasons I close ktorrent before shutting down but keeps opening it again if session restore is enabled.
    • George Udosen
      George Udosen almost 5 years
      @smeterlink that I believe is the normal behaviour for session restore on kubuntu
  • Smeterlink
    Smeterlink almost 5 years
    I have ktorrent installed but does not appear when I run the command sudo systemctl list-unit-files | grep -i ktorrent, maybe it's a ktorrent bug.
  • Yuvaraj V
    Yuvaraj V over 4 years
    I can't find anything with sudo systemctl list-unit-files | grep -i ktorrent
  • George Udosen
    George Udosen over 4 years
    check for the binaries with which ktorrent assuming that's what it's called!
  • Kurtoid
    Kurtoid over 4 years
    This doesn't make sense for this scenario. KTorrent is not, and does not, install a systemd service.