status file deleted, byobu-config crashes
Bug #1286249 reported by
Jan Klepek
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
byobu |
Fix Released
|
High
|
Dustin Kirkland | ||
Fedora |
Fix Released
|
Undecided
|
|||
byobu (Ubuntu) |
Fix Released
|
High
|
Dustin Kirkland | ||
Trusty |
Fix Released
|
High
|
Dustin Kirkland |
Bug Description
When ~/.byobu/status is removed then byobu-config crashes during save of changed notifications.
Attached patch which tests if file exist, if not, it reads default status file.
For write, it tests if file exists, if not, then it uses "a+" mode which creates new file.
This patch was included already in fedora
Changed in byobu: | |
status: | New → In Progress |
importance: | Undecided → High |
assignee: | nobody → Dustin Kirkland (kirkland) |
Changed in byobu: | |
status: | Fix Committed → Fix Released |
Changed in fedora: | |
importance: | Unknown → Undecided |
status: | Unknown → Fix Released |
To post a comment you must log in.
Description of problem:
1 try to remove time in byobu-config
2 choose <Apply>
3 push the Enter button
Version-Release number of selected component:
byobu-5.69-2.fc20
Additional info: byobu/include/ config. py byobu/include/ config. py 301.fc20. x86_64
reporter: libreport-2.1.12
cmdline: python /usr/libexec/
executable: /usr/libexec/
kernel: 3.11.10-
runlevel: N 5
type: Python
uid: 0
Truncated backtrace: py:215: writestatus: IOError: [Errno 2] 没有那个文件或目录: '/root/ .byobu/ status'
config.
Traceback (most recent call last): byobu/include/ config. py", line 385, in <module> byobu/include/ config. py", line 374, in main snackScreen, size) byobu/include/ config. py", line 248, in togglestatus (itemlist) byobu/include/ config. py", line 215, in writestatus .byobu/ status'
File "/usr/libexec/
main()
File "/usr/libexec/
tag = togglestatus(
File "/usr/libexec/
writestatus
File "/usr/libexec/
f = open(path, "r")
IOError: [Errno 2] 没有那个文件或目录: '/root/
Local variables in innermost frame: .byobu/ status' available' : 1, 'reboot_required': 1, 'date': 0, 'ip_address': 0, 'network': 0, 'processes': 0, 'time_utc': 0, 'cpu_temp': 0, 'fan_speed': 0, 'rcs_cost': 0, 'time': 1, 'release': 1, 'whoami': 0} available' ], [1, 'uptime'], [0, 'users'], [0, 'whoami'], [0, 'wifi_quality']]
i: [0, 'wifi_quality']
path: '/root/
status: {'ec2_cost': 0, 'battery': 0, 'cpu_count': 1, 'services': 0, 'session': 0, 'entropy': 0, 'logo': 1, 'disk': 0, 'uptime': 1, 'cpu_freq': 1, 'disk_io': 0, 'arch': 0, 'hostname': 0, 'custom': 0, 'swap': 0, 'memory': 1, 'apport': 0, 'mail': 0, 'wifi_quality': 0, 'distro': 0, 'load_average': 1, 'raid': 1, 'users': 0, 'updates_
key: 'tmux_left'
items: [[0, 'apport'], [0, 'arch'], [0, 'battery'], [1, 'cpu_count'], [1, 'cpu_freq'], [0, 'cpu_temp'], [0, 'custom'], [0, 'date'], [0, 'disk'], [0, 'disk_io'], [0, 'distro'], [0, 'ec2_cost'], [0, 'entropy'], [0, 'fan_speed'], [0, 'hostname'], [0, 'ip_address'], [1, 'load_average'], [1, 'logo'], [0, 'mail'], [1, 'memory'], [0, 'network'], [0, 'processes'], [1, 'raid'], [0, 'rcs_cost'], [1, 'reboot_required'], [1, 'release'], [0, 'services'], [0, 'session'], [0, 'swap'], [1, 'time'], [0, 'time_utc'], [1, 'updates_