Bug 510120

Summary: K3b as snap doesn't start burning of Audio CDs and CD-ROMs/Images
Product: [Applications] k3b Reporter: Jan Rathmann <jan.rathmann>
Component: Burning/HardwareAssignee: K3b Bugs <k3b-bugs-null>
Status: REPORTED ---    
Severity: normal CC: michalm, trueg
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Snap   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Terminal output of `snap run k3b` for burning an Audio CD
Terminal output of `snap run k3b` for burning a data image
K3b diagnosis output after failing to burn an Audio CD
K3b diagnosis output after failing to burn a data image
Screenshot of K3b Settings -> Programms -> Permissions window

Description Jan Rathmann 2025-10-01 10:47:03 UTC
SUMMARY
K3b, when run as snap, fails to both burn Data and Audio CDs. cdrdao and wodim immediately return an error when called to start the actual burning.

STEPS TO REPRODUCE
1. sudo snap install k3b
2. snap run k3b
3. Insert a blank CD-R.

For Audio CDs
4. Create a new Audio CD, add some audio files.
5. Click on "Write" (check "Simulate")

For CD-ROMs
4. Create a new data disc, add some files. (Or alternatively try to burn an image by clicking "Write image file...")
5. Click on "Write" (check "Simulate")

OBSERVED RESULT
Burning fails immediately, without actually trying to access the drive.

For Audio CDs:
Error message says:  
"cdrdao returned an unknown error code (errorcode 1)."

For CD-ROMs:
Error message says:
"cdrecord has insufficient permissions to open the device.
Change your device settings in K3b to solve this problem."

EXPECTED RESULT
Burning succeeds.

SOFTWARE/OS VERSIONS
(all from the About dialog of the K3b snap!)
K3b Version: 25.11.70
KDE Frameworks Version: 6.14.0
Qt Version: 6.9.1

Reproduced with:
* Kubuntu 25.04
* KDE Linux

ADDITIONAL INFORMATION
Attachements: 
* Terminal output of  `snap run k3b` for both trying to burn an Audio CD and a CD-ROM, plus K3b's diagnosis output for each case.
* Screenshot of the Settings -> Programs -> Permissions dialog.  It seems not possible to actually change the permissions there, due to the immutability of snaps.
Comment 1 Jan Rathmann 2025-10-01 10:48:01 UTC
Created attachment 185420 [details]
Terminal output of `snap run k3b` for burning an Audio CD
Comment 2 Jan Rathmann 2025-10-01 10:48:31 UTC
Created attachment 185421 [details]
Terminal output of `snap run k3b` for burning a data image
Comment 3 Jan Rathmann 2025-10-01 10:49:15 UTC
Created attachment 185422 [details]
K3b diagnosis output after failing to burn an Audio CD
Comment 4 Jan Rathmann 2025-10-01 10:49:38 UTC
Created attachment 185423 [details]
K3b diagnosis output after failing to burn a data image
Comment 5 Jan Rathmann 2025-10-01 10:50:55 UTC
Created attachment 185424 [details]
Screenshot of K3b Settings -> Programms -> Permissions window