Launch program on startup in background











up vote
0
down vote

favorite












I'm running AutoKey on Ubuntu 18.04, I added it to the startup applications, but I don't want its window pops up after starting my computer, can I make it launch in the background?










share|improve this question


























    up vote
    0
    down vote

    favorite












    I'm running AutoKey on Ubuntu 18.04, I added it to the startup applications, but I don't want its window pops up after starting my computer, can I make it launch in the background?










    share|improve this question
























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I'm running AutoKey on Ubuntu 18.04, I added it to the startup applications, but I don't want its window pops up after starting my computer, can I make it launch in the background?










      share|improve this question













      I'm running AutoKey on Ubuntu 18.04, I added it to the startup applications, but I don't want its window pops up after starting my computer, can I make it launch in the background?







      18.04 startup startup-applications






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked May 20 at 11:06









      Ives

      14811




      14811






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          To run a program on startup, you simply should add the command that runs it at the end of the .bashrc file, and to make it run in the background, add & to it.
          Example :

          Let's say that the command to run autokey is autokey, all what you have to do is:



          gedit ~/.bashrc


          Then go to the end of the file and type autokey &.

          Then save and exit.

          At the next restart, it should start on startup and in background.






          share|improve this answer























          • Hi, I also have a similar query to that of "Ives". I want to auto start "google chrome browser" at the startup in the "background". I dont want it to open as a window. In the "Startup Applications" app will the following work if i want to achieve the above? usrbingoogle-chrome-stable %U &
            – newforubuntulinux
            May 21 at 11:26












          • First, find which command that opens chrome, then put it in the end of the ~/.bashrc file. For example, if chrome or google-chrome is the command to run in the terminal to open Google chrome, just type chrome & (or google-chrome &) in the end of the ~/.bashrc file and it should open in background at startup the next reboot.
            – singrium
            May 21 at 12:27













          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',
          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%2f1038349%2flaunch-program-on-startup-in-background%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          0
          down vote













          To run a program on startup, you simply should add the command that runs it at the end of the .bashrc file, and to make it run in the background, add & to it.
          Example :

          Let's say that the command to run autokey is autokey, all what you have to do is:



          gedit ~/.bashrc


          Then go to the end of the file and type autokey &.

          Then save and exit.

          At the next restart, it should start on startup and in background.






          share|improve this answer























          • Hi, I also have a similar query to that of "Ives". I want to auto start "google chrome browser" at the startup in the "background". I dont want it to open as a window. In the "Startup Applications" app will the following work if i want to achieve the above? usrbingoogle-chrome-stable %U &
            – newforubuntulinux
            May 21 at 11:26












          • First, find which command that opens chrome, then put it in the end of the ~/.bashrc file. For example, if chrome or google-chrome is the command to run in the terminal to open Google chrome, just type chrome & (or google-chrome &) in the end of the ~/.bashrc file and it should open in background at startup the next reboot.
            – singrium
            May 21 at 12:27

















          up vote
          0
          down vote













          To run a program on startup, you simply should add the command that runs it at the end of the .bashrc file, and to make it run in the background, add & to it.
          Example :

          Let's say that the command to run autokey is autokey, all what you have to do is:



          gedit ~/.bashrc


          Then go to the end of the file and type autokey &.

          Then save and exit.

          At the next restart, it should start on startup and in background.






          share|improve this answer























          • Hi, I also have a similar query to that of "Ives". I want to auto start "google chrome browser" at the startup in the "background". I dont want it to open as a window. In the "Startup Applications" app will the following work if i want to achieve the above? usrbingoogle-chrome-stable %U &
            – newforubuntulinux
            May 21 at 11:26












          • First, find which command that opens chrome, then put it in the end of the ~/.bashrc file. For example, if chrome or google-chrome is the command to run in the terminal to open Google chrome, just type chrome & (or google-chrome &) in the end of the ~/.bashrc file and it should open in background at startup the next reboot.
            – singrium
            May 21 at 12:27















          up vote
          0
          down vote










          up vote
          0
          down vote









          To run a program on startup, you simply should add the command that runs it at the end of the .bashrc file, and to make it run in the background, add & to it.
          Example :

          Let's say that the command to run autokey is autokey, all what you have to do is:



          gedit ~/.bashrc


          Then go to the end of the file and type autokey &.

          Then save and exit.

          At the next restart, it should start on startup and in background.






          share|improve this answer














          To run a program on startup, you simply should add the command that runs it at the end of the .bashrc file, and to make it run in the background, add & to it.
          Example :

          Let's say that the command to run autokey is autokey, all what you have to do is:



          gedit ~/.bashrc


          Then go to the end of the file and type autokey &.

          Then save and exit.

          At the next restart, it should start on startup and in background.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Nov 23 at 10:03

























          answered May 20 at 11:44









          singrium

          842217




          842217












          • Hi, I also have a similar query to that of "Ives". I want to auto start "google chrome browser" at the startup in the "background". I dont want it to open as a window. In the "Startup Applications" app will the following work if i want to achieve the above? usrbingoogle-chrome-stable %U &
            – newforubuntulinux
            May 21 at 11:26












          • First, find which command that opens chrome, then put it in the end of the ~/.bashrc file. For example, if chrome or google-chrome is the command to run in the terminal to open Google chrome, just type chrome & (or google-chrome &) in the end of the ~/.bashrc file and it should open in background at startup the next reboot.
            – singrium
            May 21 at 12:27




















          • Hi, I also have a similar query to that of "Ives". I want to auto start "google chrome browser" at the startup in the "background". I dont want it to open as a window. In the "Startup Applications" app will the following work if i want to achieve the above? usrbingoogle-chrome-stable %U &
            – newforubuntulinux
            May 21 at 11:26












          • First, find which command that opens chrome, then put it in the end of the ~/.bashrc file. For example, if chrome or google-chrome is the command to run in the terminal to open Google chrome, just type chrome & (or google-chrome &) in the end of the ~/.bashrc file and it should open in background at startup the next reboot.
            – singrium
            May 21 at 12:27


















          Hi, I also have a similar query to that of "Ives". I want to auto start "google chrome browser" at the startup in the "background". I dont want it to open as a window. In the "Startup Applications" app will the following work if i want to achieve the above? usrbingoogle-chrome-stable %U &
          – newforubuntulinux
          May 21 at 11:26






          Hi, I also have a similar query to that of "Ives". I want to auto start "google chrome browser" at the startup in the "background". I dont want it to open as a window. In the "Startup Applications" app will the following work if i want to achieve the above? usrbingoogle-chrome-stable %U &
          – newforubuntulinux
          May 21 at 11:26














          First, find which command that opens chrome, then put it in the end of the ~/.bashrc file. For example, if chrome or google-chrome is the command to run in the terminal to open Google chrome, just type chrome & (or google-chrome &) in the end of the ~/.bashrc file and it should open in background at startup the next reboot.
          – singrium
          May 21 at 12:27






          First, find which command that opens chrome, then put it in the end of the ~/.bashrc file. For example, if chrome or google-chrome is the command to run in the terminal to open Google chrome, just type chrome & (or google-chrome &) in the end of the ~/.bashrc file and it should open in background at startup the next reboot.
          – singrium
          May 21 at 12:27




















           

          draft saved


          draft discarded



















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1038349%2flaunch-program-on-startup-in-background%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á

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