Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Albert launching searches in Chrome when Brave is my default browser. #1077

Closed
dechimp opened this issue Jan 11, 2022 · 9 comments
Closed

Albert launching searches in Chrome when Brave is my default browser. #1077

dechimp opened this issue Jan 11, 2022 · 9 comments
Labels
Bug P3 Medium Fix, but can wait if there's more import stuff to do.

Comments

@dechimp
Copy link

dechimp commented Jan 11, 2022

Description
I know there are many existing issues about browsers, but I couldnt find one exactly like this. Please forgive me if I'm mistaken.

Albert doesnt seem to be using the correct default browser. I have Brave and Chrome installed. When Brave is my default browser, the links always launch in Chrome. The only workaround I found is uninstalling Chrome.
I tried toggling back and forth my default browser, reinstalling both browsers, reinstalling albert, but nothing seemed to work.

Expected behavior
Albert should have launch the web search in my default browser (Brave)

Steps to reproduce
Have both brave-bin and google-chrome installed on arch linux. Set brave as the default browser and then try to perform a web search from albert ("foo bar ")

Screenshots
image

Additional information (please provide the following information):
I tried both aur/albert and aur/albert-bin with the same result

Output of `albert --report ` core: Albert version: 0.17.2 core: Build date: Nov 16 2021 05:55:02 core: Qt version: 5.15.2 core: QT_QPA_PLATFORMTHEME: core: Binary location: /usr/bin/albert core: PWD: /home/dechimp/.dotfiles core: SHELL: /bin/zsh core: LANG: en_US.utf8 core: XDG_SESSION_TYPE: x11 core: XDG_CURRENT_DESKTOP: KDE core: DESKTOP_SESSION: plasma core: XDG_SESSION_DESKTOP: KDE core: OS: Arch Linux core: OS (type/version): arch/unknown core: Build ABI: x86_64-little_endian-lp64 core: Arch (build/current): x86_64/x86_64 core: Kernel (type/version): linux/5.10.90-1-lts
Output of `albert` when started in a terminal (stdout/stderr) 10:44:53 [info:core] Initializing application 10:44:53 [info:default] Systems icon theme is: "WhiteSur" 10:44:53 [info:core] Initializing mandatory paths 10:44:53 [info:core] Setup signal handlers 10:44:53 [info:core] Creating running indicator file 10:44:53 [info:core] Initializing core components 10:44:53 [info:core] Loading extension org.albert.extension.applications 10:44:53 [info:apps] Start indexing applications. 10:44:53 [debg:core] org.albert.extension.applications loaded in 0 milliseconds 10:44:53 [info:core] Loading extension org.albert.extension.calculator 10:44:53 [debg:core] org.albert.extension.calculator loaded in 1 milliseconds 10:44:53 [info:core] Loading extension org.albert.extension.files ... 10:44:54 [info:apps] Indexed 375 applications.
@ManuelSchneid3r
Copy link
Member

Is brave really the default at all? Qt usually does a good job finding the default browser. I can't imagine that such a peer reviewed function fails. This is, if it is really a software issue, a Qt bug. But I dare to say it is an issue with your config.

@dechimp
Copy link
Author

dechimp commented Jan 12, 2022

Yeah, it might be a bug at the OS level. As I mentioned earlier, I tried setting and unsetting everything over and over again but am still having the issue.

One thing to note is that Chromium browsers are undergoing some large changes right now so it might also be a bug thereabouts. They pushed some major bugs into production this past week so it’s not surprising to me to see another one.

I’m wondering if Brave is just having issues overriding Chrome as the default browser.

@ManuelSchneid3r
Copy link
Member

ManuelSchneid3r commented Jan 12, 2022

what happens if you open a html file from a file browser?

@dechimp
Copy link
Author

dechimp commented Jan 12, 2022 via email

@dechimp
Copy link
Author

dechimp commented Jan 12, 2022

Let me jot down the browser versions I am using. Might come in handy as browser updates come in.

Brave: Version 1.34.80 Chromium: 97.0.4692.71 (Official Build) (64-bit)
Google Chrome: Version 97.0.4692.71 (Official Build) (64-bit)

@dechimp
Copy link
Author

dechimp commented Jan 14, 2022

Update: This wrong-browser issue also occurs when i have Chromium as my default browser and Google Chrome is installed. Searches from albert are wrongfully opening in Chrome.

@ManuelSchneid3r ManuelSchneid3r added Extension Bug P3 Medium Fix, but can wait if there's more import stuff to do. labels Oct 7, 2022
@ManuelSchneid3r ManuelSchneid3r removed their assignment Oct 7, 2022
@ManuelSchneid3r
Copy link
Member

I can't fix this on Albert side. Internally QDesktopServices openUrl is used. Looks like your Qt config is screwed.

@adabru
Copy link

adabru commented Jun 3, 2023

@dechimp you can try running xdg-open [url] for investigation.

@betoharres
Copy link

xdg-settings set default-web-browser firefox.desktop

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug P3 Medium Fix, but can wait if there's more import stuff to do.
Development

No branches or pull requests

4 participants