GoogleCodeArchives / editra

Automatically exported from code.google.com/p/editra
Other
0 stars 0 forks source link

File name specified as URI #374

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Right click file to open in Thunar (XFCE file manager)
2. Click on "Open With Other Application..."
3. Select Editera

What is the expected output? What do you see instead?
Expecting selected file to open in Editera, instead, Editera displays
window with selected file with no content.

IMPORTANT!!! Please answer these questions for any and ALL bug reports

What version of the product are you using? On what operating system?
Xubuntu 9.04

What method of install was your version installed with (Binary/Source)?
Source

If from source: What version of python and wxPython are you using?
2.8.9

Please provide any additional information below.

Depending on config, Thunar passes file name in URI form (e.g.
file:///Users/foo/bar.txt), but Editera expects file paths specified on the
command to be in pathname form. However, when this occurs, no error dialog
was generated to indicate file not found; a blank document was simply
opened with specified filename.

Problem can be fixed by using urllib2.url2pathname() then remove 'file://'
in the beginning of the file path in __init__() of Editera class just
before ed_ipc.SendCommands(), as well as in _Main() function, before
frame.DoOpen(). I'm not familiar with the structure of Editera code, but
this would be more of a quick hack to fix the problem, not really a
systematic appreach.

Original issue reported on code.google.com by echtk...@gmail.com on 11 Jun 2009 at 10:06

GoogleCodeExporter commented 9 years ago
Will look into fixing for next release.

Thanks,

Cody

Original comment by CodyPrec...@gmail.com on 12 Jun 2009 at 2:02

GoogleCodeExporter commented 9 years ago
Should be fixed in svn now. Needs more testing for confirmation.

cody

Original comment by CodyPrec...@gmail.com on 14 Jun 2009 at 4:43