View previous topic :: View next topic |
Author |
Message |
Dismantr Apprentice
Joined: 06 Jun 2007 Posts: 201
|
Posted: Thu Aug 16, 2007 8:01 am Post subject: [X11] Lancer une console avec une commande dedans (resolu) |
|
|
Bonjour,
Je cherche la syntaxe pour lancer une console par un clic sur son icône sous X avec une commande qui tourne dedans en standard dès le lancement. Je souhaite donc éditer la commande de lancement de la console pour ajouter la commande à effectuer.
J'ai beau chercher, je ne trouve pas la syntaxe pour faire cette opération toute simple... ça doit pourtant être facile...
Bref. Any help ?
Last edited by Dismantr on Thu Aug 16, 2007 8:45 am; edited 1 time in total |
|
Back to top |
|
|
Temet Advocate
Joined: 14 Mar 2006 Posts: 2586 Location: 92
|
Posted: Thu Aug 16, 2007 8:03 am Post subject: |
|
|
Hum, t'as essayé de faire un raccourci vers une application, tu mets ta commande (genre "top") et tu coches "lancer dans un terminal" (ou une console, j'ai que Xp sous la main là (taf)) ?? _________________ Full Gentoo powered. |
|
Back to top |
|
|
salamandrix Apprentice
Joined: 03 Aug 2006 Posts: 245
|
Posted: Thu Aug 16, 2007 8:16 am Post subject: |
|
|
Si tu utilises Konsole, il y a l'option -e permettant de lancer une commande à l'exécution de Konsole. Exemple :
édit : j'imagine que l'icône renverra vers un script. |
|
Back to top |
|
|
Dismantr Apprentice
Joined: 06 Jun 2007 Posts: 201
|
Posted: Thu Aug 16, 2007 8:21 am Post subject: |
|
|
J'y ai pensé, mais je cherche à mettre ça en place sous Window Maker...
Ton option, Temet, n'existe que pour sous Gnome il me semble, malheureusement.
salamandrix : Cette option ne fonctionne qu'avec Konsole j'imagine ? J'aimerais bien pourvoir continuer sous urxvt (rxvt-unicode)... |
|
Back to top |
|
|
salamandrix Apprentice
Joined: 03 Aug 2006 Posts: 245
|
Posted: Thu Aug 16, 2007 8:30 am Post subject: |
|
|
Effectivement c'est le man de Konsole qui me l'a donné, mais à priori est valable aussi pour urxvt (vient de tester à l'instant). |
|
Back to top |
|
|
_Seth_ Guru
Joined: 15 Sep 2004 Posts: 539 Location: encore paumé dans un labo ;)
|
Posted: Thu Aug 16, 2007 8:45 am Post subject: |
|
|
yep, confirmation :
man rxvt wrote: | -e command [arguments]
Run the command with its command-line arguments in(1, the rxvt(ouR XVT) [rxvt] (1,ouR XVT) [urxvtc] (1,ouR XVT) [urxvtd] (1,ouR XVT) [wterm] (1) win-
dow; also sets the window title and icon name to be the basename(1,3,3 File::Basename)
of the program being executed if(3,n) neither -title (-T) nor -n are
given on the command line. If this option is used, it must be
the last on the command-line. If there is no -e option then the
default is to run the program specified by the SHELL environment
variable or, failing that, sh(1).
|
_________________ no tears to cry, no feelings left
the species has amused itself to death
amused itself to death |
|
Back to top |
|
|
Dismantr Apprentice
Joined: 06 Jun 2007 Posts: 201
|
Posted: Thu Aug 16, 2007 8:45 am Post subject: |
|
|
Super ! J'essaye ce soir en rentrant
Merci à vous trois |
|
Back to top |
|
|
geekounet Bodhisattva
Joined: 11 Oct 2004 Posts: 3772 Location: Wellington, Aotearoa
|
Posted: Thu Aug 16, 2007 8:55 am Post subject: |
|
|
Oui ça fonctionne avec l'option -e avec tous les terminaux, sauf gnome-terminal qui utilise -x pour ne pas faire comme tout le monde |
|
Back to top |
|
|
|