Bug 357471 - Dolphin opens .desktop files in Kate
Summary: Dolphin opens .desktop files in Kate
Status: RESOLVED FIXED
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 15.08.2
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-03 16:01 UTC by Peter Roots
Modified: 2016-04-19 05:30 UTC (History)
3 users (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 Peter Roots 2016-01-03 16:01:33 UTC
I first noticed this when in the remote:/ folder and clicked on the 'add network folder' icon - this opened as a file in Kate rather than opening the Add Network Folder wizard. In searching for a solution I found this http://askubuntu.com/questions/694809/add-network-folder-in-dolphin-opens-libreoffice
I have since noticed that any .desktop file does this rather than open the program it is for (Abiword or Xine for example)



Reproducible: Always

Steps to Reproduce:
1. Browse to a folder in Dolphin
2. Left click on any desktop application file
3.

Actual Results:  
Kate opens with the content of the .desktop file

Expected Results:  
the program specified in the file under Exec= ..... should open rather than Kate

I have compared the settings in Dolphin and in File Associations for the application group and application/x-desktop and can see no difference between my Kubuntu 15.10 and a Mint17 system that works as expected.
On both my Kubuntu and Mint set up Kate is the first option available to open desktop files from a right click
Comment 1 Viorel-Cătălin Răpițeanu 2016-01-03 16:52:43 UTC
By default when an executable file (*.desktop) is opened a popup is displayed:

"What do you wish to do with this executable file?"
"Open" "Execute" "Cancel"
This popup window has a "Don't ask again" checkbox.

I think that on your sistem (or Kubuntu) the "Open" selection is chosen by default. I'm not sure how can you reset the way behaviour.
Comment 2 Peter Roots 2016-01-03 18:30:24 UTC
Ah that is a good avenue to pursue - my touch pad is a bit over enthusiastic and I find the mouse pointer jumps about rather too easily. I did not notice such a pop up but it is possible that one popped and and was gone before I noticed as brushing the touch pad accepted the default option.
So just need to find where that setting is saved.
Thanks for the info, that is very useful
Comment 3 Peter Roots 2016-03-20 17:31:20 UTC
having been stumped by this I ignored it until today  - Under Dolphin preferences, on the general section there is a confirmations tab. Here, under 'ask for confirmation in all KDE applications when:' selecting 'executing scripts or desktop files' restores the default functionality of asking 'what do you want to do with this executable?' when you click a desktop icon in Dolphin.
I presume I have inadvertently selected open and somehow ticked the don't ask again box. 

So, not a bug but a config setting that I could not find - I actually found it by accident while trying to some something else entirely. :-)
Issue resolved.
Comment 4 Enno Köster 2016-04-18 09:36:11 UTC
Judging by the "Issue resolved" in the last line you might want to change the status of this bug to resolved  ;-)