Bug 432517

Summary: VLC launched from Dolphin doesn't close properly if there's certain widget
Product: [Plasma] plasmashell Reporter: David <david.cortes.rivera>
Component: generalAssignee: David Edmundson <kde>
Status: RESOLVED UPSTREAM    
Severity: normal CC: nate, plasma-bugs
Priority: NOR    
Version: 5.20.5   
Target Milestone: 1.0   
Platform: Debian testing   
OS: Linux   
URL: https://gitlab.freedesktop.org/mesa/mesa/-/issues/116
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description David 2021-02-04 20:53:39 UTC
SUMMARY
I don't know whether the issue is with KDE or VLC, but VLC doesn't close properly if it was launched from dolphin after something in the session had previously activated the media player widget.


STEPS TO REPRODUCE
1. Put some media player widget in some KDE panel (the ones that have a big play/stop button).
2. Launch JuK or some other music player. Optionally play something with it and then stop it.
3. Launch dolphin.
4. From dolphin, click on some video file to open it with VLC.
5. Close the VLC window through the 'X' icon.

OBSERVED RESULT
VLC should close.

EXPECTED RESULT
The VLC window closes, but the underlying process remains active and prevents from further launching VLC windows from dolphin (i.e. if I click some other video file from dolphin, it won't launch a VLC window until I manually kill the VLC process). Launching VLC directly from the command line doesn't produce any problems with either terminating the process after clicking the 'X', or launching while another VLC process is active.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.20.5
KDE Frameworks Version: 5.78.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
Comment 1 David 2021-02-04 20:56:17 UTC
Small correction: when launched from the command line, it will also present the same issue if using argument '--started-from-file'.

I.e.
vlc my_file.mkv <- runs fine
vlc --started-from-file my_file.mkv <- doesn't close properly
Comment 2 David Edmundson 2021-02-22 23:44:13 UTC
Please can report to VLC.  I haven't heard anything that implies it's Plasma's fault.

If they say send you back here, please link the upstream report.
Comment 3 David 2021-02-23 00:19:00 UTC
(In reply to David Edmundson from comment #2)
> Please can report to VLC.  I haven't heard anything that implies it's
> Plasma's fault.
> 
> If they say send you back here, please link the upstream report.

Thing is, it only happens in KDE, and only when there's a media player widget.
Comment 4 David 2021-02-23 15:21:41 UTC
Turns out in the end it's a bug with mesa, not KDE or QT: https://gitlab.freedesktop.org/mesa/mesa/-/issues/116