How can I stop the browser moving to active workspace?

Issues and / or general discussion relating to Puppy


Moderator: Forum moderators

Post Reply
oliverjames
Posts: 69
Joined: Tue Sep 22, 2020 4:21 pm
Has thanked: 14 times
Been thanked: 8 times

How can I stop the browser moving to active workspace?

Post by oliverjames »

Problem: If I select to open a link from one workspace the browser moves to that workspace and opens it. I'd like the link to open in the browser, but leave it on the workspace it was opened on.

Please can you tell me how to acheive that?

Last edited by Flash on Tue Jan 14, 2025 4:20 pm, edited 1 time in total.
Reason: Added question mark to a question
User avatar
Flash
Moderator
Posts: 1023
Joined: Tue Dec 03, 2019 3:13 pm
Location: Arizona, U.S.
Has thanked: 58 times
Been thanked: 138 times

Re: How can I stop the browser moving to active workspace?

Post by Flash »

What browser are you using? If it's Firefox, try right-clicking on the link and choosing "Open link in new tab."

Chaos coordinator :?
oliverjames
Posts: 69
Joined: Tue Sep 22, 2020 4:21 pm
Has thanked: 14 times
Been thanked: 8 times

Re: How can I stop the browser moving to active workspace?

Post by oliverjames »

Flash wrote: Tue Jan 14, 2025 4:23 pm

What browser are you using? If it's Firefox, try right-clicking on the link and choosing "Open link in new tab."

My explanation was not clear. The browser (firefox) does open a new tab, bit the gui moves to the active workspace. I'd like the system to switch to the browser workspace and then open the link.

User avatar
MochiMoppel
Posts: 1343
Joined: Mon Jun 15, 2020 6:25 am
Location: Japan
Has thanked: 22 times
Been thanked: 521 times

Re: How can I stop the browser moving to active workspace?

Post by MochiMoppel »

@oliverjames
I dedicated one of the virtual desktops to the browser and I hated it when an application pulls the browser to the active desktop.
I solved it by using wmctrl, which allows to switch to the browser's desktop before activating the browser.

Edit the file /usr/local/bin/defaultbrowser . Your file may contain something like

Code: Select all

#!/bin/sh
exec firefox $@

If so, change this to

Code: Select all

#!/bin/sh
wmctrl -a firefox
exec firefox $@

Of course it requires that wmctrl is installed.

Post Reply

Return to “Users Help”