-
Notifications
You must be signed in to change notification settings - Fork 971
opening URL from external application (Thunderbird/LibreOffice) does not work any more #9193
Comments
Same probleme here at Xubuntu 16.04 with a fresh installed brave browser (0.15.314 rev 75ffa36) |
Opening brave over the console, while a other instance of brave is running, the brave window is focused and the console is throwing |
It's still not resolved in :/ What about you others? You don't have issues? |
I have the same issue with the latest on Ubuntu 17.04 |
@crysman do you know if this used to work previously? What window manager are you using? |
Brave 0.16.13 Tested it on the following distributions and window managers: Xubuntu 16.04 - XFCE - Problem exists |
Same problem here. Brave gets the focus, but no link is opened. Ubuntu 16.04 with Gnome-shell. I'm having this problem since the last 4 or 5 updates from the Brave Xenial repository, probably since version 0.14.something or 0.15.something. |
cca 2 months ago it had been working, it's some 5 brave updates since... |
Is it possible to open a new tab in Brave via the command line? e.g. "brave http://brave.com" ? So we could test whether that works. |
@call-cc yes- you should be able to do something like: That should be the format that executables are calling Brave with. With Windows, some registry hacks were needed to make it work. I'm curious how Linux is calling it? |
@call-cc > nope, it is not working :( in case brave is already running. see below:
this is what happens when brave is not running (it works):
Name Version |
(I can confirm that
works.) I did some strace-ing and it seems that the problem is how gnome-terminal (or any other application) calls Brave:
So, the first argument to Brave is the URL and not '--'. As I understand @bsclifton, Brave expects its first argument to be '--'. This was working fine before, so I guess there was a change made to Brave. |
Yes it had been working just fine before. It is a real pain now, I am even considering letting Brave go :( Even using |
maybe due to muon/cr59 change? putting a milestone in case. |
I can confirm this on Kubuntu 14.04. Diverging from the standard |
@bsclifton I still have the branch locally. Maybe a rebase onto the new master will do. |
I am new to the Brave browser and have ran into exactly the same issue: Can’t open external Links (from Evolution, Telegram etc.) if the Brave browser is already running. - Very annoying 👎 My System:
I was doing some research and I think I found an solution especially for XFCE desktop. So I compared the application starter files provided by Brave, Vivaldi and Google Chrome inside both
My idea was to supplement these four lines to the original application starter file. cp /usr/share/applications/brave.desktop ~/.local/share/xfce4/helpers/brave.desktop Then I adapted the latter two lines to conform to the installed Brave browser.
After all these steps the Brave browser now comes up in the Favorite Applications settings. My complete Brave starter file looks like below [Desktop Entry]
Name=Brave
Comment=Brave laptop and desktop browser
GenericName=Web Browser
Exec=sh -c "brave -- %U"
Icon=brave
Type=Application
StartupNotify=true
Categories=Network;WebBrowser;
MimeType=text/html;text/xml;application/xhtml_xml;image/webp;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/ftp;
Type=X-XFCE-Helper
X-XFCE-Category=WebBrowser
X-XFCE-Commands=/usr/bin/brave
X-XFCE-CommandsWithParameter=sh -c "brave -- %s" Hopefully someone will find this helpful... |
cc @bsclifton @posix4e for this last comment |
after invoking |
The cased treated before were very limited and unlike other browsers e.g - `firefox [OPTIONS] [url]` - `chromium-browser [OPTION] [PATH|URL]` This commit assumes (like other browsers) that the last argument is an url and tries to interpret it as such. If that fails, then it simply returns `undefined`, as before. Resolves brave#9193 opening URL from external application (Thunderbird/LibreOffice) does not work any more
Re-opening after reverting #10375 with https://github.com/bsclifton/browser-laptop/commit/027589c3053e4e0581a3c5508b75c6fd600659f4 Myself, @darkdh, and @bridiver noticed issues where launching in dev mode would always open The previous fix is still in place (the desktop file). This is a confirmed fix for multiple folks. It would be great to understand the remaining fix. It might be as easy as adding this to the desktop file:
Repos that would need updating: |
Closing this issue as the largest use-cases are resolved For XFCE, I created the following issue: #10897 It sounds like we may need to create a similar issue for KDE (per comment by @aliddell) |
I'm having this problem on Elementary OS as well... I tried the latest beta and I still can't open links when the browser is already opened |
This problem still persists and tbh it's a bit hard to imagine it doesn't float to high priority bugs. A simplified example. and I click on it, then brave opens following URL: Firefox and Chrome handle these just fine. The problem occurs also when opening links from Slack where this becomes annoying very quickly. |
@smetj Have you tried this while one of our new brave-core builds set as your default browser? I suspect the issue is resolved there. We'll be upgrading users from the older Muon build in the near future. |
@jonathansampson thanks for the quick reply. Indeed ... I have now switched to the brave dev version and ... the problem is gone. |
I agree with the above - this is damaging to uptake - I can't get people to use Brave if they can't open a link from an external source :/ I'd rather use a repo than build / install a brave-core builed (not even sure what that is!). Sorry to be down - but would really like a solution that I can pass on to people to get Brave adopted. |
Hm, strange that the script doesn't work for you. |
has this got to do with my setup only accepting the argument / url as a quoted / escaped string? i.e. I get:
fails at the first '&', whereas using quotes:
it works without any problem. I can't seem to push quotes through from a script though. quotes get stripped and I end up in scenario 1, and if i use " to escape them then it pushes it straight to the browser and I get a complete faiulre to load a page. is there a way to feed a quoted string from a script? |
ps: (sorry) I did try to adapt the Chrome .desktop file, but had no joy :( Cheers :D |
Xubuntu 16.10
Brave 0.15.310 rev 6b5e4e2
os.platform linux
os.release 4.8.0-53-generic
os.arch x64
Issue:
opening URL from external application (Thunderbird/LibreOffice) does not work any more. It works only when there is no Brave instance running yet. When Brave is running already, it focuses the Brave Window, but no tab is opened :/
Steps to reproduce:
Actual result:
When Brave is running already, it focuses the Brave Window, but no tab is opened :/
Expected result:
URL gets opened in Brave as before
Will the steps above reproduce in a fresh profile? If not what other info can be added?
Do not know
Is this an issue in the currently released version?
Yes
Can this issue be consistently reproduced?
Yes, various restarts performed
The text was updated successfully, but these errors were encountered: