Bug 427962 - Closing Dolphin, closes VLC (opened from Dolphin)
Summary: Closing Dolphin, closes VLC (opened from Dolphin)
Status: CONFIRMED
Alias: None
Product: frameworks-kio
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.76.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KIO Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-19 07:35 UTC by _ck
Modified: 2024-04-04 21:33 UTC (History)
8 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
VLC is not promoted to child of init upon launching from dolphin. (2.91 MB, video/x-matroska)
2020-12-11 16:05 UTC, _ck
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ck 2020-10-19 07:35:15 UTC
SUMMARY
A daughter process of VLC started by "open with VLC" from Dolphin context menu is closed upon closing Dolphin rather than being promoted to a daughter process of the init daemon. 

At the moment, this behavior is observed only with Dolphin and VLC, which suggests some specific interaction between Dolphin and VLC.

STEPS TO REPRODUCE
1. Open Dolphin and select audio/video file.
2. Open audio/ video file with VLC from "open with" context menu.
3. Closing Dolphin, closes the daughter VLC process.

OBSERVED RESULT
VLC is terminated.

EXPECTED RESULT
VLC remains running.

SOFTWARE/OS VERSIONS

Linux/KDE Plasma: kernel 5.9.1, Archlinux
KDE Plasma Version: 5.20
KDE Frameworks Version: 5.75.0
Qt Version: 5.15.1
Dolphin: 20.08.2
VLC: 3.0.11.1

ADDITIONAL INFORMATION
none
Comment 1 Nate Graham 2020-10-19 14:24:15 UTC
This is fixed in Dolphin 20.12. The problem was that it was opening the external app as a direct child process, rather than letting the system launcher do it--which makes the child app survive the parent app being closed.
Comment 2 _ck 2020-12-11 07:29:54 UTC
Still have the same issue with dolphin 20.12.0.

Again, it is only specific to VLC: every other process is promoted to a child of init, VLC gets closed off.
Comment 3 Nate Graham 2020-12-11 15:40:00 UTC
Still cannot reproduce.

Can you attach a screen recording that shows the issue? Is your system set up in any kind of unusual or non-default manner?
Comment 4 _ck 2020-12-11 16:05:39 UTC
Created attachment 134013 [details]
VLC is not promoted to child of init upon launching from dolphin.
Comment 5 _ck 2020-12-11 16:08:51 UTC
Despite the artifacting, which is not connected to the issue, I think https://bugs.kde.org/attachment.cgi?id=134013 attachment clearly shows what I mean.
Comment 6 Nate Graham 2020-12-11 16:10:35 UTC
What init system are you using? not systemd, I gather?
Comment 7 _ck 2020-12-11 16:23:13 UTC
(In reply to Nate Graham from comment #6)
> What init system are you using? not systemd, I gather?

It is systemd (systemd 247 (247.1-3-arch)). Everything is default archlinux.

At any rate, it is not a critical issue for me. If you come up with a way to debug it though, let me know.
Comment 8 Nate Graham 2020-12-11 21:14:59 UTC
How odd.This is almost certainly not an issue in Dolphin itself. Probably in either KIO (for ApplicationLauncherJob) or something else. Moving to KIO for now.
Comment 9 Lucas Henderson 2022-05-26 18:51:32 UTC
I have narrowed this down to the exact setting which causes the issue, and it's a setting in VLC. I don't know if the bug is specifically with vlc, or with how VLC talks with dolphin.  The video file is irrelevant; it happens when  the "Qt Interface" is enabled in VLC.

Precise steps to reproduce, done on a 100% clean new user I created for this purpose. 

Dolphin version: 22.04
VLC Version: 3.0.17.4
KIO(if it's related): 5.93.0
KIO-extras 22.04

STEPS TO REPRODUCE
1. Open VLC
2. Within VLC, navigate Tools > Preferences > Show Settings, and switch the radio button from "Simple" to "All"
3. Scroll to the "Interface" section, and select "Main Interfaces" 
4. Tick the checkmark for "Qt Interface", then save settings.
5. Close VLC entirely.
6. Open Dolphin, navigate to a video file, then right click it, and Open With > VLC Media Player.
7. Close Dolphin

Result: Both VLC and Dolphin close.

I was going to report this for VLC as well, but after testing both via the nightly snap package, and compiling the latest git version myself, I could not reproduce the error on VLC 4.0....which is targeted to release by the end of 2022.

SO. for now, for anyone else who comes across this, just disable the qt interface.
Comment 10 Linus Dierheimer 2022-06-18 20:04:19 UTC
Can confirm this bug, and that it only happens when VLCs "QT Interface" option is enabled. Not sure if this is a dolphin or vlc bug tho.