GNOME Bugzilla – Bug 689840
InstallerMedia.get_device_from_path issue
Last modified: 2016-03-31 13:58:37 UTC
InstallerMedia.get_device_from_path uses File.new_for_commandline_arg (path), which is not the right way for anything other than command line arguments. Its argument assumed to be in the filename encoding and fully shell expanded. Anything comming from a ui is more likely UTF8 and needs conversion via, g_file_parse_name(), or is a real pathname that needs no special handling and should use new_for_path().
Created attachment 241086 [details] [review] Remove wrong usage of GLib.File.new_for_commandline_arg Use GLib.File.new_for_path/uri instead as path/URI is not coming from commandline argument.
Attachment 241086 [details] pushed as 3c1b44c - Remove wrong usage of GLib.File.new_for_commandline_arg