[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: opening unknown file types in external applications
From: |
John W. Eaton |
Subject: |
Re: opening unknown file types in external applications |
Date: |
Tue, 23 Apr 2013 17:06:50 -0400 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:10.0.11) Gecko/20121122 Icedove/10.0.11 |
On 04/23/2013 02:58 PM, Torsten wrote:
This one should do the job:
QDesktopServices::openUrl (
QUrl::fromLocalFile ( const QString& localFile )
);
OK, that works great to open files with their default applications,
but what's the best way to recognize the files that should be opened
in the Octave GUI's built-in editor?
I don't see a general way to override the default editor or disable
editing of text files so that openURL will return some kind of "sorry,
I don't know how to open that file" status so that we can handle them
internally in Octave. So it seems that we need to recognize the files
we want to handle first, then call openURL. But nothing that I can
think of (lists of filename patterns, binary vs. ASCII text, the Unix
file program) really seems like a complete or reliable solution.
Any ideas?
jwe
- opening unknown file types in external applications, John W. Eaton, 2013/04/23
- Re: opening unknown file types in external applications, Torsten, 2013/04/23
- Re: opening unknown file types in external applications, John W. Eaton, 2013/04/23
- Re: opening unknown file types in external applications,
John W. Eaton <=
- Re: opening unknown file types in external applications, Michael Goffioul, 2013/04/23
- Re: opening unknown file types in external applications, John W. Eaton, 2013/04/23
- Re: opening unknown file types in external applications, Michael Goffioul, 2013/04/23
- Re: opening unknown file types in external applications, Torsten, 2013/04/24
- Re: opening unknown file types in external applications, John W. Eaton, 2013/04/24
- Re: opening unknown file types in external applications, Patrick Noffke, 2013/04/23
- Re: opening unknown file types in external applications, Torsten, 2013/04/23
- Re: opening unknown file types in external applications, Daniel J Sebald, 2013/04/24