Re: missing workflows with gnome-shell



Il giorno lun, 07/02/2011 alle 22.04 +0100, Alessandro Crismani ha
scritto:
> Il giorno lun, 07/02/2011 alle 10.21 +0100, Thomas Bouffon ha scritto:
> [...]
> 
> I'm copy and pasting it here, it's not that long. It is a slightly
> modified version of your extension (renamed variables and minor edits, I
> rewrote it for learning purposes, hope you don't mind), that does not
> use Gconf (I planned to add class and titles and I wanted an easily
> modifiable config, so I'm directly using an array in the extension).
> Here it is, and it works with an up to today build (2.91.6):
> 
> [...]
> 
> That's the problem. I'm clueless about Gsettings and how to store into|
> use|abuse it. As usual, I should do a little bit of research, but I have
> yet to find an agreement with my to-do list :)

I've taken the liberty to include your code in gnome-shell-extensions,
after some modifications to make it work with GSettings.
If you want to play with it, it is the auto-move-windows extension. The
set of applications can be modified with:
gsettings set org.gnome.shell.extensions.auto-move-windows
application-list "['app-id.desktop:3']"
(I'm using desktop files, obtained using ShellWindowTracker /
ShellAppSystem, which are more reliable than window classes).

You're example should roughly be
gsettings set org.gnome.shell.extensions.auto-move-windows
application-list
"['rhythmbox.desktop:2','evolution.desktop:1','fedora-liferea.desktop:1']"

Giovanni



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]