Menu

#1 error when character "=" in filename

open
nobody
None
5
2005-06-22
2005-06-22
Jens
No

When a filename contains the equals-sign "=", bgconfig
and bgchanger show the following error:

File "/usr/local/bin/bgconfig", line 247, in ?
configurator = BgConfigurator()
File "/usr/local/bin/bgconfig", line 87, in __init__
self.config = BgConfig()
File "/usr/share/bgchanger/lib/bgconfig.py", line 28,
in __init__
(key, value) = line.split("=", 2)
ValueError: too many values to unpack

For example, the file:
/data/wallpapers/A=B.jpg

would create this line in the conf-file:
pic=/data/wallpapers/A=B.jpg

Jens

Discussion


Log in to post a comment.

MongoDB Logo MongoDB