Guest, Friday 07 June 2013 à 16:14
|
|
|
Hi!
How to test the Python example provided in documentation?
I run it in two different computers, but the result is:
File "example.py", line 38, in <module>
from CDApplet import CDApplet
File "/usr/lib/python2.7/dist-packages/CDApplet.py", line 52, in <module>
translations = gettext.translation(GETTEXT_NAME, LOCALE_DIR)
File "/usr/lib/python2.7/gettext.py", line 484, in translation
raise IOError(ENOENT, 'No translation file found for domain', domain)
IOError: [Errno 2] No translation file found for domain: 'cairo-dock-plugins-extra'
Thanks! |
Subscription date : 30 November 2007
Messages : 17118
|
You have to put your applet in ~/.config/cairo-dock/third-party :
this is from the demo_python applet located in the sources in cairo-dock-plug-ins/Dbus/demos/demo_python/demo_python :
# The name of this applet is "demo_python"; it is placed in a folder named "demo_python", with a file named "auto-load.conf" which describes it.
# Copy this folder into ~/.config/cairo-dock/third-party to let the dock register it automatically.
# In the folder we have :
# - "demo_python" : the executable script, without extension
# - "demo_python.conf" : the default config file
# - "auto-load.conf" : the file describing our applet
# - "icon" : the default icon of the applet (optionnal)
# - "preview" : a preview of this applet (optionnal)
Edit: I've updated the wiki, it should be more clear now |
Guest, Friday 07 June 2013 à 16:52
|
|
|
Okay, I discover it after posting. Sorry!
To test it I had to add to the dock panel, isn't it?
For .conf there's a tutorial?
Thank you! |
|