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

Clash 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)
ubuntu-dock multiple-instances gnome-calculator
add a comment |Â
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)
ubuntu-dock multiple-instances gnome-calculator
add a comment |Â
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)
ubuntu-dock multiple-instances gnome-calculator
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)
ubuntu-dock multiple-instances gnome-calculator
edited Aug 27 at 1:39
muru
1
1
asked May 11 at 10:41
Bradzzv
426
426
add a comment |Â
add a comment |Â
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!

As a hacky workaround you may try the following.
- Copy the launcher for Calculator (probably named
org.gnome.Calculator.desktop) from/usr/share/applications/and paste to~/.local/share/applications/. - Open the copied file using a text editor.
Look for a line beginning with
Actions=. If there is one, appendnew-instance;to it. Otherwise add the following lineActions=new-instance;Append the following lines to the end of the file and save it.
[Desktop Action new-instance]
Name=New instance
Exec=gnome-calculatorRe-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.

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

Middle-click does not work but apart from that, great answer!
â Bradzzv
May 11 at 14:38
add a comment |Â
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!

As a hacky workaround you may try the following.
- Copy the launcher for Calculator (probably named
org.gnome.Calculator.desktop) from/usr/share/applications/and paste to~/.local/share/applications/. - Open the copied file using a text editor.
Look for a line beginning with
Actions=. If there is one, appendnew-instance;to it. Otherwise add the following lineActions=new-instance;Append the following lines to the end of the file and save it.
[Desktop Action new-instance]
Name=New instance
Exec=gnome-calculatorRe-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.

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

Middle-click does not work but apart from that, great answer!
â Bradzzv
May 11 at 14:38
add a comment |Â
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!

As a hacky workaround you may try the following.
- Copy the launcher for Calculator (probably named
org.gnome.Calculator.desktop) from/usr/share/applications/and paste to~/.local/share/applications/. - Open the copied file using a text editor.
Look for a line beginning with
Actions=. If there is one, appendnew-instance;to it. Otherwise add the following lineActions=new-instance;Append the following lines to the end of the file and save it.
[Desktop Action new-instance]
Name=New instance
Exec=gnome-calculatorRe-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.

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

Middle-click does not work but apart from that, great answer!
â Bradzzv
May 11 at 14:38
add a comment |Â
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!

As a hacky workaround you may try the following.
- Copy the launcher for Calculator (probably named
org.gnome.Calculator.desktop) from/usr/share/applications/and paste to~/.local/share/applications/. - Open the copied file using a text editor.
Look for a line beginning with
Actions=. If there is one, appendnew-instance;to it. Otherwise add the following lineActions=new-instance;Append the following lines to the end of the file and save it.
[Desktop Action new-instance]
Name=New instance
Exec=gnome-calculatorRe-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.

Click on the New instance option, it should launch another 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!

As a hacky workaround you may try the following.
- Copy the launcher for Calculator (probably named
org.gnome.Calculator.desktop) from/usr/share/applications/and paste to~/.local/share/applications/. - Open the copied file using a text editor.
Look for a line beginning with
Actions=. If there is one, appendnew-instance;to it. Otherwise add the following lineActions=new-instance;Append the following lines to the end of the file and save it.
[Desktop Action new-instance]
Name=New instance
Exec=gnome-calculatorRe-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.

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

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
add a comment |Â
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
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password