snapcrafters / discord

A community-maintained package to easily install Discord on Linux
MIT License
71 stars 20 forks source link

[Bug]: Clipboard not working in Plasma Wayland #212

Open YamiYukiSenpai opened 5 days ago

YamiYukiSenpai commented 5 days ago

What happened?

Can't paste anything from Firefox (Snap) to Discord on Plasma Wayland

What should have happened?

Clipboard should work normally

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: yesterday at 17:52 EDT
channels:
  latest/stable:    0.0.58 2024-06-26 (195) 113MB -
  latest/candidate: 0.0.58 2024-06-26 (195) 113MB -
  latest/beta:      ↑                             
  latest/edge:      ↑                             
installed:          0.0.58            (195) 113MB -

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-42-2204]  discord:gnome-42-2204           gnome-42-2204:gnome-42-2204     -
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+22.04
snapd   2.63+22.04
series  16
tuxedo  22.04
kernel  6.5.0-10040-tuxedo

Relevant log output

[145101.523902] kauditd_printk_skb: 153 callbacks suppressed
[145101.523905] audit: type=1400 audit(1719802791.716:4171259): apparmor="DENIED" operation="ptrace" class="ptrace" profile="snap.discord.discord" pid=362869 comm="Utils" requested_mask="read" denied_mask="read" peer="unconfined"
[145101.523911] audit: type=1400 audit(1719802791.716:4171260): apparmor="DENIED" operation="ptrace" class="ptrace" profile="snap.discord.discord" pid=362869 comm="Utils" requested_mask="read" denied_mask="read" peer="unconfined"
[145101.523959] audit: type=1400 audit(1719802791.716:4171261): apparmor="DENIED" operation="open" class="file" profile="snap.discord.discord" name="/proc/4796/cmdline" pid=362869 comm="Utils" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
[145101.523971] audit: type=1400 audit(1719802791.716:4171262): apparmor="DENIED" operation="ptrace" class="ptrace" profile="snap.discord.discord" pid=362869 comm="Utils" requested_mask="read" denied_mask="read" peer="unconfined"
[145101.523987] audit: type=1400 audit(1719802791.716:4171263): apparmor="DENIED" operation="ptrace" class="ptrace" profile="snap.discord.discord" pid=362869 comm="Utils" requested_mask="read" denied_mask="read" peer="unconfined"
[145101.524013] audit: type=1400 audit(1719802791.716:4171264): apparmor="DENIED" operation="ptrace" class="ptrace" profile="snap.discord.discord" pid=362869 comm="Utils" requested_mask="read" denied_mask="read" peer="unconfined"
[145101.524026] audit: type=1400 audit(1719802791.716:4171265): apparmor="DENIED" operation="ptrace" class="ptrace" profile="snap.discord.discord" pid=362869 comm="Utils" requested_mask="read" denied_mask="read" peer="unconfined"
[145101.524052] audit: type=1400 audit(1719802791.716:4171266): apparmor="DENIED" operation="ptrace" class="ptrace" profile="snap.discord.discord" pid=362869 comm="Utils" requested_mask="read" denied_mask="read" peer="unconfined"
[145101.524072] audit: type=1400 audit(1719802791.716:4171267): apparmor="DENIED" operation="ptrace" class="ptrace" profile="snap.discord.discord" pid=362869 comm="Utils" requested_mask="read" denied_mask="read" peer="unconfined"
[145101.524098] audit: type=1400 audit(1719802791.716:4171268): apparmor="DENIED" operation="ptrace" class="ptrace" profile="snap.discord.discord" pid=362869 comm="Utils" requested_mask="read" denied_mask="read" peer="unconfined"
[145106.527694] kauditd_printk_skb: 197 callbacks suppressed
[145106.527697] audit: type=1400 audit(1719802796.720:4171466): apparmor="DENIED" operation="open" class="file" profile="snap.discord.discord" name="/proc/5189/cmdline" pid=362869 comm="Utils" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
[145106.527710] audit: type=1400 audit(1719802796.720:4171467): apparmor="DENIED" operation="ptrace" class="ptrace" profile="snap.discord.discord" pid=362869 comm="Utils" requested_mask="read" denied_mask="read" peer="unconfined"
[145106.527729] audit: type=1400 audit(1719802796.720:4171468): apparmor="DENIED" operation="ptrace" class="ptrace" profile="snap.discord.discord" pid=362869 comm="Utils" requested_mask="read" denied_mask="read" peer="unconfined"
[145106.527763] audit: type=1400 audit(1719802796.720:4171469): apparmor="DENIED" operation="ptrace" class="ptrace" profile="snap.discord.discord" pid=362869 comm="Utils" requested_mask="read" denied_mask="read" peer="unconfined"
[145106.527785] audit: type=1400 audit(1719802796.720:4171470): apparmor="DENIED" operation="ptrace" class="ptrace" profile="snap.discord.discord" pid=362869 comm="Utils" requested_mask="read" denied_mask="read" peer="unconfined"
[145106.527816] audit: type=1400 audit(1719802796.720:4171471): apparmor="DENIED" operation="ptrace" class="ptrace" profile="snap.discord.discord" pid=362869 comm="Utils" requested_mask="read" denied_mask="read" peer="unconfined"
[145106.527834] audit: type=1400 audit(1719802796.720:4171472): apparmor="DENIED" operation="ptrace" class="ptrace" profile="snap.discord.discord" pid=362869 comm="Utils" requested_mask="read" denied_mask="read" peer="unconfined"
[145106.527863] audit: type=1400 audit(1719802796.720:4171473): apparmor="DENIED" operation="ptrace" class="ptrace" profile="snap.discord.discord" pid=362869 comm="Utils" requested_mask="read" denied_mask="read" peer="unconfined"
[145106.527881] audit: type=1400 audit(1719802796.720:4171474): apparmor="DENIED" operation="ptrace" class="ptrace" profile="snap.discord.discord" pid=362869 comm="Utils" requested_mask="read" denied_mask="read" peer="unconfined"
[145106.527910] audit: type=1400 audit(1719802796.720:4171475): apparmor="DENIED" operation="ptrace" class="ptrace" profile="snap.discord.discord" pid=362869 comm="Utils" requested_mask="read" denied_mask="read" peer="unconfined"

Teminal output of app

Discord 0.0.58
Gtk-Message: 23:00:21.977: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.

(Discord:444376): Gtk-WARNING **: 23:00:22.009: Theme parsing error: gtk.css:1:21: Failed to import: Error opening file /home/yamiyuki/snap/discord/195/.config/gtk-3.0/colors.css: No such file or directory
Gtk-Message: 23:00:22.030: Failed to load module "colorreload-gtk-module"
Gtk-Message: 23:00:22.030: Failed to load module "window-decorations-gtk-module"
Gtk-Message: 23:00:22.030: Failed to load module "appmenu-gtk-module"
[444376:0630/230022.054297:ERROR:zygote_host_impl_linux.cc(273)] Failed to adjust OOM score of renderer with pid 444552: Permission denied (13)
Starting app.
Starting updater.
2024-07-01T03:00:22.098Z [Modules] Modules initializing
2024-07-01T03:00:22.098Z [Modules] Distribution: remote
2024-07-01T03:00:22.098Z [Modules] Host updates: disabled
2024-07-01T03:00:22.098Z [Modules] Module updates: enabled
2024-07-01T03:00:22.098Z [Modules] Module install path: /home/yamiyuki/snap/discord/195/.config/discord/0.0.58/modules
2024-07-01T03:00:22.098Z [Modules] Module installed file path: /home/yamiyuki/snap/discord/195/.config/discord/0.0.58/modules/installed.json
2024-07-01T03:00:22.098Z [Modules] Module download path: /home/yamiyuki/snap/discord/195/.config/discord/0.0.58/modules/pending
splashScreen.initSplash(false)
CDM component API found
blackbox: 2024-07-01T03:00:22.183Z 0 

----------------------------------------------
/usr/share/libdrm/amdgpu.ids: No such file or directory
blackbox: 2024-07-01T03:00:22.366Z 1 Discord starting: {"releaseChannel":"stable","version":"0.0.58"}, modulepath: /home/yamiyuki/snap/discord/195/.config/discord/0.0.58/modules
blackbox: 2024-07-01T03:00:22.411Z 2 ✅ webContents.created web1 "Discord Updater"
splashScreen: SPLASH_SCREEN_READY
splashScreen.webContentsSend: SPLASH_SCREEN_QUOTE SPLASH_SCREEN_QUOTE [ 'Hold Tight — Loading Discord' ]
2024-07-01T03:00:22.423Z [Modules] No updates to install
splashScreen: no-pending-updates
2024-07-01T03:00:22.423Z [Modules] Host is up to date.
2024-07-01T03:00:22.423Z [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-07-01T03:00:22.445Z 3 ✅ window.created win1 "Discord Updater"
blackbox: 2024-07-01T03:00:22.513Z 4 ✅ webContents.did-finish-load web1
2024-07-01T03:00:22.534Z [Modules] No module updates available.
splashScreen: update-check-finished true 0 false
CDM completed with status (old updater): [{"id":"oimompecagnajdejgnnjijobebaeigek","status":"new","title":"Widevine Content Decryption Module","version":"4.10.2710.0"}]
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-07-01T03:00:22.655Z 5 ✅ webContents.created web2 ""
[444376:0630/230022.655701: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.5049" (uid=1000 pid=444376 comm="/snap/discord/195/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=2824 comm="/lib/systemd/systemd-logind " label="unconfined")
blackbox: 2024-07-01T03:00:22.692Z 6 ✅ window.created win2 "Discord"
[444376:0630/230023.608995:ERROR:object_proxy.cc(576)] Failed to call method: org.kde.KWallet.isEnabled: object_path= /modules/kwalletd6: org.freedesktop.DBus.Error.AccessDenied: An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender=":1.690" (uid=1000 pid=444376 comm="/snap/discord/195/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.kwalletd6" (uid=1000 pid=4828 comm="/usr/bin/kwalletd6 --pam-login 13 14 " label="unconfined")
[444376:0630/230023.609167:ERROR:kwallet_dbus.cc(112)] Error contacting kwalletd6 (isEnabled)
[444376:0630/230023.609549: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
[444376:0630/230023.609556:ERROR:kwallet_dbus.cc(81)] Error contacting klauncher to start kwalletd6
[444376:0630/230023.609647:ERROR:object_proxy.cc(576)] Failed to call method: org.kde.KWallet.close: object_path= /modules/kwalletd6: org.freedesktop.DBus.Error.AccessDenied: An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender=":1.690" (uid=1000 pid=444376 comm="/snap/discord/195/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.kwalletd6" (uid=1000 pid=4828 comm="/usr/bin/kwalletd6 --pam-login 13 14 " label="unconfined")
[444376:0630/230023.609653:ERROR:kwallet_dbus.cc(502)] Error contacting kwalletd6 (close)
legacyModuleUpdater: installed-module discord_game_utils 1 1 true
legacyModuleUpdater: installed-module discord_krisp 1 1 true
mainScreen.UpdaterEvents: UPDATER_HISTORY_QUERY_AND_TRUNCATE
WEIGHT /home/yamiyuki/snap/discord/195/.config/discord/0.0.58/modules/discord_krisp/c5.n.s.20949d.kw
WEIGHT /home/yamiyuki/snap/discord/195/.config/discord/0.0.58/modules/discord_krisp/c5.s.w.c9ac8f.kw
WEIGHT /home/yamiyuki/snap/discord/195/.config/discord/0.0.58/modules/discord_krisp/c6.f.s.ced125.kw
WEIGHT /home/yamiyuki/snap/discord/195/.config/discord/0.0.58/modules/discord_krisp/VAD_model.kw
mainScreen.on(did-finish-load) false false
splashScreen.pageReady
blackbox: 2024-07-01T03:00:24.904Z 7 ✅ webContents.did-finish-load web2
[444552:0630/230024.909226:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 1 times!
mainScreen.UpdaterEvents: UPDATER_HISTORY_QUERY_AND_TRUNCATE
blackbox: 2024-07-01T03:00:25.004Z 8 window.close win1
mainScreen.UpdaterEvents: UPDATER_HISTORY_QUERY_AND_TRUNCATE
blackbox: 2024-07-01T03:00:25.056Z 9 webContents.destroyed web1
blackbox: 2024-07-01T03:00:25.100Z 10 window.closed win1
mainScreen.UpdaterEvents: CHECK_FOR_UPDATES UPDATE_NOT_AVAILABLE
2024-07-01T03:00:25.270Z [Modules] Host is up to date.
2024-07-01T03:00:25.271Z [Modules] Checking for module updates at https://discord.com/api/modules/stable/versions.json
2024-07-01T03:00:25.273Z [Modules] No module updates available.
legacyModuleUpdater: update-check-finished
legacyModuleUpdater: installed-module discord_rpc 1 1 true
mainScreen.UpdaterEvents: UPDATER_HISTORY_QUERY_AND_TRUNCATE
DiscordProcessObserver: Skipping ''
DiscordProcessObserver: Skipping ''
DiscordProcessObserver: Skipping ''
DiscordProcessObserver: Skipping ''
DiscordProcessObserver: Skipping ''
DiscordProcessObserver: Skipping ''
[444552:0630/230029.236718:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 2 times!
YamiYukiSenpai commented 5 days ago
Operating System: TUXEDO OS 3
KDE Plasma Version: 6.1.0
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.0
Kernel Version: 6.5.0-10040-tuxedo (64-bit)
Graphics Platform: Wayland
Processors: 24 × AMD Ryzen 9 5900X 12-Core Processor
Memory: 62.7 GiB of RAM
Graphics Processor: AMD Radeon RX 6900 XT
Manufacturer: Gigabyte Technology Co., Ltd.
Product Name: X570S AORUS MASTER
System Version: -CF