Linux usability question: get default programs?
- From: Kevin Walzer <sw@xxxxxxxxxxxxxxxxxxxxx>
- Date: Sun, 22 Jan 2006 23:43:19 -0500
I'm working on a program that includes functionality to open a file in a
default program. This is easily handled on Mac and Windows via system
commands ("open" and "start"), but I'm not aware of any standard API on
Linux for doing so. Given this (and after consulting various snippets of
code at the wiki) I'd like to get others' perspectives on these
alternative approaches in the Linux version of my app:
1. Simply popping up a dialog box each time the user selects a file to
open, prompting them to enter the command used to open the file.
2. Providing a preferences setting by which they can configure standard
helper tools, and popping up a dialog as above for less-common types.
3. Asking them to input the command, then appending that command name to
a list that is built up over time (saved to a prefs file), which they
can select from a combobox or listbox.
4. Building up an array that associates specific programs with specific
file extensions, then automatically invoking that program when the
specific file extension is found; the array would be saved to a prefs file.
These approaches are increasingly complicated for me to implement, but
increasingly easy for end users. What I'm not sure about is what the
typical Linux user's expectations are.
At any rate, I'd appreciate others' perspectives.
--
Cheers,
Kevin Walzer, PhD
WordTech Software - "Tame the Terminal"
http://www.wordtech-software.com
sw at wordtech-software.com
.
- Follow-Ups:
- Re: Linux usability question: get default programs?
- From: Joe English
- Re: Linux usability question: get default programs?
- From: Eckhard Lehmann
- Re: Linux usability question: get default programs?
- Prev by Date: Re: What's the best way to append to an array?
- Next by Date: Re: Parsing a .CSV file using Tcl
- Previous by thread: What's the best way to append to an array?
- Next by thread: Re: Linux usability question: get default programs?
- Index(es):
Relevant Pages
|
|