Bug 479872

Summary: Option --lastchannel doesn't free dvb adapter after stop
Product: [Applications] kaffeine Reporter: Valerio Vanni <valerio.vanni>
Component: generalAssignee: Mauro Carvalho Chehab <mchehab>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Valerio Vanni 2024-01-15 23:00:21 UTC
SUMMARY
***
If I start kaffeine without options and I play a DVB channel when I click stop, kaffeine frees immediately /dev/dvb/xxx device.
If I start kaffeine with --lastchannel and do the same (click stop), /dev/dvb/xxx device is busy.

A child process is locking it: 

lsof finds this:
kioslave5 21356                          valerio   35u      CHR              212,3         0t0    1173529 /dev/dvb/adapter0/frontend0

  21356 ?        S      0:00 /lib/x86_64-linux-gnu/libexec/kf5/kioslave5 /usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/tags.so tags  local:/run/user/1000/kaffeineppPvOO.1.kioworker.socket

After some minutes, this process ends and dvb device is free an can be rmmod-ed.

***

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Debian Bookworm 64 bit
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.18