To: Benoît No, it does not work. In console I obtain simply like an empty newline (...carriage return).
To: Gianluigi I forgot change italian "percorso" word to "path"... a simple mistake, but even adjusting the variable name, the problem is not eliminated. regards vuott -------------------------------------------- Ven 11/3/16, Gianluigi <bagone...@gmail.com> ha scritto: Oggetto: Re: [Gambas-user] (no subject) A: "mailing list for gambas users" <gambas-user@lists.sourceforge.net> Data: Venerdì 11 marzo 2016, 22:29 Hello vuott, It is true it works, if instead of "percorso" put "path" your code works. Regards Gianluigi 2016-03-11 22:01 GMT+01:00 Benoît Minisini <gam...@users.sourceforge.net>: > Le 09/03/2016 11:46, Ru Vuott a écrit : > > Hello, > > > > "before", by using this simple code (gbdesktop and gb.desktop.x11): > > > > Public Sub Button1_Click() > > > > Dim df As DesktopFile > > Dim path As String > > > > percorso = "/path/of/the/file" > > > > For Each df In DesktopFile.FromMime(DesktopMime.FromFile(path).Type) > > Print df.ProgramName > > Next > > > > End > > > > I "was" able to know the applications associated (by default and those > by me choosen) with a file. > > > > Regards > > vuott > > And now? > > -- > Benoît Minisini > > > ------------------------------------------------------------------------------ > Transform Data into Opportunity. > Accelerate data analysis in your applications with > Intel Data Analytics Acceleration Library. > Click to learn more. > http://pubads.g.doubleclick.net/gampad/clk?id=278785111&iu=/4140 > _______________________________________________ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------------------------ Transform Data into Opportunity. Accelerate data analysis in your applications with Intel Data Analytics Acceleration Library. Click to learn more. http://pubads.g.doubleclick.net/gampad/clk?id=278785111&iu=/4140 _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user ------------------------------------------------------------------------------ Transform Data into Opportunity. Accelerate data analysis in your applications with Intel Data Analytics Acceleration Library. Click to learn more. http://pubads.g.doubleclick.net/gampad/clk?id=278785111&iu=/4140 _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user