[Gambas-user] gb.desktop: unable to found mime database

herberth guzman herberthguzman at ...626...
Wed May 21 18:33:35 CEST 2014


Hi all

I have a question?

the following code works well:

Ubuntu LXDE Session
Ubuntu Openbox Session

Debian LXDE Session
but Debian Openbox Session
gives this error (gb.desktop: unable to found mime database)
Null Object

   Dim File As String
   Dim i As Integer
   Dim sPath As String
   Dim img As Image

  Directory = user.home

  For Each File In Dir (Directory, "*", gb.File)

     sPath = Directory & / file
     img = DesktopMime.FromFile (sPath). GetIcon (48)
     i Inc
     IconView1.Add (i, file, img.Picture)

   Next

How I can fix this problem in Debian Openbox Session.

Regards

Herberth Guzmán



More information about the User mailing list