spesso vorremmo associare ad una particolare applicazione (o azione) una shortcut per poterla richiamare il più velocemente possibile, più o meno come si fa in windows per aprire al volo la finestra di explorer. Gnome per alcune azioni mette a diposizione il suo personale editor di shortcut (gnome-keybinding-properties), questo però è molto limitato e non permette l'aggiunta di nuove voci.

http://fullo.altervista.org/phpwiki/images/shortcut1.png

Per far ciò e necessario utilizzare il Gnome Configurator Editor (gconf-editor) che permette tra di modificare e gestire un gran numero di opzioni del window manager. Supponiamo a questo punto di voler far partire Mozilla premendo i tasti CTRL+ALT+m, a seguire una piccola guida su come dobbiamo agire. Innanzitutto facciamo partire gconf, stando attenti di utilizzare l'utente al quale vogliamo associare la scorciatoia, in quanto gconf associa ad ogni utente un differente registro di configurazione. Supponiamo quindi di voler far tutto con l'utente fullo

fullo@tartar# gconf-editor

poi dalla finestra dello gconf andiamo in:

apps --> metacity --> global_keybindings

http://fullo.altervista.org/phpwiki/images/shortcut2.png

qui selezioniamo run_command_2 (o comunque il primo disabilitato e quindi disponibile) e gli inseriamo lo shortcut deciso poco fa, quindi: "<Control><Alt>m" (state attenti all'uso di maiuscole/minuscole).

a questo punto andiamo nel menù

apps --> metacity --> keybinding_commands

http://fullo.altervista.org/phpwiki/images/shortcut3.png

e cerchiamo command_2 dove inseriremo il path completo dell'applicazione da noi scelta "/usr/bin/mozilla"

chiudiamo gconf e proviamo a premere la combinazione di tasti CTRL+ALT+M magicamente partirà mozilla! (se non dovesse funzionare controllate che la combinazione da voi scelta non sia già assegnata ad un altro comando o provate a far ripartire Gnome)

PHP Warnings

lib/WikiUser.php:59: Notice[8]: Only variables should be assigned by reference

lib/Template.php:112: Notice[8]: Only variables should be assigned by reference

lib/Template.php:114: Notice[8]: Only variables should be assigned by reference

lib/Template.php (In template 'html'):112: Notice[8]: Only variables should be assigned by reference

lib/Template.php (In template 'html'):114: Notice[8]: Only variables should be assigned by reference

lib/Template.php (In template 'html'):112: Notice[8]: Only variables should be assigned by reference

lib/Template.php (In template 'html'):114: Notice[8]: Only variables should be assigned by reference

lib/Template.php (In template 'body') (In template 'html'):112: Notice[8]: Only variables should be assigned by reference

lib/Template.php (In template 'body') (In template 'html'):114: Notice[8]: Only variables should be assigned by reference

lib/Template.php (In template 'top') (In template 'body') (In template 'html'):112: Notice[8]: Only variables should be assigned by reference

lib/Template.php (In template 'top') (In template 'body') (In template 'html'):114: Notice[8]: Only variables should be assigned by reference

lib/Template.php (In template 'body') (In template 'html'):112: Notice[8]: Only variables should be assigned by reference

lib/Template.php (In template 'body') (In template 'html'):114: Notice[8]: Only variables should be assigned by reference

lib/Template.php (In template 'browse') (In template 'body') (In template 'html'):112: Notice[8]: Only variables should be assigned by reference

lib/Template.php (In template 'browse') (In template 'body') (In template 'html'):114: Notice[8]: Only variables should be assigned by reference

lib/Template.php (In template 'browse-footer') (In template 'browse') (In template 'body') (In template 'html'):112: Notice[8]: Only variables should be assigned by reference

lib/Template.php (In template 'browse-footer') (In template 'browse') (In template 'body') (In template 'html'):114: Notice[8]: Only variables should be assigned by reference

lib/Template.php (In template 'actionbar') (In template 'browse-footer') (In template 'browse') (In template 'body') (In template 'html'):112: Notice[8]: Only variables should be assigned by reference

lib/Template.php (In template 'actionbar') (In template 'browse-footer') (In template 'browse') (In template 'body') (In template 'html'):114: Notice[8]: Only variables should be assigned by reference

lib/Template.php (In template 'body') (In template 'html'):112: Notice[8]: Only variables should be assigned by reference

lib/Template.php (In template 'body') (In template 'html'):114: Notice[8]: Only variables should be assigned by reference