Telegram at Startup?












17















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



























    17















    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

























      17












      17








      17


      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

      88114




      88114






















          4 Answers
          4






          active

          oldest

          votes


















          17














          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



















          5














          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



















          1














          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

























              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









              17














              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
















              17














              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














              17












              17








              17







              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 6 hours ago









              Pablo Bianchi

              2,68511532




              2,68511532










              answered Feb 10 '16 at 19:29









              Ottó RadicsOttó Radics

              30424




              30424








              • 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













              5














              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
















              5














              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














              5












              5








              5







              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.

              19510




              19510








              • 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











              1














              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














                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












                  1








                  1







                  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

                  133




                  133























                      -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






























                        -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




























                          -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,01631423




                          1,01631423






























                              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

                              數位音樂下載

                              When can things happen in Etherscan, such as the picture below?

                              格利澤436b