Bug 275438

Summary: Kile does not use %U in the Exec line in the .desktop
Product: [Applications] kile Reporter: Kerrick Staley <bugs>
Component: generalAssignee: Michel Ludwig <michel.ludwig>
Status: RESOLVED FIXED    
Severity: minor    
Priority: NOR    
Version: 2.0.85   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:

Description Kerrick Staley 2011-06-12 01:20:03 UTC
Version:           2.0.85 (using KDE 4.6.3) 
OS:                Linux

The line
Exec=kile
in kile.desktop needs to be changed to
Exec=kile %U
in order for Kile to appear in the "Open With..." dialog in Nautilus on Gnome 3.

Reproducible: Always

Steps to Reproduce:
Right click a .tex file in Nautilus on Gnome 3 and choose "Open With...".

Actual Results:  
Kile does not appear in the menu.

Expected Results:  
Kile appears in the menu.

This may also happen on other DE's or other file managers; I didn't check. If Kile is already the default application, it may not happen; I didn't check.

%U means a list of URLs (see http://standards.freedesktop.org/desktop-entry-spec/latest/ar01s06.html); specifying this tells Nautilus how to invoke Kile when opening .tex files.

Adding '%U' completely fixed the problem on my system and probably won't break anything on other systems.
Comment 1 Michel Ludwig 2011-06-12 22:24:25 UTC
Git commit 0b6be2dfb68d0d38b6f4160794001879a6ebaf6f by Michel Ludwig.
Committed on 12/06/2011 at 22:20.
Pushed by mludwig into branch '2.1'.

Fix the 'Exec' entry by adding %U as argument.

This fixes the problem that Kile isn't offered as application to open LaTeX
documents in Nautilus. Indeed, %U indicates that the application takes a list of
URLs as argument.

BUG: 275438

M  +1    -1    src/kile.desktop     

http://commits.kde.org/kile/0b6be2dfb68d0d38b6f4160794001879a6ebaf6f