Bug 275438 - Kile does not use %U in the Exec line in the .desktop
Summary: Kile does not use %U in the Exec line in the .desktop
Status: RESOLVED FIXED
Alias: None
Product: kile
Classification: Applications
Component: general (show other bugs)
Version: 2.0.85
Platform: Arch Linux Linux
: NOR minor
Target Milestone: ---
Assignee: Michel Ludwig
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-12 01:20 UTC by Kerrick Staley
Modified: 2011-06-12 22:24 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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