Announcement

Collapse
No announcement yet.

Controlling start up applications

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Controlling start up applications

    How do I control applications that starts once you log in but are not part of the autostart section under system settings? I'm referring to apps that does not have any option to disable it from autostarting at boot. For example, the latest version of Anydesk under Linux does not have the option to disable from booting (unless I'm blind). The windows counterpart does have it. Sure, I can disable the service from starting automatically, but that's the service, not the system tray component that runs once you log in. It's okay if I use the app regularly but for those that I use once in a while, I'd like to spare the resources that add up due to the pesky interference of auto-starting.

    Please note I'm running plasma 6 under 24.10
    Challenges are what that keeps us from the borderline of boredom in life's journey. Linux user no. 419401 currently running Kubuntu 24.04
    _______________________________________________
    Current System: Beelink Mini PC, AMD Ryzen 7 5800H 8 Core(Up to 4.4GHz), 32GB DDR4 RAM 1TB NVME M.2 SSD, SER5 MAX Mini Desktop Computer with TCL BeyondTV5 serving as my monitor. ​

    #2
    Hi check the .config file under autostart and see if it's there if it is delete it and it should stop auto starting. .config is a hidden file so you'll have to check show hidden in the dolphin.
    Dave Kubuntu 20.04 Registered Linux User #462608

    Wireless Script: http://ubuntuforums.org/showthread.p...5#post12350385

    Comment


      #3
      Originally posted by kc1di View Post
      Hi check the .config file under autostart and see if it's there if it is delete it and it should stop auto starting. .config is a hidden file so you'll have to check show hidden in the dolphin.
      The folder "autostart" under .config is empty. There were no entries or files present even with "show hidden files" checked. Thanks anyhow for replying.
      Challenges are what that keeps us from the borderline of boredom in life's journey. Linux user no. 419401 currently running Kubuntu 24.04
      _______________________________________________
      Current System: Beelink Mini PC, AMD Ryzen 7 5800H 8 Core(Up to 4.4GHz), 32GB DDR4 RAM 1TB NVME M.2 SSD, SER5 MAX Mini Desktop Computer with TCL BeyondTV5 serving as my monitor. ​

      Comment


        #4
        Are you sure that the service isn't the part that is starting the system tray icon on login?
        Stopping a one-shot service that only is used at login won't kill whatever it started.

        Here is the service file:

        Code:
        [Unit]
        Description=AnyDesk
        Requires=network.target
        After=systemd-user-sessions.service <-------------
        
        [Service]
        Type=simple
        ExecStart=/usr/bin/anydesk --service <------------
        PIDFile=/var/run/anydesk.pid
        KillMode=mixed
        TimeoutStopSec=30
        User=root
        LimitNOFILE=100000
        
        [Install]
        WantedBy=multi-user.target​
        <-------------

        Comment


          #5
          This page maybe helpful also.
          https://www.baeldung.com/linux/startup-services-list
          Dave Kubuntu 20.04 Registered Linux User #462608

          Wireless Script: http://ubuntuforums.org/showthread.p...5#post12350385

          Comment


            #6
            Originally posted by claydoh View Post
            Are you sure that the service isn't the part that is starting the system tray icon on login?
            Stopping a one-shot service that only is used at login won't kill whatever it started.

            Here is the service file:

            Code:
            [Unit]
            Description=AnyDesk
            Requires=network.target
            After=systemd-user-sessions.service <-------------
            
            [Service]
            Type=simple
            ExecStart=/usr/bin/anydesk --service <------------
            PIDFile=/var/run/anydesk.pid
            KillMode=mixed
            TimeoutStopSec=30
            User=root
            LimitNOFILE=100000
            
            [Install]
            WantedBy=multi-user.target​
            <-------------
            I used the command
            Code:
            sudo systemctl disable anydesk.service
            ​
            to disable it.
            Strange though, I noticed there was an update to Anydesk. Once I restarted, the problem disappeared.
            Challenges are what that keeps us from the borderline of boredom in life's journey. Linux user no. 419401 currently running Kubuntu 24.04
            _______________________________________________
            Current System: Beelink Mini PC, AMD Ryzen 7 5800H 8 Core(Up to 4.4GHz), 32GB DDR4 RAM 1TB NVME M.2 SSD, SER5 MAX Mini Desktop Computer with TCL BeyondTV5 serving as my monitor. ​

            Comment


              #7
              Originally posted by kc1di View Post
              Thanks. I was aware of the information on that page and it was one of the commands from there I used, as stated in my reply to Claydoh
              Challenges are what that keeps us from the borderline of boredom in life's journey. Linux user no. 419401 currently running Kubuntu 24.04
              _______________________________________________
              Current System: Beelink Mini PC, AMD Ryzen 7 5800H 8 Core(Up to 4.4GHz), 32GB DDR4 RAM 1TB NVME M.2 SSD, SER5 MAX Mini Desktop Computer with TCL BeyondTV5 serving as my monitor. ​

              Comment


                #8
                You may also need to mask the service if you end up having issues.

                The WantedBy line makes me think it could be needed, but if you aren't having any problems, then it's probably fine as is.

                Comment

                Working...
                X