gmixer crashes when ~/.Xauthority is missing

Bug #505459 reported by Christoph Wickert on 2010-01-10
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gmixer
Undecided
Unassigned
Fedora
Fix Released
Medium

Bug Description

gmixer crashes on startup when ~/.Xauthority is missing:

backtrace
-----
Summary: TBbe67add7 xauth.py:46:__init__:XauthError: ~/.Xauthority: [Errno 2]
No such file or directory: '/home/chris/.Xauthority'

Traceback (most recent call last):
  File "/usr/lib64/python2.6/site-packages/gtktrayicon.py", line 114, in
on_realize
    xdisplay = self.get_xdisplay()
  File "/usr/lib64/python2.6/site-packages/gtktrayicon.py", line 161, in
get_xdisplay
    xdisplay = Xdisplay.Display(name)
  File "/usr/lib/python2.6/site-packages/Xlib/display.py", line 85, in __init__
    self.display = _BaseDisplay(display)
  File "/usr/lib/python2.6/site-packages/Xlib/display.py", line 67, in __init__
    apply(protocol.display.Display.__init__, (self, ) + args, keys)
  File "/usr/lib/python2.6/site-packages/Xlib/protocol/display.py", line 53, in
__init__
    name, host, displayno)
  File "/usr/lib/python2.6/site-packages/Xlib/support/connect.py", line 96, in
get_auth
    return mod.get_auth(sock, dname, host, dno)
  File "/usr/lib/python2.6/site-packages/Xlib/support/unix_connect.py", line
100, in new_get_auth
    au = xauth.Xauthority()
  File "/usr/lib/python2.6/site-packages/Xlib/xauth.py", line 46, in __init__
    raise error.XauthError('~/.Xauthority: %s' % err)
XauthError: ~/.Xauthority: [Errno 2] No such file or directory:
'/home/chris/.Xauthority'

Local variables in innermost frame:
self: <Xlib.xauth.Xauthority instance at 0x2be8170>
err: [Errno 2] No such file or directory: '/home/chris/.Xauthority'
filename: /home/chris/.Xauthority

Of course there should always be an .Xauthority file, but gmixer shouldn't crash if it is not available

Changed in fedora:
importance: Unknown → Medium
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.