Bug 443628 - Dolphin opens a new tab when clicking on a file instead of executing default action
Summary: Dolphin opens a new tab when clicking on a file instead of executing default ...
Status: RESOLVED NOT A BUG
Alias: None
Product: dolphin
Classification: Applications
Component: general (other bugs)
Version First Reported In: 21.08.3
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-12 08:39 UTC by J.O. Aho
Modified: 2021-11-16 17:02 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Secondary panel (59.20 KB, image/png)
2021-10-12 08:39 UTC, J.O. Aho
Details
dolphin opened to display desktop file (11.14 KB, image/png)
2021-10-12 08:39 UTC, J.O. Aho
Details
plasma-org.kde.plasma.desktop-appletsrc (19.13 KB, text/plain)
2021-10-19 09:36 UTC, J.O. Aho
Details
mimeapps.list (6.02 KB, text/plain)
2021-11-15 08:10 UTC, J.O. Aho
Details

Note You need to log in before you can comment on or make changes to this bug.
Description J.O. Aho 2021-10-12 08:39:05 UTC
Created attachment 142358 [details]
Secondary panel

SUMMARY
When you have a secondary panel (based on empty or application) with application desktop files and you click on the icon, it will try to open the file as a directory in dolphin.


STEPS TO REPRODUCE
1. Create a new panel
2. Add a launcher widget
3. From the launcher right click on an application and select "Add to panel (widget)"
4. Go out of edit mode
5. Click on the icon on your panel


OBSERVED RESULT
Dolphin opens with the ~/.local/share/plasma_icons/<application>.desktop as the path.

EXPECTED RESULT
The application would start

SOFTWARE/OS VERSIONS
Windows: No
macOS: No
Linux/KDE Plasma: Artix Linux
(available in About System)
KDE Plasma Version: 5.22.5
KDE Frameworks Version: 5.87.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
Kernel: 5.14.8 (64bit)
Graphics: X11 (1.20.13)
Gfx Driver: Nvidia (470.74)
xdg-utils: 1.1.3+19+g9816ebb-1.1
Comment 1 J.O. Aho 2021-10-12 08:39:52 UTC
Created attachment 142359 [details]
dolphin opened to display desktop file
Comment 2 J.O. Aho 2021-10-12 08:46:50 UTC
I haven't changed any settings in plasma for a long while and the secondary panel worked while I used plasma-desktop 5.22.2.

xdg is using the default system config which is provided by Artix (based on Arch Linux, just systemd replaced with Gentoo replacements).

Yes, I have tried to create new panel and the result is the same.
Comment 3 Nate Graham 2021-10-18 03:28:14 UTC
Hmm, cannot reproduce with those steps on Plasma 5.23. Can you upgrade and give it another try?
Comment 4 J.O. Aho 2021-10-19 09:36:49 UTC
Created attachment 142610 [details]
plasma-org.kde.plasma.desktop-appletsrc

Included my plasma-org.kde.plasma.desktop-appletsrc, removing it from .configure and re-login to plasma5 seems to made the panel to work. 

Still dolphin ain't working correctly, tried to delete the ~/.config/dolphinrc but still when clicking on a file, it opens a new tab instead of running the default application for the file type.
Comment 5 Bug Janitor Service 2021-11-03 04:35:24 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 6 J.O. Aho 2021-11-15 08:10:05 UTC
Created attachment 143563 [details]
mimeapps.list

Seems the thing that broke dolphin for me was the mimeapps.list, but I'm not sure which row causes the problem.
Renaming the file made dolphin to work as expected.
Comment 7 Nate Graham 2021-11-16 17:02:39 UTC
x-scheme-handler/file=org.kde.dolphin.desktop would appear to be the culprit.

Out of curiosity, would you be interested in commenting on why you're using PCManFM instead of Dolphin?