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 [System] Gambas=3.8.90 r7626 OperatingSystem=Linux Kernel=3.19.0-32-generic Architecture=x86_64 Distribution=Linux Mint 17.3 Rosa Desktop=GNOME Theme=Cleanlooks Language=it_IT.UTF-8 Memory=1244M [Libraries] Cairo=libcairo.so.2.11301.0 Curl=libcurl.so.4.3.0 DBus=libdbus-1.so.3.7.6 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.204.0 GTK+2=libgtk-x11-2.0.so.0.2400.23 GTK+3=libgtk-3.so.0.1000.8 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.44.0.0 QT4=libQtCore.so.4.8.6 QT5=libQt5Core.so.5.2.1 SDL=libSDL-1.2.so.0.11.4 [Environment] CLUTTER_BACKEND=x11 DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-EWRHxTIG57,guid=d66a9c093eff33b04b14a0d856dfdf04 DEFAULTS_PATH=/usr/share/gconf/cinnamon.default.path DESKTOP_SESSION=cinnamon DISPLAY=:0.0 GB_GUI=gb.qt4 GDMSESSION=cinnamon GDM_XSERVER_LOCATION=local GNOME_DESKTOP_SESSION_ID=this-is-deprecated GNOME_KEYRING_CONTROL=/run/user/1000/keyring-NMk8yk GPG_AGENT_INFO=/run/user/1000/keyring-NMk8yk/gpg:0:1 HOME=<home> INSIDE_NEMO_PYTHON= LANG=it_IT.UTF-8 LOGNAME=<user> MANDATORY_PATH=/usr/share/gconf/cinnamon.mandatory.path MDMSESSION=cinnamon MDM_LANG=it_IT.UTF-8 MDM_XSERVER_LOCATION=local PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games PWD=<home> QT_STYLE_OVERRIDE=gtk SESSION_MANAGER=local/<hostname>:@/tmp/.ICE-unix/1538,unix/<hostname>:/tmp/.ICE-unix/1538 SHELL=/bin/bash SSH_AGENT_PID=1669 SSH_AUTH_SOCK=/run/user/1000/keyring-NMk8yk/ssh TEXTDOMAIN=im-config TEXTDOMAINDIR=/usr/share/locale/ TZ=:/etc/localtime USER=<user> USERNAME=<user> WINDOWPATH=8 XAUTHORITY=<home>/.Xauthority XDG_CONFIG_DIRS=/etc/xdg/xdg-cinnamon:/etc/xdg XDG_CURRENT_DESKTOP=X-Cinnamon XDG_DATA_DIRS=/usr/share/cinnamon:/usr/share/gnome:/usr/local/share/:/usr/share/:/usr/share/mdm/ XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SESSION_COOKIE=00bbf8687c0641e38c05d54254ef59ed-1457512194.246155-122942153 XDG_SESSION_DESKTOP=cinnamon XDG_SESSION_ID=c1 XDG_VTNR=8 ------------------------------------------------------------------------------ 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