You are not logged in.

#1 2020-12-03 10:02:58

chris-gituse
Member
Registered: 2020-03-21
Posts: 4

How to open /usr/lib/firefox %u using keyboard shortcuts?

Hi,

I am trying to automate shortcut keys: Super+1 to open /usr/lib/firefox %u, I not sure how to get it works as when I open the Firefox using the shortcuts it will always open 2 tabs, first tab will show something like  "u% page not found".

For me I always been using /usr/lib/firefox %u and it worked better before. for example when I tried to open using firefox --private. my system will always freeze and can't click anything outside of firefox, and I am rather confused where to look for possible causes of the problem.

In xfce what I have tried: din't work
bash -c "/usr/lib/firefox %u"
xterm -e "/usr/lib/firefox %U"

the only way I can get /usr/lib/firefox %u to open is create using the xfce-4panel launcher applet, the shortcuts din't work.

Any advice will be greatly appreciated!

Last edited by chris-gituse (2020-12-03 10:04:13)

Offline

#2 2020-12-03 10:13:04

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,361

Re: How to open /usr/lib/firefox %u using keyboard shortcuts?

Why are you including the %u ? That is a place holder that will be replaced by things that actually run the desktop file with a valid url or with nothing. If you are just running the command from a plain terminal without the intention of passing a link argument then just don't add the %u

Offline

#3 2020-12-03 13:18:02

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: How to open /usr/lib/firefox %u using keyboard shortcuts?

Moving to Newbie Corner.

Offline

#4 2020-12-03 13:36:54

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,515
Website

Re: How to open /usr/lib/firefox %u using keyboard shortcuts?

Ah ... /usr/lib/firefox?  That's a directory and cannot be executed.  I gather from the symptoms you've actually described, that you just botched this on the forums and you are actually running /usr/bin/firefox %u - in that case, see V1del's response.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

Board footer

Powered by FluxBB