Re: GIO application integration with Nautilus



On Tue, 2009-05-19 at 08:22 -0400, Dr. Michael J. Chudobiak wrote:
> > When I use "Open With Other Application..." it launches the program but
> > does not pass in any arguments.
> 
> Not sure, but perhaps the line "supported_uri_schemes=file" is the problem.
> 
> - Mike

That was my first thought when I couldn't get it working.  However,
that's the same way GIMPs entry is done.  Looking around the file, I
found that EoG has a slightly different entry and Mozilla and even more
different one.  I tried each style for my entry but alas, no luck.


=== excerpts: /usr/share/application-registry/gnome-vfs.applications ===

eog
	command=eog
	name=Eye of Gnome
	can_open_multiple_files=true
	expects_uris=true
	uses_gnomevfs=true
	requires_terminal=false

mime_types=image/bmp,image/gif,image/jpeg,image/png,image/tiff,image/x-xpixmap,image/x-bmp,image/x-png,image/x-portable-anymap,image/x-portable-bitmap,image/x-portable-graymap,image/x-portable-pixmap


gimp
	command=gimp-remote --new
	name=The GIMP
	can_open_multiple_files=true
	expects_uris=non-file
	requires_terminal=false
	supported_uri_schemes=file

mime_types=image/bmp,image/gif,image/jpeg,image/png,image/tiff,image/x-xpixmap,image/x-bmp,image/x-png,image/x-portable-anymap,image/x-portable-bitmap,image/x-portable-graymap,image/x-portable-pixmap,image/x-psd,image/x-xbitmap,image/x-xcf


mozilla
	command=mozilla
	name=Mozilla
	can_open_multiple_files=true
	expects_uris=true
	requires_terminal=false
	supported_uri_schemes=file,http,ftp,telnet,gopher
	mime_types=text/html,x-directory/webdav,x-directory/webdav-prefer-directory,image/gif,image/jpeg,text/xml

=== end ===


To test that perhaps it was the executable itself, I put my executable
(/usr/bin/qiv2) in place of GIMP (/usr/bin/gimp-2.6) and EoG
(/usr/bin/eog) which worked flawlessly.


so... what's the deal and what's with all the different entry formats?


-- 
Gravis <desktop-devel adaptivetime com>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]