I figured out the problem with the browser issue, Slack tries to xdg-open but the xdg-mime query (L827 of /usr/bin/xdg-open on my system) returns
/bin/sh: warning: setlocale: LC_ALL: cannot change locale (en-US) brave-browser.desktop
Seems like some dingus at Slack decided to set the locale to "en-US" instead of "en_US" like all our locale.gen's support
The workaround is the same, just set the BROWSER manually, since xdg-open falls back to BROWSER if it can't find the correct *.desktop file to open the file (and it can't because the "warning" in the message above is part of the desktop filename returned, which obviously will fail to parse). xdg-open by default falls back to a few default web browsers if it can't find an app, L928-930 on my system:
BROWSER=www-browser:links2:elinks:links:lynx:w3m
if has_display; then
BROWSER=x-www-browser:firefox:iceweasel:seamonkey:mozilla:epiphany:konqueror:chromium:chromium-browser:google-chrome:$BROWSER
This also explains why everybody saw firefox being used instead of their default browsers, or google-chrome. Not sure why this doesn't affect slack-electron...
Pinned Comments
ogarcia commented on 2020-02-06 11:44 (UTC) (edited on 2020-02-06 11:44 (UTC) by ogarcia)
Please, don't ask for add
lsb-release
as dependency. In Arch Linux this package is not needed to run Slack Desktop.And before asking for any other dependency as
make
orpatch
or whatever, please read the wiki.