XDG, xdg-open, and view vs. edit
patrys at pld-linux.org
Mon Mar 30 17:07:35 PDT 2009
On Tue, Mar 31, 2009 at 12:58 AM, Rodney Dawes <dobey.pwns at gmail.com> wrote:
> On Mon, 2009-03-30 at 19:25 +0200, Patryk Zawadzki wrote:
>> On Mon, Mar 30, 2009 at 4:34 PM, Pat Suwalski <pat at suwalski.net> wrote:
>> > My opinion is that it's because most programs don't differentiate
>> > between editing and viewing. You start the program with a file parameter
>> > and then you can do anything. In that respect, you're "Open"ing the file
>> > just like from the File->Open menu.
>> While this is true you might need two separate applications for
>> editing and viewing files. Also at times you might want to
>> programmatically determine if there is a viewer/editor available (for
>> example it does not make sense for an "edit" button to open a PDF file
>> in Evince).
> Unless it's a PDF form, which you are editing...
Think "print / preview" versus "designer mode".
It'd be pretty useful to -- say -- let Evince preview OpenOffice.org
files while also including means to open the file for editing. Same
for image previews and possibly other file types.
More information about the xdg