I believe the issue it is has a hard-coded name of programs to invoke, and that list isn't always accurate for every Linux host system.
On Sat, Sep 26, 2015 at 4:04 PM, John Maton <[email protected]> wrote: > Stefan > I confirm that works for me on all platforms, Windows/Mac/Ubuntu, thanks > again > (for the record HostServices does not work on Ubuntu 10.4). > Regards, > John Maton > > On Sat, Sep 26, 2015 at 11:48 AM, Stefan Fuchs <[email protected]> wrote: > > > Hi, > > > > this works for us on all platforms, including Ubuntu 14.04 > > > > // Desktop methods must be executed on the Swing Event Thread > > SwingUtilities.invokeLater(() -> { > > Desktop.getDesktop().open(pdfFile); > > }); > > > > Regards, > > > > Stefan > > > > To: Rahman USTA <[email protected]> > >> > >> > >> My problem is getHostServices().showDocument does nothing at all in > Ubuntu > >> 10.4 > >> > >> Have you tried using Desktop? > >> as in > >> if(Desktop.isDesktopSupported()) Desktop.getDesktop().open(docFile); > >> > >> That also works for me on Windows and Mac but causes a system crash in > >> Ubuntu so I am no better off. > >> Regards > >> John Maton > >> > >> > >> On Sat, Sep 26, 2015 at 11:08 AM, Rahman USTA <[email protected] > > > >> wrote: > >> > >> I have similar issue. When using host services to show document in > >>> directory services, in Linux environment it shows documents in Web > >>> browser, > >>> not in directory service. > >>> > >>> Thanks > >>> 26 Eyl 2015 11:47 tarihinde "John Maton" <[email protected]> yazdı: > >>> > >>> Good morning all, > >>> > >>>> I am using getHostServices().showDocument to display documents, such > as > >>>> .pdf files. > >>>> This works find on all versions of Windows I have tested and on Apple > >>>> Macs, > >>>> but I have a test user running Linux Ubuntu 14.04 trusty where it does > >>>> not > >>>> work (does nothing). > >>>> Is there some library/resource which must be installed on Ubuntu to > make > >>>> HostServices work? > >>>> thanks in advance for any comments, > >>>> John Maton > >>>> > >>>> > > >
