Telegram at Startup?





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







19















I've installed the latest Telegram App (v 0.8.32) On my Ubuntu 14.04.
I want Telegram to run minimized at startup in Tray and show me new messages but I can't because In the app settings there isn't any option for that.
Help me How Can i do it....










share|improve this question





























    19















    I've installed the latest Telegram App (v 0.8.32) On my Ubuntu 14.04.
    I want Telegram to run minimized at startup in Tray and show me new messages but I can't because In the app settings there isn't any option for that.
    Help me How Can i do it....










    share|improve this question

























      19












      19








      19


      6






      I've installed the latest Telegram App (v 0.8.32) On my Ubuntu 14.04.
      I want Telegram to run minimized at startup in Tray and show me new messages but I can't because In the app settings there isn't any option for that.
      Help me How Can i do it....










      share|improve this question














      I've installed the latest Telegram App (v 0.8.32) On my Ubuntu 14.04.
      I want Telegram to run minimized at startup in Tray and show me new messages but I can't because In the app settings there isn't any option for that.
      Help me How Can i do it....







      startup system-tray minimize telegram






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jul 5 '15 at 15:03









      SunshineDream AmelSunshineDream Amel

      98114




      98114






















          4 Answers
          4






          active

          oldest

          votes


















          21














          You should add a startup item to your startup application list, as mentioned by Mladen B.



          The command is:



          /opt/telegram/Telegram 


          Or, if you've installed Telegram via the software center or snap:



          telegram-desktop


          To start hidden:



          /opt/telegram/Telegram -startintray 


          There is a -now closed- bug in Telegram using Unity: a sequence of "Open Telegram --> Minimize to tray --> Open Telegram" will show the window.






          share|improve this answer





















          • 1





            Mentioned bug is pretty annoying!

            – Alireza Mirian
            Apr 17 '17 at 9:46



















          6














          You can add it to the list of startup applications, by going to Dash and start typing "startup". The "Startup Applications" icon should show up.



          startup



          Click on it and when it starts, click on the "Add" button to add your app to the list of applications which will start automatically each time you log in.
          Also you can start it minimized by adding -startintray commandline option:



          enter image description here






          share|improve this answer





















          • 2





            Yeah, but how do we find out the "command" name?

            – Gregory Opera
            Dec 29 '15 at 7:46











          • Try looking in: ~/.config/autostart

            – Mladen B.
            Dec 30 '15 at 8:06



















          2














          Sadly none of them are work from the prevoius solutions.



          What I did:





          1. Created a bash script file with (You have to add the proper path of your Telegram executable. Relative path didn't work!):



            #!/bin/bash
            /home/spyff/.telegram/Telegram &

            while true
            do
            xdotool windowminimize `xdotool search --onlyvisible --classname Telegram`
            if [ $? -eq 0 ]
            then
            break
            fi
            sleep 0.1
            done


          2. Saved somewhere as TelegramStarter.sh


          3. Added that script to the Ubuntu's Startup Applications


          This start Telegram and if its actually started, minimize it immediately. Tested on Ubuntu 16.04.3 with Telegram 1.1.23.






          share|improve this answer

































            -1














            You could use crontab, and enter this in the terminal:



              crontab -e telegram
            crontab restart


            and it might work fine this way.






            share|improve this answer


























            • why was this voted down?

              – Mladen B.
              Apr 11 at 9:02












            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "89"
            };
            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',
            autoActivateHeartbeat: false,
            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%2faskubuntu.com%2fquestions%2f644762%2ftelegram-at-startup%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            4 Answers
            4






            active

            oldest

            votes








            4 Answers
            4






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            21














            You should add a startup item to your startup application list, as mentioned by Mladen B.



            The command is:



            /opt/telegram/Telegram 


            Or, if you've installed Telegram via the software center or snap:



            telegram-desktop


            To start hidden:



            /opt/telegram/Telegram -startintray 


            There is a -now closed- bug in Telegram using Unity: a sequence of "Open Telegram --> Minimize to tray --> Open Telegram" will show the window.






            share|improve this answer





















            • 1





              Mentioned bug is pretty annoying!

              – Alireza Mirian
              Apr 17 '17 at 9:46
















            21














            You should add a startup item to your startup application list, as mentioned by Mladen B.



            The command is:



            /opt/telegram/Telegram 


            Or, if you've installed Telegram via the software center or snap:



            telegram-desktop


            To start hidden:



            /opt/telegram/Telegram -startintray 


            There is a -now closed- bug in Telegram using Unity: a sequence of "Open Telegram --> Minimize to tray --> Open Telegram" will show the window.






            share|improve this answer





















            • 1





              Mentioned bug is pretty annoying!

              – Alireza Mirian
              Apr 17 '17 at 9:46














            21












            21








            21







            You should add a startup item to your startup application list, as mentioned by Mladen B.



            The command is:



            /opt/telegram/Telegram 


            Or, if you've installed Telegram via the software center or snap:



            telegram-desktop


            To start hidden:



            /opt/telegram/Telegram -startintray 


            There is a -now closed- bug in Telegram using Unity: a sequence of "Open Telegram --> Minimize to tray --> Open Telegram" will show the window.






            share|improve this answer















            You should add a startup item to your startup application list, as mentioned by Mladen B.



            The command is:



            /opt/telegram/Telegram 


            Or, if you've installed Telegram via the software center or snap:



            telegram-desktop


            To start hidden:



            /opt/telegram/Telegram -startintray 


            There is a -now closed- bug in Telegram using Unity: a sequence of "Open Telegram --> Minimize to tray --> Open Telegram" will show the window.







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Feb 15 at 20:36









            Pablo Bianchi

            3,15521836




            3,15521836










            answered Feb 10 '16 at 19:29









            Ottó RadicsOttó Radics

            34424




            34424








            • 1





              Mentioned bug is pretty annoying!

              – Alireza Mirian
              Apr 17 '17 at 9:46














            • 1





              Mentioned bug is pretty annoying!

              – Alireza Mirian
              Apr 17 '17 at 9:46








            1




            1





            Mentioned bug is pretty annoying!

            – Alireza Mirian
            Apr 17 '17 at 9:46





            Mentioned bug is pretty annoying!

            – Alireza Mirian
            Apr 17 '17 at 9:46













            6














            You can add it to the list of startup applications, by going to Dash and start typing "startup". The "Startup Applications" icon should show up.



            startup



            Click on it and when it starts, click on the "Add" button to add your app to the list of applications which will start automatically each time you log in.
            Also you can start it minimized by adding -startintray commandline option:



            enter image description here






            share|improve this answer





















            • 2





              Yeah, but how do we find out the "command" name?

              – Gregory Opera
              Dec 29 '15 at 7:46











            • Try looking in: ~/.config/autostart

              – Mladen B.
              Dec 30 '15 at 8:06
















            6














            You can add it to the list of startup applications, by going to Dash and start typing "startup". The "Startup Applications" icon should show up.



            startup



            Click on it and when it starts, click on the "Add" button to add your app to the list of applications which will start automatically each time you log in.
            Also you can start it minimized by adding -startintray commandline option:



            enter image description here






            share|improve this answer





















            • 2





              Yeah, but how do we find out the "command" name?

              – Gregory Opera
              Dec 29 '15 at 7:46











            • Try looking in: ~/.config/autostart

              – Mladen B.
              Dec 30 '15 at 8:06














            6












            6








            6







            You can add it to the list of startup applications, by going to Dash and start typing "startup". The "Startup Applications" icon should show up.



            startup



            Click on it and when it starts, click on the "Add" button to add your app to the list of applications which will start automatically each time you log in.
            Also you can start it minimized by adding -startintray commandline option:



            enter image description here






            share|improve this answer















            You can add it to the list of startup applications, by going to Dash and start typing "startup". The "Startup Applications" icon should show up.



            startup



            Click on it and when it starts, click on the "Add" button to add your app to the list of applications which will start automatically each time you log in.
            Also you can start it minimized by adding -startintray commandline option:



            enter image description here







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Jul 7 '16 at 2:50









            Omid Khalili

            8818




            8818










            answered Aug 4 '15 at 18:13









            Mladen B.Mladen B.

            205110




            205110








            • 2





              Yeah, but how do we find out the "command" name?

              – Gregory Opera
              Dec 29 '15 at 7:46











            • Try looking in: ~/.config/autostart

              – Mladen B.
              Dec 30 '15 at 8:06














            • 2





              Yeah, but how do we find out the "command" name?

              – Gregory Opera
              Dec 29 '15 at 7:46











            • Try looking in: ~/.config/autostart

              – Mladen B.
              Dec 30 '15 at 8:06








            2




            2





            Yeah, but how do we find out the "command" name?

            – Gregory Opera
            Dec 29 '15 at 7:46





            Yeah, but how do we find out the "command" name?

            – Gregory Opera
            Dec 29 '15 at 7:46













            Try looking in: ~/.config/autostart

            – Mladen B.
            Dec 30 '15 at 8:06





            Try looking in: ~/.config/autostart

            – Mladen B.
            Dec 30 '15 at 8:06











            2














            Sadly none of them are work from the prevoius solutions.



            What I did:





            1. Created a bash script file with (You have to add the proper path of your Telegram executable. Relative path didn't work!):



              #!/bin/bash
              /home/spyff/.telegram/Telegram &

              while true
              do
              xdotool windowminimize `xdotool search --onlyvisible --classname Telegram`
              if [ $? -eq 0 ]
              then
              break
              fi
              sleep 0.1
              done


            2. Saved somewhere as TelegramStarter.sh


            3. Added that script to the Ubuntu's Startup Applications


            This start Telegram and if its actually started, minimize it immediately. Tested on Ubuntu 16.04.3 with Telegram 1.1.23.






            share|improve this answer






























              2














              Sadly none of them are work from the prevoius solutions.



              What I did:





              1. Created a bash script file with (You have to add the proper path of your Telegram executable. Relative path didn't work!):



                #!/bin/bash
                /home/spyff/.telegram/Telegram &

                while true
                do
                xdotool windowminimize `xdotool search --onlyvisible --classname Telegram`
                if [ $? -eq 0 ]
                then
                break
                fi
                sleep 0.1
                done


              2. Saved somewhere as TelegramStarter.sh


              3. Added that script to the Ubuntu's Startup Applications


              This start Telegram and if its actually started, minimize it immediately. Tested on Ubuntu 16.04.3 with Telegram 1.1.23.






              share|improve this answer




























                2












                2








                2







                Sadly none of them are work from the prevoius solutions.



                What I did:





                1. Created a bash script file with (You have to add the proper path of your Telegram executable. Relative path didn't work!):



                  #!/bin/bash
                  /home/spyff/.telegram/Telegram &

                  while true
                  do
                  xdotool windowminimize `xdotool search --onlyvisible --classname Telegram`
                  if [ $? -eq 0 ]
                  then
                  break
                  fi
                  sleep 0.1
                  done


                2. Saved somewhere as TelegramStarter.sh


                3. Added that script to the Ubuntu's Startup Applications


                This start Telegram and if its actually started, minimize it immediately. Tested on Ubuntu 16.04.3 with Telegram 1.1.23.






                share|improve this answer















                Sadly none of them are work from the prevoius solutions.



                What I did:





                1. Created a bash script file with (You have to add the proper path of your Telegram executable. Relative path didn't work!):



                  #!/bin/bash
                  /home/spyff/.telegram/Telegram &

                  while true
                  do
                  xdotool windowminimize `xdotool search --onlyvisible --classname Telegram`
                  if [ $? -eq 0 ]
                  then
                  break
                  fi
                  sleep 0.1
                  done


                2. Saved somewhere as TelegramStarter.sh


                3. Added that script to the Ubuntu's Startup Applications


                This start Telegram and if its actually started, minimize it immediately. Tested on Ubuntu 16.04.3 with Telegram 1.1.23.







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Sep 10 '17 at 9:17

























                answered Sep 10 '17 at 0:36









                SPYFFSPYFF

                233




                233























                    -1














                    You could use crontab, and enter this in the terminal:



                      crontab -e telegram
                    crontab restart


                    and it might work fine this way.






                    share|improve this answer


























                    • why was this voted down?

                      – Mladen B.
                      Apr 11 at 9:02
















                    -1














                    You could use crontab, and enter this in the terminal:



                      crontab -e telegram
                    crontab restart


                    and it might work fine this way.






                    share|improve this answer


























                    • why was this voted down?

                      – Mladen B.
                      Apr 11 at 9:02














                    -1












                    -1








                    -1







                    You could use crontab, and enter this in the terminal:



                      crontab -e telegram
                    crontab restart


                    and it might work fine this way.






                    share|improve this answer















                    You could use crontab, and enter this in the terminal:



                      crontab -e telegram
                    crontab restart


                    and it might work fine this way.







                    share|improve this answer














                    share|improve this answer



                    share|improve this answer








                    edited Feb 2 '17 at 12:50









                    alleyoopster

                    30237




                    30237










                    answered Aug 4 '15 at 19:41









                    MichaelMichael

                    1,06631423




                    1,06631423













                    • why was this voted down?

                      – Mladen B.
                      Apr 11 at 9:02



















                    • why was this voted down?

                      – Mladen B.
                      Apr 11 at 9:02

















                    why was this voted down?

                    – Mladen B.
                    Apr 11 at 9:02





                    why was this voted down?

                    – Mladen B.
                    Apr 11 at 9:02


















                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Ask Ubuntu!


                    • 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%2faskubuntu.com%2fquestions%2f644762%2ftelegram-at-startup%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

                    Questions related to Moebius Transform of Characteristic Function of the Primes

                    List of scandals in India

                    Can not write log (Is /dev/pts mounted?) - openpty in Ubuntu-on-Windows?