DiskSpace applet crashes when mount point is changed

Bug #1117107 reported by Michael McCarrey
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Individual Screenlets
New
Undecided
Unassigned

Bug Description

On Mageia-1, w/screenlets-0.1.6, changing the mount point gen's the following when the applet is started/restarted:

Loading instances from cache
CachingBackend: Loading <DiskSpace1>
opacity='1.0'
scale='1.0'
theme_name='default'
is_sticky='True'
width='220'
mount_points='['/home']'
is_widget='False'
height='66'
draw_buttons='True'
keep_above='False'
lock_position='False'
is_dragged='False'
keep_below='True'
y='27'
x='529'
update_interval='20'
skip_taskbar='True'
Found a running session of DiskSpace, adding new instance by service.
Error in screenlets.services.get_service_by_name: org.freedesktop.DBus.Error.ServiceUnknown: The name org.screenlets.DiskSpace was not provided by any .service files
Screenlet has already been added to /tmp/screenlets/screenlets.mikem.running
Loading instances in: /home/mikem/.config/screenlets/DiskSpace/default/
Loaded config from: DiskSpace1.ini
Set options in DiskSpaceScreenlet
Traceback (most recent call last):
  File "./DiskSpaceScreenlet.py", line 295, in <module>
    screenlets.session.create_session(DiskSpaceScreenlet)
  File "/usr/lib/python2.7/site-packages/screenlets/session.py", line 480, in create_session
    session.start()
  File "/usr/lib/python2.7/site-packages/screenlets/session.py", line 245, in start
    if self.__load_instances():
  File "/usr/lib/python2.7/site-packages/screenlets/session.py", line 404, in __load_instances
    self.__restore_options_from_backend(sl, self.path+filename)
  File "/usr/lib/python2.7/site-packages/screenlets/session.py", line 430, in __restore_options_from_backend
    setattr(screenlet, opt.name, opt.on_import(opts[o]))
  File "/usr/lib/python2.7/site-packages/screenlets/__init__.py", line 1101, in __setattr__
    self.on_after_set_atribute(name, value)
  File "./DiskSpaceScreenlet.py", line 117, in on_after_set_atribute
    self.on_set_mount_points()
  File "./DiskSpaceScreenlet.py", line 137, in on_set_mount_points
    self.timeout()
  File "./DiskSpaceScreenlet.py", line 194, in timeout
    self.recalculate_size()
  File "./DiskSpaceScreenlet.py", line 152, in recalculate_size
    self.window.resize(self.width * self.scale, self.height * self.scale)
TypeError: integer argument expected, got float

[1]+ Exit 1 ./DiskSpaceScreenlet.py

This happens whenever /home/username/.config/screenlets/DiskSpace/default/ contains a mount point configuration other than the default one.

Revision history for this message
Rastko Karadzic (rastkokaradzic) wrote :

DIskSpace screenlet uses df to obtain free space on a mounted partition. You should provide absolute path to the root directory of the mounted partition.

Regards,
Rastko Karadzic

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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