Bug 459646 - Some .desktop files are always executed on clicking
Summary: Some .desktop files are always executed on clicking
Status: REPORTED
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 22.08.1
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-09-25 13:16 UTC by Kishore Gopalakrishnan
Modified: 2022-09-25 13:16 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kishore Gopalakrishnan 2022-09-25 13:16:21 UTC
SUMMARY
When left-clicking (either single- or double-click depending on the config) an executable file, one can configure Dolphin to ask what to do or to open the file in another application instead of just executing it. However, this setting is not obeyed for some .desktop files.

STEPS TO REPRODUCE
1. Go to Settings > configure Dolphin > General > confirmation, and set 'when opening executable files' to 'always ask'
2. In Dolphin, right-click > create new > link to location (URL), and enter any URL to create a corresponding .desktop file in the current folder
3. Open the .desktop file (either single or double click depending on your system settings)

OBSERVED RESULTS
The URL is opened in the default browser.

EXPECTED RESULTS
Dolphin should ask whether to 'execute' the .desktop file or whether to open the .desktop file itself in the default application for text files, since a user who has chosen this configuration for executables will probably be unhappy with .desktop files being directly 'executed'.

SOFTWARE VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.25.90
KDE Frameworks Version: 5.98.0
Qt Version: 5.15.6
Kernel Version: 5.15.70-1-lts (64-bit)
Graphics Platform: X11

ADDITIONAL INFORMATION
Here is an example of a .desktop file for which this happens (strangely, permissions are 644, not executable):
```
[Desktop Entry]
Icon=text-html
Name=Datasets
Type=Link
URL[$e]=https://turbulence.pha.jhu.edu/datasets.aspx
```

Strangely, the config is obeyed for .desktop files which are present in .local/share/applications