albert icon indicating copy to clipboard operation
albert copied to clipboard

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

Open dechimp opened this issue 3 years ago • 6 comments

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.

dechimp avatar Jan 11 '22 17:01 dechimp

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.

ManuelSchneid3r avatar Jan 12 '22 08:01 ManuelSchneid3r

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.

dechimp avatar Jan 12 '22 14:01 dechimp

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

ManuelSchneid3r avatar Jan 12 '22 20:01 ManuelSchneid3r

From Dolphin, the HTML file opens in the correct default browser (Brave).

Launches from albert still open in the wrong browser (Chrome).

On Wed, Jan 12, 2022 at 1:11 PM Manuel Schneider @.***> wrote:

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

— Reply to this email directly, view it on GitHub https://github.com/albertlauncher/albert/issues/1077#issuecomment-1011411731, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFWJVZG2PT5WNYCZTHOIF3UVXOATANCNFSM5LW6FZFA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

dechimp avatar Jan 12 '22 21:01 dechimp

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 avatar Jan 12 '22 21:01 dechimp

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.

dechimp avatar Jan 14 '22 20:01 dechimp

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

ManuelSchneid3r avatar Oct 07 '22 23:10 ManuelSchneid3r

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

adabru avatar Jun 03 '23 21:06 adabru