discord icon indicating copy to clipboard operation
discord copied to clipboard

[Bug]: Links don't open browser

Open Firestar99 opened this issue 6 months ago • 6 comments

What happened?

Clicking any link in discord no longer opens the browser at that url, since about a week or two. Including "Open in Browser" on images.

For every click on a link the following is printed to journalctl:

plasmashell[55562]: /snap/discord/203/usr/bin/xdg-open: 607: kde-open5: not found

and in the terminal:

/snap/discord/203/usr/bin/xdg-open: 607: kde-open5: not found

kde-open5 is installed and working, so I suspect either a permission change or maybe some other incompatibility introduced with xdg-open?

$ kde-open5 --version
kioclient 5.27.11
$ xdg-open --version
xdg-open 1.1.3

Already tried purging and reinstalling discord.

Operating System: Kubuntu 24.04 KDE Plasma Version: 5.27.11 KDE Frameworks Version: 5.115.0 Qt Version: 5.15.13 Kernel Version: 6.8.0-40-generic (64-bit) Graphics Platform: Wayland

What should have happened?

opening the link in a browser :D

Output of snap info discord

name:      discord
summary:   Chat for Communities and Friends
publisher: Snapcrafters✪
store-url: https://snapcraft.io/discord
contact:   https://github.com//snapcrafters/discord/issues
license:   Proprietary
description: |
  Discord is the easiest way to communicate over voice, video, and text. Chat, hang out, and stay
  close with your friends and communities.
  
  Snaps are confined, as such Discord may be unable to perform some of the tasks it typically does
  when unconfined. This may result in the system log getting spammed with apparmor errors. Granting
  access to the system-observe interface when in the snap will enable the features, and thus reduce
  the logging.
  
    snap connect discord:system-observe
  
  **Authors**
  
  This snap is maintained by the Snapcrafters community, and is not necessarily endorsed or
  officially maintained by the upstream developers.
commands:
  - discord
snap-id:      qHVefGEBezeuCeSfTND40uoUD6GRw8BO
tracking:     latest/stable
refresh-date: today at 18:49 CEST
channels:
  latest/stable:    0.0.63 2024-08-07 (203) 117MB -
  latest/candidate: 0.0.63 2024-08-07 (203) 117MB -
  latest/beta:      ↑                             
  latest/edge:      ↑                             
installed:          0.0.63            (203) 117MB -

Output of snap connections discord

Interface               Plug                            Slot                            Notes
audio-playback          discord:audio-playback          :audio-playback                 -
audio-record            discord:audio-record            :audio-record                   -
camera                  discord:camera                  :camera                         -
content[gnome-46-2404]  discord:gnome-46-2404           gnome-46-2404:gnome-46-2404     -
content[gpu-2404]       discord:gpu-2404                mesa-2404:gpu-2404              -
content[gtk-3-themes]   discord:gtk-3-themes            gtk-common-themes:gtk-3-themes  -
content[icon-themes]    discord:icon-themes             gtk-common-themes:icon-themes   -
content[sound-themes]   discord:sound-themes            gtk-common-themes:sound-themes  -
desktop                 discord:desktop                 :desktop                        -
desktop-legacy          discord:desktop-legacy          :desktop-legacy                 -
gsettings               discord:gsettings               :gsettings                      -
home                    discord:home                    :home                           -
mount-observe           discord:mount-observe           -                               -
network                 discord:network                 :network                        -
network-observe         discord:network-observe         -                               -
opengl                  discord:opengl                  :opengl                         -
process-control         discord:process-control         -                               -
removable-media         discord:removable-media         -                               -
screen-inhibit-control  discord:screen-inhibit-control  :screen-inhibit-control         -
shared-memory           discord:shmem                   :shared-memory                  -
system-observe          discord:system-observe          -                               -
unity7                  discord:unity7                  :unity7                         -
wayland                 discord:wayland                 :wayland                        -
x11                     discord:x11                     :x11                            -

Output of snap version

snap    2.63+24.04ubuntu0.1
snapd   2.63+24.04ubuntu0.1
series  16
ubuntu  24.04
kernel  6.8.0-40-generic

Relevant log output

(filtered by me)
kernel: audit: type=1400 audit(1723309114.100:2358059): apparmor="DENIED" operation="ptrace" class="ptrace" profile="snap.discord.discord" pid=55907 comm="Utils" requested_mask="read" denied_mask="read" peer="unconfined"
plasmashell[55562]: /snap/discord/203/usr/bin/xdg-open: 607: kde-open5: not found
plasmashell[57964]: /snap/discord/203/usr/bin/xdg-open: 607: kde-open5: not found
plasmashell[57966]: /snap/discord/203/usr/bin/xdg-open: 607: kde-open5: not found

Teminal output of app

Discord 0.0.63
libpxbackend-1.0.so: cannot open shared object file: No such file or directory
Failed to load module: /home/firestar99/snap/discord/common/.cache/gio-modules/libgiolibproxy.so

(Discord:55693): Gtk-WARNING **: 18:57:26.201: Theme parsing error: gtk.css:1:21: Failed to import: Error opening file /home/firestar99/snap/discord/203/.config/gtk-3.0/colors.css: No such file or directory
Gtk-Message: 18:57:26.216: Failed to load module "colorreload-gtk-module"
Gtk-Message: 18:57:26.217: Failed to load module "window-decorations-gtk-module"
[55693:0810/185726.235392:ERROR:zygote_host_impl_linux.cc(273)] Failed to adjust OOM score of renderer with pid 55791: Permission denied (13)
Starting app.
Starting updater.
2024-08-10T16:57:26.263Z [Modules] Modules initializing
2024-08-10T16:57:26.263Z [Modules] Distribution: remote
2024-08-10T16:57:26.263Z [Modules] Host updates: disabled
2024-08-10T16:57:26.263Z [Modules] Module updates: enabled
2024-08-10T16:57:26.263Z [Modules] Module install path: /home/firestar99/snap/discord/203/.config/discord/0.0.63/modules
2024-08-10T16:57:26.263Z [Modules] Module installed file path: /home/firestar99/snap/discord/203/.config/discord/0.0.63/modules/installed.json
2024-08-10T16:57:26.263Z [Modules] Module download path: /home/firestar99/snap/discord/203/.config/discord/0.0.63/modules/pending
splashScreen.initSplash(false)
CDM component API found
/usr/share/libdrm/amdgpu.ids: No such file or directory
/usr/share/libdrm/amdgpu.ids: No such file or directory
blackbox: 2024-08-10T16:57:26.336Z 0 

----------------------------------------------
CDM completed with status: cdm-ready-success
blackbox: 2024-08-10T16:57:26.448Z 1 Discord starting: {"releaseChannel":"stable","version":"0.0.63"}, modulepath: /home/firestar99/snap/discord/203/.config/discord/0.0.63/modules
blackbox: 2024-08-10T16:57:26.454Z 2 ✅ webContents.created web1 "index.html"
blackbox: 2024-08-10T16:57:26.458Z 3 ✅ window.created win1 "discord"
splashScreen: SPLASH_SCREEN_READY
splashScreen.webContentsSend: SPLASH_SCREEN_QUOTE SPLASH_SCREEN_QUOTE [ 'Hold Tight — Loading Discord' ]
2024-08-10T16:57:26.511Z [Modules] No updates to install
splashScreen: no-pending-updates
2024-08-10T16:57:26.512Z [Modules] Host is up to date.
2024-08-10T16:57:26.512Z [Modules] Checking for module updates at https://discord.com/api/modules/stable/versions.json
splashScreen: checking-for-updates
splashScreen.updateSplashState checking-for-updates checking-for-updates {}
splashScreen.webContentsSend: SPLASH_UPDATE_STATE SPLASH_UPDATE_STATE [ { status: 'checking-for-updates' } ]
blackbox: 2024-08-10T16:57:26.570Z 4 ✅ webContents.did-finish-load web1
2024-08-10T16:57:26.602Z [Modules] No module updates available.
splashScreen: update-check-finished true 0 false
splashScreen.launchMainWindow: false
Optional module ./ElectronTestRpc was not included.
splashScreen.updateSplashState launching launching {}
splashScreen.webContentsSend: SPLASH_UPDATE_STATE SPLASH_UPDATE_STATE [ { status: 'launching' } ]
blackbox: 2024-08-10T16:57:26.707Z 5 ✅ webContents.created web2 ""
[55693:0810/185726.708900:ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.login1.Manager.Inhibit: object_path= /org/freedesktop/login1: org.freedesktop.DBus.Error.AccessDenied: An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender=":1.430" (uid=1000 pid=55693 comm="/snap/discord/203/usr/share/discord/Discord --use-" label="snap.discord.discord (enforce)") interface="org.freedesktop.login1.Manager" member="Inhibit" error name="(unset)" requested_reply="0" destination="org.freedesktop.login1" (uid=0 pid=1342 comm="/usr/lib/systemd/systemd-logind" label="unconfined")
blackbox: 2024-08-10T16:57:26.716Z 6 ✅ window.created win2 "Discord"
legacyModuleUpdater: installed-module discord_krisp 1 1 true
legacyModuleUpdater: installed-module discord_game_utils 1 1 true
mainScreen.UpdaterEvents: UPDATER_HISTORY_QUERY_AND_TRUNCATE
Initializing Krisp SDK in PID 55907, addr 0x7482b0f55f00
WEIGHT /home/firestar99/snap/discord/203/.config/discord/0.0.63/modules/discord_krisp/c5.n.s.20949d.kw
WEIGHT /home/firestar99/snap/discord/203/.config/discord/0.0.63/modules/discord_krisp/c5.s.w.c9ac8f.kw
WEIGHT /home/firestar99/snap/discord/203/.config/discord/0.0.63/modules/discord_krisp/c6.f.s.ced125.kw
WEIGHT /home/firestar99/snap/discord/203/.config/discord/0.0.63/modules/discord_krisp/VAD_model.kw
mainScreen.on(did-finish-load) false false
splashScreen.pageReady
blackbox: 2024-08-10T16:57:28.611Z 7 ✅ webContents.did-finish-load web2
[55791:0810/185728.625863:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 1 times!
mainScreen.UpdaterEvents: UPDATER_HISTORY_QUERY_AND_TRUNCATE
mainScreen.UpdaterEvents: UPDATER_HISTORY_QUERY_AND_TRUNCATE
blackbox: 2024-08-10T16:57:28.712Z 8 window.close win1
blackbox: 2024-08-10T16:57:28.751Z 9 webContents.destroyed web1
blackbox: 2024-08-10T16:57:28.754Z 10 window.closed win1
DiscordProcessObserver: Skipping ''
[55693:0810/185729.365183:ERROR:object_proxy.cc(576)] Failed to call method: org.kde.KWallet.isEnabled: object_path= /modules/kwalletd5: org.freedesktop.DBus.Error.AccessDenied: An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender=":1.196" (uid=1000 pid=55693 comm="/snap/discord/203/usr/share/discord/Discord --use-" label="snap.discord.discord (enforce)") interface="org.kde.KWallet" member="isEnabled" error name="(unset)" requested_reply="0" destination="org.kde.kwalletd5" (uid=1000 pid=2845 comm="/usr/bin/kwalletd5" label="unconfined")
[55693:0810/185729.365199:ERROR:kwallet_dbus.cc(112)] Error contacting kwalletd5 (isEnabled)
[55693:0810/185729.365614:ERROR:object_proxy.cc(576)] Failed to call method: org.kde.KLauncher.start_service_by_desktop_name: object_path= /KLauncher: org.freedesktop.DBus.Error.ServiceUnknown: The name org.kde.klauncher was not provided by any .service files
[55693:0810/185729.365620:ERROR:kwallet_dbus.cc(81)] Error contacting klauncher to start kwalletd5
[55693:0810/185729.365702:ERROR:object_proxy.cc(576)] Failed to call method: org.kde.KWallet.close: object_path= /modules/kwalletd5: org.freedesktop.DBus.Error.AccessDenied: An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender=":1.196" (uid=1000 pid=55693 comm="/snap/discord/203/usr/share/discord/Discord --use-" label="snap.discord.discord (enforce)") interface="org.kde.KWallet" member="close" error name="(unset)" requested_reply="0" destination="org.kde.kwalletd5" (uid=1000 pid=2845 comm="/usr/bin/kwalletd5" label="unconfined")
[55693:0810/185729.365709:ERROR:kwallet_dbus.cc(502)] Error contacting kwalletd5 (close)
legacyModuleUpdater: installed-module discord_krisp 1 1 true
legacyModuleUpdater: installed-module discord_game_utils 1 1 true
mainScreen.UpdaterEvents: UPDATER_HISTORY_QUERY_AND_TRUNCATE
mainScreen.UpdaterEvents: UPDATER_HISTORY_QUERY_AND_TRUNCATE
mainScreen.UpdaterEvents: UPDATER_HISTORY_QUERY_AND_TRUNCATE
mainScreen.on(did-finish-load) false true
splashScreen.pageReady
splashScreen.destroySplash: splashWindow is null.
blackbox: 2024-08-10T16:57:29.975Z 11 ✅ webContents.did-finish-load web2
mainScreen.UpdaterEvents: CHECK_FOR_UPDATES UPDATE_NOT_AVAILABLE
2024-08-10T16:57:30.221Z [Modules] Host is up to date.
2024-08-10T16:57:30.222Z [Modules] Checking for module updates at https://discord.com/api/modules/stable/versions.json
2024-08-10T16:57:30.225Z [Modules] No module updates available.
legacyModuleUpdater: update-check-finished
legacyModuleUpdater: installed-module discord_rpc 1 1 true
mainScreen.UpdaterEvents: UPDATER_HISTORY_QUERY_AND_TRUNCATE
/snap/discord/203/usr/bin/xdg-open: 607: kde-open5: not found
/snap/discord/203/usr/bin/xdg-open: 607: kde-open5: not found
/snap/discord/203/usr/bin/xdg-open: 607: kde-open5: not found
/snap/discord/203/usr/bin/xdg-open: 607: kde-open5: not found

Firestar99 avatar Aug 10 '24 17:08 Firestar99