preventing other apps from opening up new firefox tabs
from ngn@lemy.lol to linux@lemmy.ml on 01 Oct 2024 18:39
https://lemy.lol/post/32091712
from ngn@lemy.lol to linux@lemmy.ml on 01 Oct 2024 18:39
https://lemy.lol/post/32091712
is there a way to prevent all the other apps on the system from opening up new tabs/windows in firefox?
threaded - newest
Other apps than what?
You can start Firefox without the
–no-remote
flag. And it would allow external processes to open links.that was what i was looking for, thank you
You can set some browser-unrelated program or script as your desktop environment’s default browser, for example I wrote a Zsh script that creates a KDE dialog and asks me to copy the URL to the clipboard.
I’m not currently at my PC, but if you want it I can paste it in a comment here when I get to it - it shouldn’t be too hard to translate it to Bash, either.
Other than that?
/usr/bin/true
is a pretty nice default browser for applications to start without your consent, very minimal and lightweight.Could you please share the script?
Here it is:
If you want to translate it to Bash, keep in mind that arrays behave differently between the two shells, and syntax like
for arg ($@); do
would likely misbehave or not work at all.Also, there’s an issue where some applications do something weird, and the URL seems to be a zero-length argument. I have absolutely no idea what’s up with that.
Thanks!
I set Junction as my default browser, this software has been a game changer for me. apps.gnome.org/fr/Junction/