JeffHoogland / ePad

A simple text editor written in python and elementary
GNU General Public License v3.0
4 stars 8 forks source link

epad fails to open empty files #2

Closed rbtylee closed 10 years ago

rbtylee commented 10 years ago

This is the version of epad in Bodhi 3.0rc1

bodhi:~$ ls
Documents  Pictures  Templates  Videos
Desktop     Downloads  Music          Public 
bodhi:~$  epad test
test
test
Traceback (most recent call last):
  File "/opt/ePad/ePad.py", line 313, in <module>
    GUI.launch(ourFile)
  File "/opt/ePad/ePad.py", line 300, in launch
    self.fileSelected(self.fileSelector, startingFile, True)
  File "/opt/ePad/ePad.py", line 157, in fileSelected
    self.mainEn.file_set(file_selected, ELM_TEXT_FORMAT_PLAIN_UTF8)
  File "entry.pyx", line 1532, in efl.elementary.entry.Entry.file_set (efl/elementary/entry.c:11071)
RuntimeError: Could not set file
bodhi:~$ touch test
bodhi:~$ epad test
test
test
Traceback (most recent call last):
  File "/opt/ePad/ePad.py", line 313, in <module>
    GUI.launch(ourFile)
  File "/opt/ePad/ePad.py", line 300, in launch
    self.fileSelected(self.fileSelector, startingFile, True)
  File "/opt/ePad/ePad.py", line 157, in fileSelected
    self.mainEn.file_set(file_selected, ELM_TEXT_FORMAT_PLAIN_UTF8)
  File "entry.pyx", line 1532, in efl.elementary.entry.Entry.file_set (efl/elementary/entry.c:11071)
RuntimeError: Could not set file