Registered Member
|
How can I configure links opened from the shell to be passed directly to the browser application?
if I run the following command in a bash prompt
this url opens in my browser bar:
Here is an image of how it loads in chromium (which is currently set as my default browser). This issue also happens when there is a call to open a link from (most) applications, for instance, clicking on an external link in the help documentation for Gwenview. I am able to open urls just fine if they are passed to an application call as an argument, such as:
I also checked ~/.local/share/applications/mimeapps.list and thought I had actually found the problem because text/html was pointed to an old, non-existent .desktop file. But fixing the entry to chromium-browser.desktop did not fix the problem Can anyone point me to any relevant configuration I am missing? |
Manager
|
what is your default browser set to? try using the full path /usr/bin/chromium
(found the suggestion in a Mandriva forum) |
Registered Member
|
In System Settings my default Web Browser component was set to /usr/bin/chromium-browser, it is now set to /usr/bin/chromium-browser $s
After reading this answer on the unix stackexchange site, I added $s to the end of the browser path on a hunch, and it seemed to fix all of the issues. Is the $s parameter specific to KDE? I dont recognize it as a standard bash reserved variable. Is this behavior for the default browser component path documented anywhere? |
Manager
|
no idea, did you try using $u instead of $s ?
you should probably ask the question in it's own thread |
Administrator
|
The correct syntax to use is actually %U. I've never seen the $s style of command invocation within KDE. Usually Chromium should be selectable from the list of available web browsers - was this not possible in this case?
XDG Command Substitutions: - %f: Open a single local file/directory. No support for remote files/directories exists. - %F: Open as many local files/directories as given. No support for remote files/directories exists. - %u: Open a single local or remote file/directory. - %U: Open as many local or remote files/directories as given.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
Strangely enough when I use %u or %U I get two identical tabs opened in my current browser to the passed in URL. This is still better than the original issue though. Chromium is selectable from the list of available browsers however it does not add any parameters to it when it is added (%u or $s). right now it seems that the $s parameter is the only thing that works (for me) the way it is supposed to. |
Administrator
|
Okay. I'm not sure how $s works then, but whatever works is fine I guess.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered users: bartoloni, Bing [Bot], Google [Bot], q.ignora, watchstar, Yahoo [Bot]