https://bugs.kde.org/show_bug.cgi?id=505979

            Bug ID: 505979
           Summary: Snap Permissions (e.g., Audio Recording) not saving
                    via KDE System Settings for certain applications
                    (e.g., Thunderbird, WhatsApp Desktop)
    Classification: Plasma
           Product: plasmashell
      Version First master
       Reported In:
          Platform: Ubuntu
                OS: Linux
            Status: REPORTED
          Severity: minor
          Priority: NOR
         Component: "Manage Desktop and Panels" window
          Assignee: plasma-b...@kde.org
          Reporter: ralfprzybi...@gmail.com
  Target Milestone: 1.0

**Steps to Reproduce:**

1.  Open KDE System Settings.
2.  Navigate to "Applications" -> "Manage Snap Applications".
3.  Select "WhatsApp Desktop" (or "Thunderbird") from the list.
4.  Navigate to its "Permissions" section.
5.  Check the box next to "audio-record" (or any other relevant permission,
e.g., "camera", "alsa").
6.  Close the permissions window (e.g., by clicking the 'X' button or
navigating away).
7.  Re-open the permissions for the same Snap application.

**Expected Result:**
The checkbox for "audio-record" (or the previously selected permission) should
remain checked.

**Actual Result:**
The checkbox for "audio-record" (or the previously selected permission) is
found to be unchecked.

**Workaround:**

The permissions can be successfully connected and made persistent using the
command line:

For WhatsApp Desktop:
`sudo snap connect whatsapp-linux-desktop:audio-record`

For Thunderbird:
`sudo snap connect thunderbird:audio-record` (or replace `audio-record` with
the relevant permission you're trying to set for Thunderbird)

After setting the permission via the command line and restarting the
application, the microphone (or other functionality) works correctly within the
Snap.

ralf@yoga:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 24.04.2 LTS
Release:        24.04
Codename:       noble
ralf@yoga:~$ kf5-config --version
Qt: 5.15.13
KDE Frameworks: 5.115.0
kf5-config: 1.0
ralf@yoga:~$ snap version
snap    2.67.1+24.04
snapd   2.67.1+24.04
series  16
ubuntu  24.04
kernel  6.11.0-26-generic
ralf@yoga:~$ snap connections whatsapp-linux-desktop
Schnittstelle             Plug                                     Slot        
                    Notizen
alsa                      whatsapp-linux-desktop:alsa              -           
                    -
audio-playback            whatsapp-linux-desktop:audio-playback   
:audio-playback                  -
audio-record              whatsapp-linux-desktop:audio-record     
:audio-record                    manual
browser-support           whatsapp-linux-desktop:browser-support  
:browser-support                 -
camera                    whatsapp-linux-desktop:camera            -           
                    -
content[gnome-3-28-1804]  whatsapp-linux-desktop:gnome-3-28-1804  
gnome-3-28-1804:gnome-3-28-1804  -
content[gtk-3-themes]     whatsapp-linux-desktop:gtk-3-themes     
gtk-common-themes:gtk-3-themes   -
content[icon-themes]      whatsapp-linux-desktop:icon-themes      
gtk-common-themes:icon-themes    -
content[sound-themes]     whatsapp-linux-desktop:sound-themes     
gtk-common-themes:sound-themes   -
desktop                   whatsapp-linux-desktop:desktop           :desktop    
                    -
desktop-legacy            whatsapp-linux-desktop:desktop-legacy   
:desktop-legacy                  -
gsettings                 whatsapp-linux-desktop:gsettings         :gsettings  
                    -
hardware-observe          whatsapp-linux-desktop:hardware-observe  -           
                    -
home                      whatsapp-linux-desktop:home              :home       
                    -
network                   whatsapp-linux-desktop:network           :network    
                    -
network-bind              whatsapp-linux-desktop:network-bind     
:network-bind                    -
network-status            whatsapp-linux-desktop:network-status   
:network-status                  -
opengl                    whatsapp-linux-desktop:opengl            :opengl     
                    -
removable-media           whatsapp-linux-desktop:removable-media   -           
                    -
unity7                    whatsapp-linux-desktop:unity7            :unity7     
                    -
wayland                   whatsapp-linux-desktop:wayland           :wayland    
                    -
x11                       whatsapp-linux-desktop:x11               :x11        
                    -
ralf@yoga:~$ snap connections thunderbird
Schnittstelle           Plug                                 Slot              
             Notizen
audio-playback          thunderbird:audio-playback           :audio-playback   
             -
avahi-observe           thunderbird:avahi-observe            -                 
             -
browser-support         thunderbird:browser-sandbox          :browser-support  
             -
camera                  thunderbird:camera                   :camera           
             manual
content[gnome-42-2204]  thunderbird:gnome-42-2204           
gnome-42-2204:gnome-42-2204     -
content[gtk-3-themes]   thunderbird:gtk-3-themes            
gtk-common-themes:gtk-3-themes  -
content[icon-themes]    thunderbird:icon-themes             
gtk-common-themes:icon-themes   -
content[sound-themes]   thunderbird:sound-themes            
gtk-common-themes:sound-themes  -
cups-control            thunderbird:cups-control             :cups-control     
             -
dbus                    -                                   
thunderbird:dbus-daemon         -
desktop                 thunderbird:desktop                  :desktop          
             -
desktop-legacy          thunderbird:desktop-legacy           :desktop-legacy   
             -
gpg-keys                thunderbird:gpg-keys                 -                 
             -
gsettings               thunderbird:gsettings                :gsettings        
             -
home                    thunderbird:home                     :home             
             -
network                 thunderbird:network                  :network          
             -
network-control         thunderbird:network-control          -                 
             -
opengl                  thunderbird:opengl                   :opengl           
             -
personal-files          thunderbird:dot-thunderbird          :personal-files   
             -
removable-media         thunderbird:removable-media          :removable-media  
             -
system-files            thunderbird:etc-thunderbird          :system-files     
             -
system-files            thunderbird:host-usr-share-hunspell  :system-files     
             -
u2f-devices             thunderbird:u2f-devices              -                 
             -
wayland                 thunderbird:wayland                  :wayland          
             -
x11                     thunderbird:x11                      :x11              
             -
ralf@yoga:~$ pactl info 
pactl list short sinks
pactl list short sources
Server-Zeichenkette: /run/user/1000/pulse/native
Bibliotheks-Protokollversion: 35
Server-Protokollversion: 35
ist lokal: ja
Client-Index: 788
Tile-Größe: 65472
Name des Benutzers: ralf
Rechnername: yoga
Name des Servers: PulseAudio (on PipeWire 1.0.5)
Version des Servers: 15.0.0
Standard-Abtastwert-Angabe: float32le 2ch 48000Hz
Standard-Kanal-Zuordnung: front-left,front-right
Standard-Ziel: alsa_output.pci-0000_65_00.6.HiFi__hw_Generic_1__sink
Standard-Quelle: alsa_input.pci-0000_65_00.6.HiFi__hw_acp63__source
Cookie: 2dd1:5a58
327     alsa_output.pci-0000_65_00.6.HiFi__hw_Generic_1__sink   PipeWire       
s32le 2ch 48000Hz       SUSPENDED
327     alsa_output.pci-0000_65_00.6.HiFi__hw_Generic_1__sink.monitor  
PipeWire        s32le 2ch 48000Hz       SUSPENDED
328     alsa_input.pci-0000_65_00.6.HiFi__hw_Generic_1__source  PipeWire       
s32le 2ch 48000Hz       SUSPENDED
329     alsa_input.pci-0000_65_00.6.HiFi__hw_acp63__source      PipeWire       
s32le 2ch 48000Hz       SUSPENDED
ralf@yoga:~$ echo $XDG_SESSION_TYPE
wayland
ralf@yoga:~$

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to