12-03-2013 10:38 AM - edited 12-03-2013 10:39 AM
Just as the subject says: Open a Document on Disk.vi Does not exist on Linux Labview 2012
On Windows labview 2012 this vi exists in the following path <vilib>\Platform\browser.llb\Open a Document on Disk.vi
Linux neglected platform much? Does anyone have a work around for this in Linux without hardcoding the path to the default application?
12-03-2013 02:25 PM
Open a Document on Disk.vi converts the document path to a string, and passes that string to vi.lib\Platform\browser.llb\Open URL in Default Browser core.vi. On Windows, this VI makes a callback into the LabVIEW.exe to call an internal function to open the document. I'm guessing that this callback is only supported on Windows, which is why Open a Document on Disk.vi doesn't exist on Linux. If you dig into Open URL in Default Browser core.vi on Linux, you'll see that it takes a completely different approach. If the 'htmlview' app is present on the system, it will use that. Otherwise, the first time the VI is ever run, it prompts the user to specify an application to use to open documents, then it stores this info in a preferences file for later use.
So for your case, if you're wanting to specify a custom application to open documents, I suggest either programmatically or manually modifying the [LabVIEW Data]/.lvbrowser file to point to the right application, then use Open URL in Default Browser core.vi to open the document.
12-03-2013 02:32 PM
Thanks for your reply. I will look into your suggestion. It's the little things like this that make it difficult to create cross platform LabVIEW software. Each time I use a non-primitive VI I always have to wonder if it is even supported on Linux, sadly at times it is not. Anyways thanks for your help!