How to restore the pre-17.10 behaviour of gnome-calculator: opening multiple instances by middle-clicking in the Ubuntu dock?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
2
down vote

favorite












In ubuntu 17.04 and earlier, a middle-click on the calculator icon in the launcher would start another instance of it, like it still does for most other programs. This does no longer work in 17.10/18.04 - how can I restore the old behavior?



(I know that I can open a terminal and type gnome-calculator but that is too cumbersome)







share|improve this question


























    up vote
    2
    down vote

    favorite












    In ubuntu 17.04 and earlier, a middle-click on the calculator icon in the launcher would start another instance of it, like it still does for most other programs. This does no longer work in 17.10/18.04 - how can I restore the old behavior?



    (I know that I can open a terminal and type gnome-calculator but that is too cumbersome)







    share|improve this question
























      up vote
      2
      down vote

      favorite









      up vote
      2
      down vote

      favorite











      In ubuntu 17.04 and earlier, a middle-click on the calculator icon in the launcher would start another instance of it, like it still does for most other programs. This does no longer work in 17.10/18.04 - how can I restore the old behavior?



      (I know that I can open a terminal and type gnome-calculator but that is too cumbersome)







      share|improve this question














      In ubuntu 17.04 and earlier, a middle-click on the calculator icon in the launcher would start another instance of it, like it still does for most other programs. This does no longer work in 17.10/18.04 - how can I restore the old behavior?



      (I know that I can open a terminal and type gnome-calculator but that is too cumbersome)









      share|improve this question













      share|improve this question




      share|improve this question








      edited Aug 27 at 1:39









      muru

      1




      1










      asked May 11 at 10:41









      Bradzzv

      426




      426




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          2
          down vote



          accepted










          It seems it's an intentional implementation by the developers. Almost all other applications provide an option to open a new window in the context menu (right-click menu) in Ubuntu dock while an instance is running and you can assign this option to mouse-middle-click, but Calculator application in particular doesn't provide the option at all!



          enter image description here



          As a hacky workaround you may try the following.



          1. Copy the launcher for Calculator (probably named org.gnome.Calculator.desktop) from /usr/share/applications/ and paste to ~/.local/share/applications/.

          2. Open the copied file using a text editor.


          3. Look for a line beginning with Actions=. If there is one, append new-instance; to it. Otherwise add the following line



            Actions=new-instance;



          4. Append the following lines to the end of the file and save it.



            [Desktop Action new-instance]
            Name=New instance
            Exec=gnome-calculator


          5. Re-login just to be sure.


          Now when you have Calculator running, if you right click on its icon in the dock, you should see a "New instance" option.



          enter image description here



          Click on the New instance option, it should launch another Calculator.



          enter image description here






          share|improve this answer




















          • Middle-click does not work but apart from that, great answer!
            – Bradzzv
            May 11 at 14:38










          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: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          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%2f1034868%2fhow-to-restore-the-pre-17-10-behaviour-of-gnome-calculator-opening-multiple-ins%23new-answer', 'question_page');

          );

          Post as a guest






























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          2
          down vote



          accepted










          It seems it's an intentional implementation by the developers. Almost all other applications provide an option to open a new window in the context menu (right-click menu) in Ubuntu dock while an instance is running and you can assign this option to mouse-middle-click, but Calculator application in particular doesn't provide the option at all!



          enter image description here



          As a hacky workaround you may try the following.



          1. Copy the launcher for Calculator (probably named org.gnome.Calculator.desktop) from /usr/share/applications/ and paste to ~/.local/share/applications/.

          2. Open the copied file using a text editor.


          3. Look for a line beginning with Actions=. If there is one, append new-instance; to it. Otherwise add the following line



            Actions=new-instance;



          4. Append the following lines to the end of the file and save it.



            [Desktop Action new-instance]
            Name=New instance
            Exec=gnome-calculator


          5. Re-login just to be sure.


          Now when you have Calculator running, if you right click on its icon in the dock, you should see a "New instance" option.



          enter image description here



          Click on the New instance option, it should launch another Calculator.



          enter image description here






          share|improve this answer




















          • Middle-click does not work but apart from that, great answer!
            – Bradzzv
            May 11 at 14:38














          up vote
          2
          down vote



          accepted










          It seems it's an intentional implementation by the developers. Almost all other applications provide an option to open a new window in the context menu (right-click menu) in Ubuntu dock while an instance is running and you can assign this option to mouse-middle-click, but Calculator application in particular doesn't provide the option at all!



          enter image description here



          As a hacky workaround you may try the following.



          1. Copy the launcher for Calculator (probably named org.gnome.Calculator.desktop) from /usr/share/applications/ and paste to ~/.local/share/applications/.

          2. Open the copied file using a text editor.


          3. Look for a line beginning with Actions=. If there is one, append new-instance; to it. Otherwise add the following line



            Actions=new-instance;



          4. Append the following lines to the end of the file and save it.



            [Desktop Action new-instance]
            Name=New instance
            Exec=gnome-calculator


          5. Re-login just to be sure.


          Now when you have Calculator running, if you right click on its icon in the dock, you should see a "New instance" option.



          enter image description here



          Click on the New instance option, it should launch another Calculator.



          enter image description here






          share|improve this answer




















          • Middle-click does not work but apart from that, great answer!
            – Bradzzv
            May 11 at 14:38












          up vote
          2
          down vote



          accepted







          up vote
          2
          down vote



          accepted






          It seems it's an intentional implementation by the developers. Almost all other applications provide an option to open a new window in the context menu (right-click menu) in Ubuntu dock while an instance is running and you can assign this option to mouse-middle-click, but Calculator application in particular doesn't provide the option at all!



          enter image description here



          As a hacky workaround you may try the following.



          1. Copy the launcher for Calculator (probably named org.gnome.Calculator.desktop) from /usr/share/applications/ and paste to ~/.local/share/applications/.

          2. Open the copied file using a text editor.


          3. Look for a line beginning with Actions=. If there is one, append new-instance; to it. Otherwise add the following line



            Actions=new-instance;



          4. Append the following lines to the end of the file and save it.



            [Desktop Action new-instance]
            Name=New instance
            Exec=gnome-calculator


          5. Re-login just to be sure.


          Now when you have Calculator running, if you right click on its icon in the dock, you should see a "New instance" option.



          enter image description here



          Click on the New instance option, it should launch another Calculator.



          enter image description here






          share|improve this answer












          It seems it's an intentional implementation by the developers. Almost all other applications provide an option to open a new window in the context menu (right-click menu) in Ubuntu dock while an instance is running and you can assign this option to mouse-middle-click, but Calculator application in particular doesn't provide the option at all!



          enter image description here



          As a hacky workaround you may try the following.



          1. Copy the launcher for Calculator (probably named org.gnome.Calculator.desktop) from /usr/share/applications/ and paste to ~/.local/share/applications/.

          2. Open the copied file using a text editor.


          3. Look for a line beginning with Actions=. If there is one, append new-instance; to it. Otherwise add the following line



            Actions=new-instance;



          4. Append the following lines to the end of the file and save it.



            [Desktop Action new-instance]
            Name=New instance
            Exec=gnome-calculator


          5. Re-login just to be sure.


          Now when you have Calculator running, if you right click on its icon in the dock, you should see a "New instance" option.



          enter image description here



          Click on the New instance option, it should launch another Calculator.



          enter image description here







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered May 11 at 13:34









          pomsky

          21.9k76694




          21.9k76694











          • Middle-click does not work but apart from that, great answer!
            – Bradzzv
            May 11 at 14:38
















          • Middle-click does not work but apart from that, great answer!
            – Bradzzv
            May 11 at 14:38















          Middle-click does not work but apart from that, great answer!
          – Bradzzv
          May 11 at 14:38




          Middle-click does not work but apart from that, great answer!
          – Bradzzv
          May 11 at 14:38












           

          draft saved


          draft discarded


























           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1034868%2fhow-to-restore-the-pre-17-10-behaviour-of-gnome-calculator-opening-multiple-ins%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          How do so many people here on Academia.SE, and in general, afford lavish higher education programs?

          Trouble downloading packages list due to a “Hash sum mismatch” error

          How do I move numbers in filenames, in a batch renaming operation?