fairyglade / ly

display manager with console UI
Do What The F*ck You Want To Public License
5.28k stars 307 forks source link

discord does not open clicked link #460

Open fish47 opened 1 year ago

fish47 commented 1 year ago

same with startx https://bbs.archlinux.org/viewtopic.php?id=273920

Do some popular DMs do extra steps, such as env setups?

umop3plsdn commented 1 year ago

ly has nothing to do with that. Check your mime types either look in ~/.local/share/applications/mimeapps.list for local /usr/share/applications/mimeinfo.cache for global whats your x-scheme-handler set to for http and https? oh also a mimeapps.list in .config too i think this is what my mimeapps.list looks like for example:

[Default Applications] x-scheme-handler/http=org.qutebrowser.qutebrowser.desktop x-scheme-handler/https=org.qutebrowser.qutebrowser.desktop application/pdf=org.pwmt.zathura.desktop text/html=org.qutebrowser.qutebrowser.desktop x-scheme-handler/about=org.qutebrowser.qutebrowser.desktop x-scheme-handler/unknown=org.qutebrowser.qutebrowser.desktop

If you want if you look in and do ls /usr/share/applications to get the true name of your browser that you want to use take qutebrowser for example and then add it via xdg-settings set default-web-browser org.qutebrowser.qutebrowser.desktop and check it with xdg-settings --list default-web-browser

fish47 commented 1 year ago

thanks for your reply.

= Why ly may be to blame? = I changed the DM by systemd, keeping almost anything intact, and discord worked after rebooted.

= Are my configurations correct? = I think so, because link navigation works on these situations: 1. xdg-open url 2. xfce4-terminal ctrl+mouse_click 3. sublime ctrl+mouse_click 4. vscode ctrl+mouse_click

umop3plsdn commented 1 year ago

Very strange indeed. I'm using ly had a problem with discord links. Furthermore one would think if it were ly it would be all or none. I have seen a lot of people saying they have issues with clicking links in discord with the unstable branch and fishing with stable something to do with xpcom. Have you tried starting discord from terminal so you can watch the errors when you click a link?

fish47 commented 1 year ago

I have found some clues before: 1. discord does not output log to terminal, nor does it has a relevant switch or option. 2. enable discord's dev tools, press F12, any urls in electron's inspector can not be opened. 3. replace discord's packaged electron with system's latest one, just as discord_arch_electron do, no luck. \==== discord_arch_electron => https://aur.archlinux.org/packages/discord_arch_electron enable discord dev tools => https://wiki.archlinux.org/title/Discord#Enabling_Developer_Tools

AnErrupTion commented 1 year ago

Very strange bug indeed, but I'm pretty sure it's not an Ly bug by itself, since it also happens with startx.

AnErrupTion commented 1 month ago

@fish47 Could you check if the issue is fixed with the latest code in master? I believe this was some XDG environment variables not being set (at all or properly), but since v1.0.0 they should be.