Problems at use | Problèmes à l'utilisation
Subscription date : 02 December 2007
Messages : 170
|
Je savais pas où poster ça, c'est plus une demande de truc et astuce.
Voilà, j'aimerais avoir une icone dans cairo dock (un launcher) qui fait s'afficher la widget layer de compiz (un peu comme l'icone de dashboard sur Mac OS ;))
Quelqu'un aurait une idée de comment faire ca?
(on pourrait le rajouter dans les trucs et astuces ensuite)
Merci!
/glattering |
kawaji, Monday 07 April 2008 à 13:42
|
|
Subscription date : 18 March 2008
Messages : 42
|
Sorry for my broken english post.
I'd like to know, too.
I have just replied to almost the same question in the Ubuntu forum. Please check this thread.
http://ubuntuforums.org/showthread.php?t=744668
The bash script file to toggle WidgetLayer can be run from a launcher of AWN (command : /fullpath/to/xxx.sh) , but not from a launcher of Cairo-Dock. ( I had installed AWN just only for posting replies to ubuntu forum. )
I also moved the file to /usr/local/bin , and specified the filename in a command entry box of a launcher on cairo-dock.
but not succeed to run it. |
Subscription date : 30 November 2007
Messages : 17118
|
I try to summarize the problem :
you have a script (/path/to/script.sh), that is "chmod +x" and is working fine.
you create a launcher in the dock from scratch.
in the "Command" entry box, you write /path/to/script.sh, and the apply.
and then clicking on the launcher dosesn't launch the script ? |
kawaji, Monday 07 April 2008 à 14:16
|
|
Subscription date : 18 March 2008
Messages : 42
|
Yes, that's exactly what I'm trying to say.
P.S.
thank you for updating lang file. |
Subscription date : 30 November 2007
Messages : 17118
|
kochira koso
ok I'll try to do the same and guess what's wrong. |
Subscription date : 02 December 2007
Messages : 170
|
kawaji, thank you for the link to the Ubuntu forum topic!
I'll try as well tonight and I'll let you know whether it works or not. |
Subscription date : 02 December 2007
Messages : 170
|
ok, i tried, same problem here.
the script works fine when launched from a terminal.
creating a launcher in cairo-dock does nothing when launched.
same problem though with a launcher created on the desktop by the right click -> create new launcher command...
so maybe it's not a cairo dock issue, but rather a general launcher issue with scripts, or maybe only sh scripts, i haven't tried other kind of scripts...
(thought: the svn update script works in a launcher, right?) |
Subscription date : 30 November 2007
Messages : 17118
|
so I've tried the method :
I make the script cairo-dock/compiz-expo.sh :
#!/bin/sh
dbus-send --type=method_call --dest=org.freedesktop.compiz /org/freedesktop/compiz/expo/allscreens/expo org.freedesktop.compiz.activate string:'root' int32:`xwininfo -root | grep id: | awk '{ print $4 }'`
chmod +x on it, then I create a launcher in the dock, specify /opt/cairo-dock/trunk/compiz-expo.sh (its path), set any icon and any name, validate. At last i click on the launcher -> works perfectly ! |
Subscription date : 02 December 2007
Messages : 170
|
fabounet, did you try to make the script for widget layer taking what is presented in the link kawaji provided?
(I copied/pasted blindly what was said there, it didn't work.. I'll try your command line for expo tonight) |
kawaji, Tuesday 08 April 2008 à 12:27
|
|
Subscription date : 18 March 2008
Messages : 42
|
Merci pour vos infos,
@glattering
Sur mon desktop gnome, WidgetLayer est affichée en cliquant sur une icone.
....Anyway,
I've found script files, even in other directories, can be excuted from cairo-dock launchers.
You have to create script launchers from scratch like fabounet said in the above post.
Select ' Add a new launcher ' from cairo-dock menu -> Click ' New ' button to close a file browse window -> Edit name, command & icon name in ' new launcher ' properties window.
New launchers do not work if they are created by drag & drop script files or selecting files in the file browse window.
Strange files seems to be generated to /.cairo-dock/current_theme/launchers , which cairo-dock can not correctly read.
I think it would be nice if launchers for script files created by such ways also work well in newer cairo-dock. |
Subscription date : 30 November 2007
Messages : 17118
|
Kawaji do you speak some french ?
I'll try to modify existing launcher (that is, change the command to a script's path), logically it should work.
Anyway this is a great trick for Compiz users, it should be on the wikis ! |
ppmt, Tuesday 08 April 2008 à 18:02
|
|
Subscription date : 29 November 2007
Messages : 3520
|
OK I will do it but I must admit I don't really understand the trick? |
Guest, Tuesday 08 April 2008 à 22:01
|
|
|
ok i can add it, when it's finalized |
Guest, Tuesday 08 April 2008 à 22:17
|
|
|
Ok, by creating a launcher from scratch it's working just fine!! thank you kawaji!
/glattering |
ppmt, Tuesday 08 April 2008 à 22:25
|
|
Subscription date : 29 November 2007
Messages : 3520
|
glattering the new vilraleur  |
Subscription date : 02 December 2007
Messages : 170
|
ppmt je te prrrrrrrt
Ok j'ai rajouté ça au wiki, chez moi ça fonctionne nickel:
http://www.glx-dock.org/ww_page.php?p=Tip%20and%20Tricks&lang=en
Pour le français, je compte sur la traduction de ppmt (j'ai eu la flemme, j'ai fait que l'anglais ) |
ppmt, Tuesday 08 April 2008 à 23:28
|
|
Subscription date : 29 November 2007
Messages : 3520
|
ah non moi je ne fais pas dans la trad en francais...je laisse ca Rhinopierroce
je plaisante ...je verrais une fois que je l'aurais teste pour comprendre |
Subscription date : 29 November 2007
Messages : 1583
|
C'est pas possible ça ! Quand le sujet est en français vous parlez français et quand il est en anglais vous parler français |
ppmt, Wednesday 09 April 2008 à 03:16
|
|
Subscription date : 29 November 2007
Messages : 3520
|
c'est au cas ou Tdey lirait ce thread....
Je suis pour l'apprentissage par le grand plongeon....
If only coz_ and Anubis could start posting in Italian
Anyway I tried that trick and it has been said the launcher has to be created from scratch. If you drop the script from Nautilus the command start with file:// so I guess it is not consider as a script but rather a file!
I also decided to try something else and it has a weird behaviour....I will also post in the compiz applet section
Anyway I tried to create a launcher from scratch from the dock that is coming with the compiz-icon applets and instead of activating the Expo mode it just launches CCSM
Even more strange. It actually execute the program to the left of my launcher...so i I move the launcher between th Emerald icon and the restart WM then it will start the emerald manager!!
Why? |
Subscription date : 02 December 2007
Messages : 170
|
Euh j'ai pas tout suivi ppmt, tu as suivi ce que j'ai mis dans le wiki et ça marche pas? |
Problems at use | Problèmes à l'utilisation
|