How to get Deluge to run as a service and show in tray?











up vote
0
down vote

favorite












New to Deluge; I'm trying to get Deluge to run either as a Windows service or a Windows Task (to make sure it stays running at all times) while also running in the Tray.



Deluge is weird ... if I double-click either it's shortcut or deluge.exe, it'll load the GUI and minimize to the tray (I set that setting), but if you add deluge.exe or deluge-gtk.exe as either a service or task, when it runs it'll just show deluge/gtk.exe running in the process list, but not in the tray.



I want it this way because I want access to the webUI while also having the GUI running in tray, while also having some sort of check to make sure it's running all the time. It's a server machine, so most of the time I'll be remoting into the webui, but at times I'll also be in front of the machine and want to use the regular GUI.



Anyone?










share|improve this question


























    up vote
    0
    down vote

    favorite












    New to Deluge; I'm trying to get Deluge to run either as a Windows service or a Windows Task (to make sure it stays running at all times) while also running in the Tray.



    Deluge is weird ... if I double-click either it's shortcut or deluge.exe, it'll load the GUI and minimize to the tray (I set that setting), but if you add deluge.exe or deluge-gtk.exe as either a service or task, when it runs it'll just show deluge/gtk.exe running in the process list, but not in the tray.



    I want it this way because I want access to the webUI while also having the GUI running in tray, while also having some sort of check to make sure it's running all the time. It's a server machine, so most of the time I'll be remoting into the webui, but at times I'll also be in front of the machine and want to use the regular GUI.



    Anyone?










    share|improve this question
























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      New to Deluge; I'm trying to get Deluge to run either as a Windows service or a Windows Task (to make sure it stays running at all times) while also running in the Tray.



      Deluge is weird ... if I double-click either it's shortcut or deluge.exe, it'll load the GUI and minimize to the tray (I set that setting), but if you add deluge.exe or deluge-gtk.exe as either a service or task, when it runs it'll just show deluge/gtk.exe running in the process list, but not in the tray.



      I want it this way because I want access to the webUI while also having the GUI running in tray, while also having some sort of check to make sure it's running all the time. It's a server machine, so most of the time I'll be remoting into the webui, but at times I'll also be in front of the machine and want to use the regular GUI.



      Anyone?










      share|improve this question













      New to Deluge; I'm trying to get Deluge to run either as a Windows service or a Windows Task (to make sure it stays running at all times) while also running in the Tray.



      Deluge is weird ... if I double-click either it's shortcut or deluge.exe, it'll load the GUI and minimize to the tray (I set that setting), but if you add deluge.exe or deluge-gtk.exe as either a service or task, when it runs it'll just show deluge/gtk.exe running in the process list, but not in the tray.



      I want it this way because I want access to the webUI while also having the GUI running in tray, while also having some sort of check to make sure it's running all the time. It's a server machine, so most of the time I'll be remoting into the webui, but at times I'll also be in front of the machine and want to use the regular GUI.



      Anyone?







      windows deluge






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 30 at 22:06









      J. Scott Elblein

      2121310




      2121310






















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          0
          down vote













          Windows services cannot have interactive access to the desktop since Windows Vista,
          so this is not the direction to go.



          If you would like the program to always run when you are logged-in
          (without login there is no taskbar icon),
          copy the link to it into the Startup menu group.



          The All Users startup folder, for start up programs for all users,
          is located at:



          C:ProgramDataMicrosoftWindowsStart MenuProgramsStartUp





          share|improve this answer





















          • Thanks, but adding it to the startup folder(s)/registry key(s) doesn't make sure that it's always running (i.e. if it were to crash). Adding as a service/task adds the ability to auto-restart it if it crashes.
            – J. Scott Elblein
            Dec 1 at 23:10










          • Without login there is no taskbar and no icon, so your requirement cannot be met.
            – harrymc
            Dec 2 at 7:58










          • I'm not sure that's true, but lets skip that part for now. ;) and focus on why double-clicking deluge.exe (or the gtk version) when already logged in loads it up with the full GUI, and starting it as a service only shows it in the process list (no GUI, even when already logged in)? You can test this by using nssm and creating a service for deluge.exe, then starting the service.
            – J. Scott Elblein
            Dec 3 at 18:29












          • I already answered that - for security reasons a service is not allowed to interact with the desktop.
            – harrymc
            Dec 3 at 21:19










          • What's this for? i.imgur.com/usGEOv3.png
            – J. Scott Elblein
            Dec 3 at 22:08


















          up vote
          0
          down vote













          On Windows I would definitely advise against trying to run the Deluge GUI as service as there are known issues with Gtk memory crashes over extended periods of time. If you want to run Deluge as service then you should use the Deluge daemon as detailed in the Deluge ThinClient guide



          There is no way to have a status icon for the deluged service and from what I have read, it is discouraged for a service to have a UI. However I feel that what you actually want is to be notified if the service fails or stops, e.g. email, popup, etc. So perhaps try this other SU answer






          share|improve this answer





















            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "3"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1379854%2fhow-to-get-deluge-to-run-as-a-service-and-show-in-tray%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            0
            down vote













            Windows services cannot have interactive access to the desktop since Windows Vista,
            so this is not the direction to go.



            If you would like the program to always run when you are logged-in
            (without login there is no taskbar icon),
            copy the link to it into the Startup menu group.



            The All Users startup folder, for start up programs for all users,
            is located at:



            C:ProgramDataMicrosoftWindowsStart MenuProgramsStartUp





            share|improve this answer





















            • Thanks, but adding it to the startup folder(s)/registry key(s) doesn't make sure that it's always running (i.e. if it were to crash). Adding as a service/task adds the ability to auto-restart it if it crashes.
              – J. Scott Elblein
              Dec 1 at 23:10










            • Without login there is no taskbar and no icon, so your requirement cannot be met.
              – harrymc
              Dec 2 at 7:58










            • I'm not sure that's true, but lets skip that part for now. ;) and focus on why double-clicking deluge.exe (or the gtk version) when already logged in loads it up with the full GUI, and starting it as a service only shows it in the process list (no GUI, even when already logged in)? You can test this by using nssm and creating a service for deluge.exe, then starting the service.
              – J. Scott Elblein
              Dec 3 at 18:29












            • I already answered that - for security reasons a service is not allowed to interact with the desktop.
              – harrymc
              Dec 3 at 21:19










            • What's this for? i.imgur.com/usGEOv3.png
              – J. Scott Elblein
              Dec 3 at 22:08















            up vote
            0
            down vote













            Windows services cannot have interactive access to the desktop since Windows Vista,
            so this is not the direction to go.



            If you would like the program to always run when you are logged-in
            (without login there is no taskbar icon),
            copy the link to it into the Startup menu group.



            The All Users startup folder, for start up programs for all users,
            is located at:



            C:ProgramDataMicrosoftWindowsStart MenuProgramsStartUp





            share|improve this answer





















            • Thanks, but adding it to the startup folder(s)/registry key(s) doesn't make sure that it's always running (i.e. if it were to crash). Adding as a service/task adds the ability to auto-restart it if it crashes.
              – J. Scott Elblein
              Dec 1 at 23:10










            • Without login there is no taskbar and no icon, so your requirement cannot be met.
              – harrymc
              Dec 2 at 7:58










            • I'm not sure that's true, but lets skip that part for now. ;) and focus on why double-clicking deluge.exe (or the gtk version) when already logged in loads it up with the full GUI, and starting it as a service only shows it in the process list (no GUI, even when already logged in)? You can test this by using nssm and creating a service for deluge.exe, then starting the service.
              – J. Scott Elblein
              Dec 3 at 18:29












            • I already answered that - for security reasons a service is not allowed to interact with the desktop.
              – harrymc
              Dec 3 at 21:19










            • What's this for? i.imgur.com/usGEOv3.png
              – J. Scott Elblein
              Dec 3 at 22:08













            up vote
            0
            down vote










            up vote
            0
            down vote









            Windows services cannot have interactive access to the desktop since Windows Vista,
            so this is not the direction to go.



            If you would like the program to always run when you are logged-in
            (without login there is no taskbar icon),
            copy the link to it into the Startup menu group.



            The All Users startup folder, for start up programs for all users,
            is located at:



            C:ProgramDataMicrosoftWindowsStart MenuProgramsStartUp





            share|improve this answer












            Windows services cannot have interactive access to the desktop since Windows Vista,
            so this is not the direction to go.



            If you would like the program to always run when you are logged-in
            (without login there is no taskbar icon),
            copy the link to it into the Startup menu group.



            The All Users startup folder, for start up programs for all users,
            is located at:



            C:ProgramDataMicrosoftWindowsStart MenuProgramsStartUp






            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Dec 1 at 21:45









            harrymc

            250k11258555




            250k11258555












            • Thanks, but adding it to the startup folder(s)/registry key(s) doesn't make sure that it's always running (i.e. if it were to crash). Adding as a service/task adds the ability to auto-restart it if it crashes.
              – J. Scott Elblein
              Dec 1 at 23:10










            • Without login there is no taskbar and no icon, so your requirement cannot be met.
              – harrymc
              Dec 2 at 7:58










            • I'm not sure that's true, but lets skip that part for now. ;) and focus on why double-clicking deluge.exe (or the gtk version) when already logged in loads it up with the full GUI, and starting it as a service only shows it in the process list (no GUI, even when already logged in)? You can test this by using nssm and creating a service for deluge.exe, then starting the service.
              – J. Scott Elblein
              Dec 3 at 18:29












            • I already answered that - for security reasons a service is not allowed to interact with the desktop.
              – harrymc
              Dec 3 at 21:19










            • What's this for? i.imgur.com/usGEOv3.png
              – J. Scott Elblein
              Dec 3 at 22:08


















            • Thanks, but adding it to the startup folder(s)/registry key(s) doesn't make sure that it's always running (i.e. if it were to crash). Adding as a service/task adds the ability to auto-restart it if it crashes.
              – J. Scott Elblein
              Dec 1 at 23:10










            • Without login there is no taskbar and no icon, so your requirement cannot be met.
              – harrymc
              Dec 2 at 7:58










            • I'm not sure that's true, but lets skip that part for now. ;) and focus on why double-clicking deluge.exe (or the gtk version) when already logged in loads it up with the full GUI, and starting it as a service only shows it in the process list (no GUI, even when already logged in)? You can test this by using nssm and creating a service for deluge.exe, then starting the service.
              – J. Scott Elblein
              Dec 3 at 18:29












            • I already answered that - for security reasons a service is not allowed to interact with the desktop.
              – harrymc
              Dec 3 at 21:19










            • What's this for? i.imgur.com/usGEOv3.png
              – J. Scott Elblein
              Dec 3 at 22:08
















            Thanks, but adding it to the startup folder(s)/registry key(s) doesn't make sure that it's always running (i.e. if it were to crash). Adding as a service/task adds the ability to auto-restart it if it crashes.
            – J. Scott Elblein
            Dec 1 at 23:10




            Thanks, but adding it to the startup folder(s)/registry key(s) doesn't make sure that it's always running (i.e. if it were to crash). Adding as a service/task adds the ability to auto-restart it if it crashes.
            – J. Scott Elblein
            Dec 1 at 23:10












            Without login there is no taskbar and no icon, so your requirement cannot be met.
            – harrymc
            Dec 2 at 7:58




            Without login there is no taskbar and no icon, so your requirement cannot be met.
            – harrymc
            Dec 2 at 7:58












            I'm not sure that's true, but lets skip that part for now. ;) and focus on why double-clicking deluge.exe (or the gtk version) when already logged in loads it up with the full GUI, and starting it as a service only shows it in the process list (no GUI, even when already logged in)? You can test this by using nssm and creating a service for deluge.exe, then starting the service.
            – J. Scott Elblein
            Dec 3 at 18:29






            I'm not sure that's true, but lets skip that part for now. ;) and focus on why double-clicking deluge.exe (or the gtk version) when already logged in loads it up with the full GUI, and starting it as a service only shows it in the process list (no GUI, even when already logged in)? You can test this by using nssm and creating a service for deluge.exe, then starting the service.
            – J. Scott Elblein
            Dec 3 at 18:29














            I already answered that - for security reasons a service is not allowed to interact with the desktop.
            – harrymc
            Dec 3 at 21:19




            I already answered that - for security reasons a service is not allowed to interact with the desktop.
            – harrymc
            Dec 3 at 21:19












            What's this for? i.imgur.com/usGEOv3.png
            – J. Scott Elblein
            Dec 3 at 22:08




            What's this for? i.imgur.com/usGEOv3.png
            – J. Scott Elblein
            Dec 3 at 22:08












            up vote
            0
            down vote













            On Windows I would definitely advise against trying to run the Deluge GUI as service as there are known issues with Gtk memory crashes over extended periods of time. If you want to run Deluge as service then you should use the Deluge daemon as detailed in the Deluge ThinClient guide



            There is no way to have a status icon for the deluged service and from what I have read, it is discouraged for a service to have a UI. However I feel that what you actually want is to be notified if the service fails or stops, e.g. email, popup, etc. So perhaps try this other SU answer






            share|improve this answer

























              up vote
              0
              down vote













              On Windows I would definitely advise against trying to run the Deluge GUI as service as there are known issues with Gtk memory crashes over extended periods of time. If you want to run Deluge as service then you should use the Deluge daemon as detailed in the Deluge ThinClient guide



              There is no way to have a status icon for the deluged service and from what I have read, it is discouraged for a service to have a UI. However I feel that what you actually want is to be notified if the service fails or stops, e.g. email, popup, etc. So perhaps try this other SU answer






              share|improve this answer























                up vote
                0
                down vote










                up vote
                0
                down vote









                On Windows I would definitely advise against trying to run the Deluge GUI as service as there are known issues with Gtk memory crashes over extended periods of time. If you want to run Deluge as service then you should use the Deluge daemon as detailed in the Deluge ThinClient guide



                There is no way to have a status icon for the deluged service and from what I have read, it is discouraged for a service to have a UI. However I feel that what you actually want is to be notified if the service fails or stops, e.g. email, popup, etc. So perhaps try this other SU answer






                share|improve this answer












                On Windows I would definitely advise against trying to run the Deluge GUI as service as there are known issues with Gtk memory crashes over extended periods of time. If you want to run Deluge as service then you should use the Deluge daemon as detailed in the Deluge ThinClient guide



                There is no way to have a status icon for the deluged service and from what I have read, it is discouraged for a service to have a UI. However I feel that what you actually want is to be notified if the service fails or stops, e.g. email, popup, etc. So perhaps try this other SU answer







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Dec 5 at 17:12









                Cas

                1,38511215




                1,38511215






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Super User!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.





                    Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                    Please pay close attention to the following guidance:


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1379854%2fhow-to-get-deluge-to-run-as-a-service-and-show-in-tray%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

                    Mangá

                     ⁒  ․,‪⁊‑⁙ ⁖, ⁇‒※‌, †,⁖‗‌⁝    ‾‸⁘,‖⁔⁣,⁂‾
”‑,‥–,‬ ,⁀‹⁋‴⁑ ‒ ,‴⁋”‼ ⁨,‷⁔„ ‰′,‐‚ ‥‡‎“‷⁃⁨⁅⁣,⁔
⁇‘⁔⁡⁏⁌⁡‿‶‏⁨ ⁣⁕⁖⁨⁩⁥‽⁀  ‴‬⁜‟ ⁃‣‧⁕‮ …‍⁨‴ ⁩,⁚⁖‫ ,‵ ⁀,‮⁝‣‣ ⁑  ⁂– ․, ‾‽ ‏⁁“⁗‸ ‾… ‹‡⁌⁎‸‘ ‡⁏⁌‪ ‵⁛ ‎⁨ ―⁦⁤⁄⁕