Ca fait 2 jours que je tente de faire fonctionner adesklets mais en vain, donc je souhaiterai un coup de main :
.adesklets
# This is adesklets configuration file.
#
# It gets automatically updated every time a desklet main window
# parameter is changed, so avoid manual modification whenever
# a desklet is running. In fact, manual changes to this file
# should rarely be needed. See `info adesklets'.
config.txt de SystemMonitor :
# -*- coding: ASCII -*-
#
# This is SystemMonitor.py desklet configuration file. Yes, it is complicated.
#
# There is one main key "meters" which has a list of meters to include. Each
# meter is a 2-tuple of the meter type, and the configuration for the meter.
# Presently available meter types are: CPUMeter, MemoryMeter, NetworkMeter,
# DiskIOMeter, DiskSpaceMeter, TemperatureMeter, and BatteryMeter.
# Those should all be self explanatory as to what they measure.
#
# CPU, Memory, Swap and DiskSpace meters are straightforward, just provide the
# images, font type and size, and padding internal to the meter. Optionally
# you can add an update speed, to specify that this meter shoould check for
# updates less often. Update speed should be set to the number of seconds
# between updates.
#
# Network and DiskIO meters require additional information: NetworkMeters
# require an interface name. This must match up with a network interface,
# so names should be of the sort eth0, ppp0, etc. If you have multiple
# interfaces, just add multiple network meters, one for each interface. You
# must also specify maximum download and upload speeds in kilobytes per second.
# The scale is logarithmic, so if you overshoot it doesn't matter much -
# undershooting will make the meter max out all the time - be generous. DiskIO
# is similar, except you now need to supply the disk name (hda, hdb, hdc etc.)
# and max read and write speeds. Again, better not to underestimate those
# figures.
#
# TemperatureMeter and BatteryMeter require ACPI support. If you don't have
# ACPI support these meters will simply display as blank, so just comment them
# out of the configuration. For TemperatureMeter you must supply the file
# to read for temperatures (/proc/acpi/thermal_zone/THM/temperature on my
# system), and the max_temp (in degrees celsius) to provide some scale.
# BatteryMeter requires you to provide two acpi files, the info and state
# files. You also need to provide a label, as multiple batteries are
# supported (simply add multiple BatteryMeters with multiple labels and
# different info and state files).
#
# For meters that have multiple meters/krells (Network, DiskIO, DiskSpace)
# you can specify a list of images to use for the krells. The list must be
# the same length as the number of meters/krells to be displayed (2 in the
# case of Network and DiskIO, variable depending on your patition config
# in the case of DiskSpace).
#
# There are also keys for the background image set (a set of three images,
# given as a list), the background colour (what colour the background of the
# meter blocks is), and the text colour. You can also specify a global
# update speed for all meters. If the desklet is using too much CPU for you
# then throttle back the update speed to update every 5 seconds or so, which will
# drastically decrease CPU use.
#
# An alternate configuration could look like:
# {"meters" : [
# ("CPUMeter",
# {
# "icon" : "images/icons/cpu.png",
# "trough" : "images/shared/trough.png",
# "krell" : "images/shared/krell_blue.png",
# "meter font name" : "Vera",
# "meter font size" : 11,
# "vertical padding" : 4,
# "horizontal padding" : 12
# }
# ),
# ("DiskSpaceMeter",
# {
# "icon" : "images/icons/disk.png",
# "trough" : "images/shared/trough_small.png",
# "krell" : "images/shared/krell_green_small.png",
# "meter font name" : "Vera",
# "meter font size" : 7,
# "vertical padding" : 2,
# "horizontal padding" : 12
# }
# ),
# ("NetworkMeter",
# {
# "interface name" : "ppp0",
# "max down speed" : 8,
# "max up speed" : 5,
# "icon" : "images/icons/network-ppp.png",
# "trough" : "images/shared/trough.png",
# "krell" : ["images/shared/krell_green_small.png",
# "images/shared/krell_red_small.png"],
# "meter font name" : "Vera",
# "meter font size" : 7,
# "vertical padding" : 4,
# "horizontal padding" : 8
# }
# )
# ],
# "update_speed" : 5
# }
#
id0 = {'background colour': (210, 210, 210, 130),
'background images': ['images/shared/bg_top.png',
'images/shared/bg_middle.png',
'images/shared/bg_bottom.png'],
'meters': [('CPUMeter',
{'horizontal padding': 8,
'icon': 'images/icons/cpu.png',
'krell': 'images/shared/krell.png',
'meter font name': 'Vera',
'meter font size': 8,
'trough': 'images/shared/trough.png',
'vertical padding': 8}),
('MemoryMeter',
{'horizontal padding': 8,
'icon': 'images/icons/memory.png',
'krell': 'images/shared/krell.png',
'meter font name': 'Vera',
'meter font size': 8,
'trough': 'images/shared/trough.png',
'update speed': 10,
'vertical padding': 8}),
('SwapMeter',
{'horizontal padding': 8,
'icon': 'images/icons/swap.png',
'krell': 'images/shared/krell_blue.png',
'meter font name': 'Vera',
'meter font size': 8,
'trough': 'images/shared/trough.png',
'update speed': 30,
'vertical padding': 8}),
('NetworkMeter',
{'horizontal padding': 8,
'icon': 'images/icons/network.png',
'interface name': 'eth0',
'krell': ['images/shared/krell_green_small.png',
'images/shared/krell_red_small.png'],
'max down speed': 400,
'max up speed': 80,
'meter font name': 'Vera',
'meter font size': 7,
'trough': 'images/shared/trough_small.png',
'update speed': 2,
'vertical padding': 4}),
('DiskIOMeter',
{'disk name': 'hda',
'horizontal padding': 8,
'icon': 'images/icons/disk.png',
'krell': ['images/shared/krell_green_small.png',
'images/shared/krell_red_small.png'],
'max read speed': 10240,
'max write speed': 10240,
'meter font name': 'Vera',
'meter font size': 7,
'trough': 'images/shared/trough_small.png',
'update speed': 2,
'vertical padding': 4}),
('DiskSpaceMeter',
{'horizontal padding': 8,
'icon': 'images/icons/diskfree.png',
'krell': 'images/shared/krell_blue_small.png',
'meter font name': 'Vera',
'meter font size': 6,
'trough': 'images/shared/trough_small.png',
'update speed': 60,
'vertical padding': 2})],
'text colour': (0, 0, 0, 200),
'update speed': 1}
id20 = {'background colour': (210, 210, 210, 130),
'background images': ['images/shared/bg_top.png',
'images/shared/bg_middle.png',
'images/shared/bg_bottom.png'],
'meters': [('CPUMeter',
{'horizontal padding': 8,
'icon': 'images/icons/cpu.png',
'krell': 'images/shared/krell.png',
'meter font name': 'Vera',
'meter font size': 8,
'trough': 'images/shared/trough.png',
'vertical padding': 8}),
('MemoryMeter',
{'horizontal padding': 8,
'icon': 'images/icons/memory.png',
'krell': 'images/shared/krell.png',
'meter font name': 'Vera',
'meter font size': 8,
'trough': 'images/shared/trough.png',
'update speed': 10,
'vertical padding': 8}),
('SwapMeter',
{'horizontal padding': 8,
'icon': 'images/icons/swap.png',
'krell': 'images/shared/krell_blue.png',
'meter font name': 'Vera',
'meter font size': 8,
'trough': 'images/shared/trough.png',
'update speed': 30,
'vertical padding': 8}),
('NetworkMeter',
{'horizontal padding': 8,
'icon': 'images/icons/network.png',
'interface name': 'eth0',
'krell': ['images/shared/krell_green_small.png',
'images/shared/krell_red_small.png'],
'max down speed': 400,
'max up speed': 80,
'meter font name': 'Vera',
'meter font size': 7,
'trough': 'images/shared/trough_small.png',
'update speed': 2,
'vertical padding': 4}),
('DiskIOMeter',
{'disk name': 'hda',
'horizontal padding': 8,
'icon': 'images/icons/disk.png',
'krell': ['images/shared/krell_green_small.png',
'images/shared/krell_red_small.png'],
'max read speed': 10240,
'max write speed': 10240,
'meter font name': 'Vera',
'meter font size': 7,
'trough': 'images/shared/trough_small.png',
'update speed': 2,
'vertical padding': 4})],
'text colour': (0, 0, 0, 200),
'update speed': 1}
id21 = {'background colour': (210, 210, 210, 130),
'background images': ['images/shared/bg_top.png',
'images/shared/bg_middle.png',
'images/shared/bg_bottom.png'],
'meters': [('DiskSpaceMeter',
{'horizontal padding': 8,
'icon': 'images/icons/diskfree.png',
'krell': 'images/shared/krell_blue_small.png',
'meter font name': 'Vera',
'meter font size': 6,
'trough': 'images/shared/trough_small.png',
'update speed': 60,
'vertical padding': 2})],
'text colour': (0, 0, 0, 200),
'update speed': 1}
Quand je lance SystemMonitor, il s'affiche que très brièvement, en rajoutant -r à la fin j'ai ça :
kageryuzan@CyKoH:~$ /home/kageryuzan/.desklets/SystemMonitor-0.1.3/SystemMonitor.py -r
Do you want to (r)egister this desklet or to (t)est it? t
Now testing...
============================================================
If you do not see anything (or just an initial flicker
in the top left corner of your screen), try `--help',
and see the FAQ: `info adesklets'.
============================================================
Traceback (most recent call last):
File "/home/kageryuzan/.desklets/SystemMonitor-0.1.3/SystemMonitor.py", line 42, in ?
import adesklets
File "/usr/lib/python2.4/site-packages/PIL/__init__.py", line 43, in ?
adesklets.error_handler.ADESKLETSError: adesklets process exited -
Exception exceptions.AttributeError: <exceptions.AttributeError instance at 0xb7d8e34c> in <bound method _Communicator.__del__ of <adesklets.communicator._Communicator instance at 0xb7c659ec>> ignored
Que faire ? 🙁