gnome-control-center doesn't ignore '%f' in desktop file

Bug #986608 reported by Florian Diesch
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gnome-control-center (Ubuntu)
New
Low
Unassigned

Bug Description

The "Desktop Entry Specification" says about the "Exec" key in .desktop files (in http://standards.freedesktop.org/desktop-entry-spec/latest/ar01s06.html):

If the application should not open any file the %f, %u, %F and %U field codes must be removed from the command line and ignored.

gnome-control-center doesn't do that but calls the command with the "%f" still in the command line. This leads to errors when adding a program to the g-c-c that takes an optional file parameter.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: gnome-control-center 1:3.4.1-0ubuntu1
ProcVersionSignature: Ubuntu 3.2.0-23.36-generic-pae 3.2.14
Uname: Linux 3.2.0-23-generic-pae i686
NonfreeKernelModules: nvidia
ApportVersion: 2.0.1-0ubuntu6
Architecture: i386
Date: Sat Apr 21 18:02:06 2012
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release i386 (20111012)
ProcEnviron:
 LC_CTYPE=de_DE.UTF-8
 TERM=xterm
 PATH=(custom, user)
 LANG=de_DE.UTF-8
 SHELL=/bin/zsh
SourcePackage: gnome-control-center
UpgradeStatus: Upgraded to precise on 2012-04-04 (16 days ago)
usr_lib_gnome-control-center: indicator-datetime 0.3.94-0ubuntu2

Revision history for this message
Florian Diesch (diesch) wrote :
Revision history for this message
Florian Diesch (diesch) wrote :

How to reproduce:

Save the attached file into /usr/share/applications/ This add an iconless item named "Bug" to g-c-c that starts "evince %f". When clicking on it Evince complains that it can't find the document.

If you start "Bug" with the Dash Evince opens without an error like it should.

Changed in gnome-control-center (Ubuntu):
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.