How can I get multiple instances of GNOME Calculator at same time?

My answer here has only been tested in Ubuntu 18.04 with gnome-calculator version 3.28.0 and does not apply to older versions of Ubuntu / gnome-calculator which I don't have access to the app to verify. However, in the NEWS of the source file for gnome-calculator it states:

Overview of changes in gnome-calculator 3.23.1

  • Add new window appmenu entry bgo#724478 (Robert Roth)

So, my guess would be that any version newer than the version listed above the keyboard combination below should have worked fine.

You can try Ctrl+N for New Window which should keep opening new instances. If not you can follow below:


Once in the gnome-calculator app, you should be able to click the icon in the upper left corner and choose New Window which will open another instance of the calculator:

enter image description here

enter image description here

In the GNOME Desktop, the app menu is on the bar, but it is the same way to launch multiple calculators. Click on Calculator in the top bar and choose New Window:

enter image description here

enter image description here


Open a new terminal, then execute the following command gnome-calculator


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