I have tested in AppGameKit V2.0.17 and Ubuntu 14.04 and I'm still having problem with the command.
Now I get the window displayed so I can choose a file, but it doesn't seems like the selected file get copied to the app directory or it name get returned.
This is the code I'm trying:
global path as string
do
If GetRawMouseLeftPressed() then path = ChooseRawFile("*.jpg;*.png")
If NOT path = ""
LoadImage(1,path)
CreateSprite(2,1)
SetSpritePosition(2,0,0)
EndIf
If path = ""
Print("empty path")
Else
Print(path)
EndIf
Sync()
loop
And the only thing I see is the "empty path" printed on the screen. The selected image never get loaded.
I don't get any error message in debug window nor terminal.
Only a single time I have received this error message in the terminal:
(zenity:10982): Gtk-WARNING **: Attempting to read the recently used resources file at `/home/ubuntu/.local/share/recently-used.xbel', but the parser failed: Failed to open file '/home/ubuntu/.local/share/recently-used.xbel': Permission denied.
But only a single time, most of the times I don't get any error message but I don't even get any selected images copied and loaded.
If I run zenity from terminal using the zenity --file-selection command, it returns the path and name of the selected file.