Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 08/08/2006, à 01:34

m0pi

[Résolu] Lancement de desklets avec Adesklets

Bonjour à tous,

Je viens vous demander un coup de main au sujet de mon adesklets.
J'ai suivi le tuto http://forum.ubuntu-fr.org/viewtopic.php?id=32064 et j'ai installé la version de adesklets via synaptic.
Je tape ensuite la commande

adesklets --nautilus -d 5

et je teste un desklet.

Malheureusement, tous les desklets me revoient des erreurs.

Exemple avec "asimpleclock"

tom@Dapper:~$ adesklets --nautilus -d 5
tom@Dapper:~$ cd desklets/asimpleclock-0.0.3/
tom@Dapper:~/desklets/asimpleclock-0.0.3$ sh asimpleclock.py
asimpleclock.py: line 50:
--------------------------------------------------------------------------------
Copyright (C) 2005 Mike Pirnat <exilejedi@users.sourceforge.net>

Released under the GPL, version 2.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the Software), to
deal in the Software without restriction, including without limitation the
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
sell copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies of the Software and its documentation and acknowledgment shall be
given in the documentation and software packages that this Software was
used.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
--------------------------------------------------------------------------------

This is a simple little desklet that displays a text-based digital clock.

The font, font size, font color, and time format are configurable.

The font color is specified as an HTML-style hexadecimal value, eg #FFFFFF for
white, #00FF00 for green, etc.

The most useful formatting strings for the time display are:

    %H  Hour (24-hour clock) as a decimal number [00,23].
    %I  Hour (12-hour clock) as a decimal number [01,12].
    %M  Minute as a decimal number [00,59].
    %p  Locale's equivalent of either AM or PM.
    %S  Second as a decimal number [00,61].

Though the complete lineup of Python strformat() formatting strings is available
if you happen to want additional options.  For a complete list, refer to:

    http://docs.python.org/lib/module-time.html

Like the other demo adesklets packages, you can just run this script from its
final location on your disk to start it.
: Nom de fichier trop long
from: can't read /var/mail/os
from: can't read /var/mail/os.path
asimpleclock.py: line 58: erreur de syntaxe près du jeton `(' inattendu
asimpleclock.py: line 58: `class Config(adesklets.ConfigFile):'
tom@Dapper:~/desklets/asimpleclock-0.0.3$

ou encore "weatherforecast"

tom@Dapper:~/desklets/weatherforecast-0.2.0$ sh weatherforecast.py
weatherforecast.py: line 38:
--------------------------------------------------------------------------------
Dmitry Goykolov <jeepston@mail.zp.ua>

Based on the weather desklet by Sylvain Fourmanoit <syfou@users.sourceforge.net>
and iWeather gDesklet by Michael Favia <garbage@insitesinc.com>

Copyright (C) Superkaramba's Liquid Weather ++ team
        for ALL the artwork (icons + background)
        The maintainer (also the main author I believe)
        is Matthew <dmbkiwi@yahoo.com>

Released under the GPL, version 2. Except the artwork, which is released
pursuant to the restrictions imposed by their authors.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the Software), to
deal in the Software without restriction, including without limitation the
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
sell copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies of the Software and its documentation and acknowledgment shall be
given in the documentation and software packages that this Software was
used.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

See COPYING file for details
--------------------------------------------------------------------------------
: Nom de fichier trop long
from: can't read /var/mail/time
from: can't read /var/mail/os
from: can't read /var/mail/os.path
weatherforecast.py: line 51: erreur de syntaxe près du jeton `(' inattendu
weatherforecast.py: line 51: `class Config(adesklets.ConfigFile):'

A savoir que j'ai essayé 4 ou 5 desklets, j'ai pu en faire marcher aucun.
Sinon j'ai aussi testé avec la version 0.6.1 de adesklets, sans succès hmm

Dernière modification par m0pi (Le 09/08/2006, à 00:47)

Hors ligne

#2 Le 08/08/2006, à 12:22

toma222

Re : [Résolu] Lancement de desklets avec Adesklets

Bonjour,

Juste une petite chose, quand tu lances ton desklet, tu tapes :

sh ton_desklet.py

or il faut plutôt faire :

./ton_desklet.py

ou à la rigueur :

python ton_desklet.py

Les desklets sont codés en python et non en bash.

Je ne sais pas si c'est la seule chose qui pose problème mais teste déjà avec ça.

Hors ligne

#3 Le 09/08/2006, à 00:46

m0pi

Re : [Résolu] Lancement de desklets avec Adesklets

Merci pour la précision (j'apprends un truc pour l'occaz ::P)

Sinon, je le faisais indirectement via nautilus quand je lançais dans une console (ce qu'explique ton tuto d'ailleurs).
Tout ça pour dire que je me suis ennervé sur adesklets pendant 2 soirs d'affilé pour rien.

Mon desklets apparaissait à peine en haut à gauche de mon écran.
Un tableau de bord le masquait ; les ombres de XGL ne m'ont pas aidé faut dire roll

Désolé pour ce faux problème et merci toma222 de m'avoir mit sur la voie cool

Hors ligne