Le 06/09/2012 14:33, Bruce a écrit :
> Hmm,
>
> I could be wrong here but I don't think this works for LXDE.
>
> There is no mimeinfo.cache file in ~/.local/share/applications/
> (in fact according to mlocate there is no such file anywhere)
>
> there is a mimeapps.list file that looks like this:
>          [Default Applications]
>          text/plain=leafpad.desktop
>          x-scheme-handler/http=firefox.desktop
>          x-scheme-handler/mailto=evolution.desktop
>          application/pdf=evince.desktop
>          application/xml=userapp-treeline-ICWQEW.desktop
>          image/png=gpicview.desktop
>          application/x-java=leafpad.desktop
>          application/x-m4=geany.desktop
>          application/x-shellscript=leafpad.desktop
>          text/html=firefox.desktop
>          text/x-csharp=geany.desktop
>          text/vnd.wap.wml=firefox.desktop
>          video/vnd.mpegurl=vlc.desktop
>          text/x-changelog=geany.desktop
>
>          [Added Associations]
>          x-scheme-handler/http=firefox.desktop;
>          x-scheme-handler/mailto=evolution.desktop;
>          
> application/octet-stream=leafpad.desktop;file-roller.desktop;userapp-dhex-49WAFW.desktop;userapp-hexedit-L3G7EW.desktop;geany.desktop;
>          application/x-java=geany.desktop;diffuse.desktop;
>          application/x-gambas3=userapp-gba3
>          -x-G5XBEW.desktop;file-roller.desktop;
>          application/x-compressed-tar=kde4-kdiff3.desktop;
>          
> application/xml=treeline.desktop;firefox.desktop;userapp-treeline-ICWQEW.desktop;
>          
> text/html=treeline.desktop;userapp-treeline-08RHEW.desktop;blue-griffon.desktop;firefox.desktop;
>          application/x-gettext-translation=leafpad.desktop;
>          application/x-php=firefox.desktop;
>          image/png=gpicview.desktop;
>          application/vnd.oasis.opendocument.graphics=gpicview.desktop;
>          application/vnd.oasis.opendocument.spreadsheet=gnumeric.desktop;
>          
> application/x-sqlite3=userapp-sqlite-UP4YFW.desktop;libreoffice3.5-base.desktop;
>          text/plain=geany.desktop;leafpad.desktop;diffuse.desktop;
>          audio/midi=vlc.desktop;
>          application/x-asp=firefox.desktop;
>          application/x-pak=file-roller.desktop;leafpad.desktop;
>          application/x-trash=leafpad.desktop;gpicview.desktop;
>          text/x-csharp=geany.desktop;
>          text/vnd.wap.wml=firefox.desktop;
>          video/vnd.mpegurl=vlc.desktop;
>          application/x-designer=mandriva-designer-qt4.desktop;
>          application/x-font-ttf=leafpad.desktop;
>          text/x-changelog=geany.desktop;
>
> So anytime the IDE tries a FindInMimeInfoCache() it crashes with a "File
> not found error"
>
> Bruce
>

Where is that "mimeapps.list" file located? Can it be located both in 
the home directory and in a global system directory?

-- 
Benoît Minisini

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Gambas-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to