SilkyJackson / tintwizard

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

tintwizard crashes on startup when ~/.config/tint2/ is not available #40

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Install tintwizard
2. Launch it before launching tint2, so ~/.config/tint2/ has not yet been 
created.
3. Crash!

What is the expected output? What do you see instead?

$ LANG=C tintwizard.py 
Traceback (most recent call last):
  File "/usr/bin/tintwizard.py", line 2209, in <module>
    tw = TintWizardGUI()
  File "/usr/bin/tintwizard.py", line 187, in __init__
    self.readConf()
  File "/usr/bin/tintwizard.py", line 1732, in readConf
    self.writeConf()
  File "/usr/bin/tintwizard.py", line 2057, in writeConf
    f = open(pathName+"tintwizard.conf", "w")
IOError: [Errno 2] No such file or directory: 
'/home/chris/.config/tint2/tintwizard.conf'

What version of the product are you using? On what operating system?
0.3.4 with python 2.7 on Fedora 14. 

Please provide any additional information below.
It's not the missing config file ~/.config/tint2/tintwizard.conf that causes 
the crash but the missing directory ~/.config/tint2/.

Original issue reported on code.google.com by christop...@gmail.com on 31 Oct 2010 at 11:05

GoogleCodeExporter commented 8 years ago
It also happens to me, but only when the file ~/.config/tint2/tintwizard.conf 
is missing:

[german@skytux ~]$ tintwizard.py 
Traceback (most recent call last):
  File "/usr/bin/tintwizard.py", line 2209, in <module>
    tw = TintWizardGUI()
  File "/usr/bin/tintwizard.py", line 187, in __init__
    self.readConf()
  File "/usr/bin/tintwizard.py", line 1732, in readConf
    self.writeConf()
  File "/usr/bin/tintwizard.py", line 2057, in writeConf
    f = open(pathName+"tintwizard.conf", "w")
IOError: [Errno 2] No such file or directory: 
'/home/german/.config/tint2/tintwizard.conf'

[german@skytux ~]$ python -V
Python 2.6.4

[german@skytux ~]$ cat /etc/fedora-release 
Fedora release 13 (Goddard)

Original comment by gra...@gmail.com on 2 Nov 2010 at 12:14