Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 190289 - app-editors/gvim desktop exec entry misses file
Summary: app-editors/gvim desktop exec entry misses file
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor
Assignee: Vim Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-26 11:03 UTC by Chidambar "ilLogict" Zinnoury
Modified: 2007-09-27 16:56 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
corrected desktop file for gvim (gvim.desktop,851 bytes, text/plain)
2007-08-26 11:04 UTC, Chidambar "ilLogict" Zinnoury
Details
corrected desktop file for gvim (v2) (gvim.desktop,825 bytes, text/plain)
2007-08-26 14:12 UTC, Chidambar "ilLogict" Zinnoury
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chidambar "ilLogict" Zinnoury 2007-08-26 11:03:47 UTC
Currently, gVim desktop file (/usr/share/applications/gvim.desktop) Exec entry reads:
Exec=gvim -f
When using a file manager on which we assigned gvim to open a file, the file manager will not pass the selected file's location.
gvim accepts URIs, so using %U is expected.

Reproducible: Always

Steps to Reproduce:
1. Assign a file type to gvim.
2. Open a file.
Actual Results:  
gvim opens with no file.

Expected Results:  
gvim should open the selected file.
Comment 1 Chidambar "ilLogict" Zinnoury 2007-08-26 11:04:46 UTC
Created attachment 129215 [details]
corrected desktop file for gvim
Comment 2 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2007-08-26 13:48:58 UTC
$ desktop-file-validate gvim.desktop
gvim.desktop: warning: key "Encoding" in group "Desktop Entry" is deprecated
gvim.desktop: error: value "text/css;text/html;text/htmlh;text/plain;text/rss;text/sgml;text/x-adasrc;text/x-authors;text/x-c++hdr;text/x-c++src;text/x-copying;text/x-credits;text/x-csharp;text/x-csrc;text/x-dtd;text/x-fortran;text/x-gettext-translation-template;text/x-gettext-translation;text/x-gtkrc;text/x-haskell;text/x-idl;text/x-install;text/x-java;text/x-js;text/x-ksh;text/x-ksysv-log;text/x-literate-haskell;text/x-log;text/x-makefile;text/x-moc;text/x-msil;text/x-nemerle;text/x-objcsrc;text/x-pascal;text/x-patch;text/x-readme;text/x-scheme;text/x-setext;text/x-sql;text/x-tcl;text/x-tex;text/x-texinfo;text/x-troff-me;text/x-troff-mm;text/x-troff-ms;text/x-uil;text/x-vb;text/xml" for string list key "MimeType" in group "Desktop Entry" does not have a semicolon (';') as trailing character
gvim.desktop: warning: value "Application;Development;" for key "Categories" in group "Desktop Entry" contains a deprecated value "Application"
$ 
Comment 3 Chidambar "ilLogict" Zinnoury 2007-08-26 14:12:43 UTC
Created attachment 129239 [details]
corrected desktop file for gvim (v2)
Comment 4 Chidambar "ilLogict" Zinnoury 2007-08-26 14:13:23 UTC
Well, I originately only added %U, but here is modified version which should address warnings and errors.
Comment 5 Ali Polatel (RETIRED) gentoo-dev 2007-09-27 10:17:15 UTC
vim-7.1.123 which is in CVS uses a new gvim.desktop file. %U is known to have problems with unicode filenames[1] so I changed it to gvim -f %F
Thanks for reporting ;)

[1]: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=406586
     http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=426243
Comment 6 Chidambar "ilLogict" Zinnoury 2007-09-27 16:56:10 UTC
Strange, it works for me whatever strange Unicode characters I use (UTF-8 locale) and Enlightenment's integrated file manager. Anyway, it should not be a problem :)