FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Packaging

 
 
LinkBack Thread Tools
 
Old 08-28-2008, 02:46 PM
Rex Dieter
 
Default Calling graphical tools generically e.g. text editor

Patrice Dumas wrote:

On Thu, Aug 28, 2008 at 09:32:16AM -0500, Rex Dieter wrote:

Tim Jackson wrote:
I package RapidSVN, a GUI application which acts as an interface to a
Subversion repository. Although it has quite a lot of functionality
built-in, it relies on external software to perform some functions, in
particular:


- a text editor e.g. gedit
- a diff viewer of some sort (ideally graphical e.g. meld)
- a graphical directory browser (e.g. nautilus)

You could consider using xdg-open (from xdg-utils), which is a
command-line utility for this kind of thing. It's purpose is to open
files/urls using the default app of the current desktop environment
(kde, gnome, whatever).


I am not sure that it covers what is wanted here. With xdg-open, it is
likely that on text an editor is opened, but it could also be a viewer.
For the diff I don't know. But for directory browsing, I am not sure
that it will work, on my system, it uses kdesvn because it registered
MimeType=inode/directory;

Maybe it is just that inode/directory should be reserved for directory
browsers, and text for editors and not viewers.


Correct, use of any sort of "default" app, assumes that mimetypes for
the opened targets are configured properly.


-- Rex

--
Fedora-packaging mailing list
Fedora-packaging@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-packaging
 

Thread Tools




All times are GMT. The time now is 09:30 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org