Bug 482571

Summary: Open With not launching application. Terminal is not launching either
Product: [Applications] dolphin Reporter: jestarray
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: kfm-devel, meven29, nicolas.fella, vescrity
Priority: NOR Keywords: qt6
Version: 24.02.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Bug Depends on:    
Bug Blocks: 482797    
Attachments: Video of bug attached

Description jestarray 2024-03-06 19:01:25 UTC
Created attachment 166500 [details]
Video of bug attached

SUMMARY
STEPS TO REPRODUCE
1. Right click open with and selection application will not launch application
2. Right click "open with terminal" does not launch terminal

Note that creating new files and clicking properties does work.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
KDE Plasma Version: (using i3wm)
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2

Launching dolphin on terminal logs:
kf.kio.core: An error occurred during write. The worker terminates now.
Cannot initialize model with data QJsonObject(). missing: QJsonValue(string, "urls")
kf.kio.core: An error occurred during write. The worker terminates now.
Comment 1 jestarray 2024-03-07 01:09:18 UTC
Double clicking also does not open anything. I tried running it on sway(wayland) and things work again! It seems to only be an issue on x11
Comment 2 Nicolas Fella 2024-03-07 11:01:51 UTC
Does "Open with" with a non-terminal application work?

This is most likely the same as https://bugs.kde.org/show_bug.cgi?id=482107
Comment 3 jestarray 2024-03-07 16:24:58 UTC
Nothing worked: https://bugsfiles.kde.org/attachment.cgi?id=166500

BUT now it works now again, I'm not sure what fixed it so I'm closing
Comment 4 vescrity@foxmail.com 2024-03-08 10:42:28 UTC
I'm using i3wm with archlinux.
I have found that: if haven't start plasma-desktop before:
   the kde applications can't start other programs with gui, not only dolphin, but also the system-setting and so on.
If start plasma-desktop and close it and start the wm:
  they can now start other programs, but the programs lost their themes(I mean, the QT programs don't show the correct themes). That won't happen in KDE5.
  The theme of QT programs is correct if you start with dmenu or any terminal-emulator, including the konsole of dolphin.
Comment 5 jestarray 2024-03-09 01:04:06 UTC
(In reply to jestarray from comment #3)
> Nothing worked: https://bugsfiles.kde.org/attachment.cgi?id=166500
> 
> BUT now it works now again, I'm not sure what fixed it so I'm closing

Opening with non terminal application works again(a reboot fixed it for me and some arch updates probably fixed some ifit?) BUT as mentioned it's not working with alacritty terminal(urxvt and others work) as mentioned in: https://bugs.kde.org/show_bug.cgi?id=482107

video of kdeconfig removing alacritty and working again:
https://bugs.kde.org/attachment.cgi?id=166620
Comment 6 jestarray 2024-03-30 04:10:50 UTC
(In reply to vescrity@foxmail.com from comment #4)
> I'm using i3wm with archlinux.
> I have found that: if haven't start plasma-desktop before:
>    the kde applications can't start other programs with gui, not only
> dolphin, but also the system-setting and so on.
> If start plasma-desktop and close it and start the wm:
>   they can now start other programs, but the programs lost their themes(I
> mean, the QT programs don't show the correct themes). That won't happen in
> KDE5.
>   The theme of QT programs is correct if you start with dmenu or any
> terminal-emulator, including the konsole of dolphin.

Yeah, I'm having this same issue... Why does it require starting "plasma-desktop" now for launching gui programs off dolphin :/? Have you found a fix?
Comment 7 Méven Car 2024-03-30 12:58:54 UTC

*** This bug has been marked as a duplicate of bug 482107 ***
Comment 8 Méven Car 2024-03-30 12:59:52 UTC
KDE Frameworks 6.1 arrive April 13th then a few days for rolling distro to ship it.
Comment 9 jestarray 2024-05-20 16:06:29 UTC
This bug is still not fixed on archlinux and requires manual intervention:

https://bbs.archlinux.org/viewtopic.php?pid=2166989

pkgname=plasma-workspace
pkgver=6.0.4
_dirver=$(echo $pkgver | cut -d. -f1-3)

mkdir temp && cd temp
wget "https://download.kde.org/stable/plasma/$_dirver/$pkgname-$pkgver.tar.xz"
# note the filename that was downloaded
tar -xJf plasma-workspace-6.0.4.tar.xz
find . -name "*.menu"
mkdir ~/.config/menus
cp plasma-workspace-6.0.4/menu/desktop/plasma-applications.menu ~/.config/menus/applications.menu
kbuildsycoca6
cd .. && rm -rf temp
Comment 10 Antonio Rojas 2024-05-20 16:10:36 UTC
(In reply to jestarray from comment #9)
> This bug is still not fixed on archlinux and requires manual intervention:
> 
> https://bbs.archlinux.org/viewtopic.php?pid=2166989

That is completely unrelated to this bug report.