Configure Gedit to always open documents in new tab











up vote
4
down vote

favorite
2












Prior to updating to Ubuntu 17.04, opening new text documents always opened them in a new tab. But since updating, new text documents are always opening in a new window (even when a gedit window is already open). This is resulting in tons of windows being open which is terrible.



I have gsettings set at default (auto) for tab mode.



How do I make Gedit always open documents in a TAB?










share|improve this question






















  • I am not observing the same behaviour - how are you opening the documents?
    – Charles Green
    Sep 29 '17 at 17:20






  • 2




    I've identified it as a Gnome on Wayland bug.
    – G.W.
    Oct 20 '17 at 16:25















up vote
4
down vote

favorite
2












Prior to updating to Ubuntu 17.04, opening new text documents always opened them in a new tab. But since updating, new text documents are always opening in a new window (even when a gedit window is already open). This is resulting in tons of windows being open which is terrible.



I have gsettings set at default (auto) for tab mode.



How do I make Gedit always open documents in a TAB?










share|improve this question






















  • I am not observing the same behaviour - how are you opening the documents?
    – Charles Green
    Sep 29 '17 at 17:20






  • 2




    I've identified it as a Gnome on Wayland bug.
    – G.W.
    Oct 20 '17 at 16:25













up vote
4
down vote

favorite
2









up vote
4
down vote

favorite
2






2





Prior to updating to Ubuntu 17.04, opening new text documents always opened them in a new tab. But since updating, new text documents are always opening in a new window (even when a gedit window is already open). This is resulting in tons of windows being open which is terrible.



I have gsettings set at default (auto) for tab mode.



How do I make Gedit always open documents in a TAB?










share|improve this question













Prior to updating to Ubuntu 17.04, opening new text documents always opened them in a new tab. But since updating, new text documents are always opening in a new window (even when a gedit window is already open). This is resulting in tons of windows being open which is terrible.



I have gsettings set at default (auto) for tab mode.



How do I make Gedit always open documents in a TAB?







gedit tabs






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Sep 29 '17 at 17:06









G.W.

3113




3113












  • I am not observing the same behaviour - how are you opening the documents?
    – Charles Green
    Sep 29 '17 at 17:20






  • 2




    I've identified it as a Gnome on Wayland bug.
    – G.W.
    Oct 20 '17 at 16:25


















  • I am not observing the same behaviour - how are you opening the documents?
    – Charles Green
    Sep 29 '17 at 17:20






  • 2




    I've identified it as a Gnome on Wayland bug.
    – G.W.
    Oct 20 '17 at 16:25
















I am not observing the same behaviour - how are you opening the documents?
– Charles Green
Sep 29 '17 at 17:20




I am not observing the same behaviour - how are you opening the documents?
– Charles Green
Sep 29 '17 at 17:20




2




2




I've identified it as a Gnome on Wayland bug.
– G.W.
Oct 20 '17 at 16:25




I've identified it as a Gnome on Wayland bug.
– G.W.
Oct 20 '17 at 16:25










3 Answers
3






active

oldest

votes

















up vote
1
down vote













Update: I updated changed .desktop files for gedit, and now it opens in new tab by default!



.desktop files in question:



/usr/share/applications/gedit.desktop
/usr/share/applications/org.gnome.gedit.desktop



(There are two of them; and since I don't know which one is used by default, I simply did the following on both files:)




  1. Ensure that the Exec line under [Desktop Entry] looks like Exec = gedit %U

  2. if there is a line starting with DBusActivatable, ensure it is set to false.


(Answer is loosely based on this answer)






share|improve this answer




























    up vote
    1
    down vote













    This did the job in Ubuntu 18.04:



    gsettings set org.gnome.gedit.preferences.ui show-tabs-mode 'always'


    ref. configure gedit to always open in new window






    share|improve this answer








    New contributor




    Natalie is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.

























      up vote
      0
      down vote













      I have sidestepped the problem by opening text/code files using Ctrl+O :



      From the help menu of gedit: gedit Text Editor › Working With Files » File basics: Open, close, and save files »Open a file or set of files




      To open a file in gedit, click the Open button, or press Ctrl+O.



      This will cause the Open dialog to appear. Use your mouse or keyboard to select the file that you wish to open, and then click Open. The file that you've selected will open in a new tab.







      share|improve this answer























      • I think that's kind of universal....
        – WinEunuuchs2Unix
        Jul 10 at 19:54











      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%2f960589%2fconfigure-gedit-to-always-open-documents-in-new-tab%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      3 Answers
      3






      active

      oldest

      votes








      3 Answers
      3






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes








      up vote
      1
      down vote













      Update: I updated changed .desktop files for gedit, and now it opens in new tab by default!



      .desktop files in question:



      /usr/share/applications/gedit.desktop
      /usr/share/applications/org.gnome.gedit.desktop



      (There are two of them; and since I don't know which one is used by default, I simply did the following on both files:)




      1. Ensure that the Exec line under [Desktop Entry] looks like Exec = gedit %U

      2. if there is a line starting with DBusActivatable, ensure it is set to false.


      (Answer is loosely based on this answer)






      share|improve this answer

























        up vote
        1
        down vote













        Update: I updated changed .desktop files for gedit, and now it opens in new tab by default!



        .desktop files in question:



        /usr/share/applications/gedit.desktop
        /usr/share/applications/org.gnome.gedit.desktop



        (There are two of them; and since I don't know which one is used by default, I simply did the following on both files:)




        1. Ensure that the Exec line under [Desktop Entry] looks like Exec = gedit %U

        2. if there is a line starting with DBusActivatable, ensure it is set to false.


        (Answer is loosely based on this answer)






        share|improve this answer























          up vote
          1
          down vote










          up vote
          1
          down vote









          Update: I updated changed .desktop files for gedit, and now it opens in new tab by default!



          .desktop files in question:



          /usr/share/applications/gedit.desktop
          /usr/share/applications/org.gnome.gedit.desktop



          (There are two of them; and since I don't know which one is used by default, I simply did the following on both files:)




          1. Ensure that the Exec line under [Desktop Entry] looks like Exec = gedit %U

          2. if there is a line starting with DBusActivatable, ensure it is set to false.


          (Answer is loosely based on this answer)






          share|improve this answer












          Update: I updated changed .desktop files for gedit, and now it opens in new tab by default!



          .desktop files in question:



          /usr/share/applications/gedit.desktop
          /usr/share/applications/org.gnome.gedit.desktop



          (There are two of them; and since I don't know which one is used by default, I simply did the following on both files:)




          1. Ensure that the Exec line under [Desktop Entry] looks like Exec = gedit %U

          2. if there is a line starting with DBusActivatable, ensure it is set to false.


          (Answer is loosely based on this answer)







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jul 13 at 11:25









          Ocean Wong

          111




          111
























              up vote
              1
              down vote













              This did the job in Ubuntu 18.04:



              gsettings set org.gnome.gedit.preferences.ui show-tabs-mode 'always'


              ref. configure gedit to always open in new window






              share|improve this answer








              New contributor




              Natalie is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
              Check out our Code of Conduct.






















                up vote
                1
                down vote













                This did the job in Ubuntu 18.04:



                gsettings set org.gnome.gedit.preferences.ui show-tabs-mode 'always'


                ref. configure gedit to always open in new window






                share|improve this answer








                New contributor




                Natalie is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.




















                  up vote
                  1
                  down vote










                  up vote
                  1
                  down vote









                  This did the job in Ubuntu 18.04:



                  gsettings set org.gnome.gedit.preferences.ui show-tabs-mode 'always'


                  ref. configure gedit to always open in new window






                  share|improve this answer








                  New contributor




                  Natalie is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.









                  This did the job in Ubuntu 18.04:



                  gsettings set org.gnome.gedit.preferences.ui show-tabs-mode 'always'


                  ref. configure gedit to always open in new window







                  share|improve this answer








                  New contributor




                  Natalie is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.









                  share|improve this answer



                  share|improve this answer






                  New contributor




                  Natalie is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.









                  answered Dec 10 at 8:03









                  Natalie

                  111




                  111




                  New contributor




                  Natalie is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.





                  New contributor





                  Natalie is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.






                  Natalie is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.






















                      up vote
                      0
                      down vote













                      I have sidestepped the problem by opening text/code files using Ctrl+O :



                      From the help menu of gedit: gedit Text Editor › Working With Files » File basics: Open, close, and save files »Open a file or set of files




                      To open a file in gedit, click the Open button, or press Ctrl+O.



                      This will cause the Open dialog to appear. Use your mouse or keyboard to select the file that you wish to open, and then click Open. The file that you've selected will open in a new tab.







                      share|improve this answer























                      • I think that's kind of universal....
                        – WinEunuuchs2Unix
                        Jul 10 at 19:54















                      up vote
                      0
                      down vote













                      I have sidestepped the problem by opening text/code files using Ctrl+O :



                      From the help menu of gedit: gedit Text Editor › Working With Files » File basics: Open, close, and save files »Open a file or set of files




                      To open a file in gedit, click the Open button, or press Ctrl+O.



                      This will cause the Open dialog to appear. Use your mouse or keyboard to select the file that you wish to open, and then click Open. The file that you've selected will open in a new tab.







                      share|improve this answer























                      • I think that's kind of universal....
                        – WinEunuuchs2Unix
                        Jul 10 at 19:54













                      up vote
                      0
                      down vote










                      up vote
                      0
                      down vote









                      I have sidestepped the problem by opening text/code files using Ctrl+O :



                      From the help menu of gedit: gedit Text Editor › Working With Files » File basics: Open, close, and save files »Open a file or set of files




                      To open a file in gedit, click the Open button, or press Ctrl+O.



                      This will cause the Open dialog to appear. Use your mouse or keyboard to select the file that you wish to open, and then click Open. The file that you've selected will open in a new tab.







                      share|improve this answer














                      I have sidestepped the problem by opening text/code files using Ctrl+O :



                      From the help menu of gedit: gedit Text Editor › Working With Files » File basics: Open, close, and save files »Open a file or set of files




                      To open a file in gedit, click the Open button, or press Ctrl+O.



                      This will cause the Open dialog to appear. Use your mouse or keyboard to select the file that you wish to open, and then click Open. The file that you've selected will open in a new tab.








                      share|improve this answer














                      share|improve this answer



                      share|improve this answer








                      edited Jul 10 at 18:37









                      Stephen Rauch

                      1,1546716




                      1,1546716










                      answered Jul 10 at 14:48









                      Ocean Wong

                      111




                      111












                      • I think that's kind of universal....
                        – WinEunuuchs2Unix
                        Jul 10 at 19:54


















                      • I think that's kind of universal....
                        – WinEunuuchs2Unix
                        Jul 10 at 19:54
















                      I think that's kind of universal....
                      – WinEunuuchs2Unix
                      Jul 10 at 19:54




                      I think that's kind of universal....
                      – WinEunuuchs2Unix
                      Jul 10 at 19:54


















                      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.





                      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%2faskubuntu.com%2fquestions%2f960589%2fconfigure-gedit-to-always-open-documents-in-new-tab%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

                      How did Captain America manage to do this?

                      迪纳利

                      南乌拉尔铁路局