si je lance firefox par la commande suivante :
$ /Applications/Firefox3.app/Contents/MacOS/firefox-bin -P toto
donc en cli au terminal, j'ai la main tout de suite, au preque, après
avoir lancé la commande.
par contre si je crée une (psudo)application qui a toute l'architecture,
la plist, une icône etc avec cette mê commande dans un script zsh à
savoir :
------------------------------------------------------------------------
#!/opt/local/bin/zsh
/Applications/Firefox3.app/Contents/MacOS/firefox-bin -P toto
l'icône ne disparaît pas du dock et un :
$ps -ax m'indique :
79315 ?? 0:00.00 /opt/local/bin/zsh
/Applications/Firefox3Launcher.app/Contents/MacOS/ff3 -psn_0_22345038
bon, je sais bien c'est juste cosmétique cette icône en + sur le Dock,
mais n'y a t'il pas moyen de détacher ce script, si oui, comment ?
--
« Ce n'est pas l'argent qui n'a pas d'odeur mais les banquiers
qui n'ont pas d'odorat. »
(Anonyme)
Cette action est irreversible, confirmez la suppression du commentaire ?
Signaler le commentaire
Veuillez sélectionner un problème
Nudité
Violence
Harcèlement
Fraude
Vente illégale
Discours haineux
Terrorisme
Autre
Michael Kallweitt
Une Bévue a écrit:
par contre si je crée une (psudo)application qui a toute l'architecture, la plist, une icône etc avec cette mê commande dans un script zsh à savoir : ------------------------------------------------------------------------ #!/opt/local/bin/zsh /Applications/Firefox3.app/Contents/MacOS/firefox-bin -P toto
l'icône ne disparaît pas du dock et un : $ps -ax m'indique : 79315 ?? 0:00.00 /opt/local/bin/zsh /Applications/Firefox3Launcher.app/Contents/MacOS/ff3 -psn_0_22345038
bon, je sais bien c'est juste cosmétique cette icône en + sur le Dock, mais n'y a t'il pas moyen de détacher ce script, si oui, comment ?
exec /Applications/Firefox3.app/Contents/MacOS/firefox-bin -P toto
De la page de manuel:
,----[ man zshbuiltin ] | exec [ -cl ] [ -a argv0 ] simple command | Replace the current shell with an external command rather than | forking. With -c clear the environment; with -l prepend - | to the argv[0] string of the command executed (to simulate a | login shell); with -a argv0 set the argv[0] string of the | command executed. See the section `Precommand Modifiers'. `----
La commande interne « exec » éxiste aussi dans le cli (ba)sh.
-- www.wasfuereintheater.com - Neue Theaterprojekte im Ruhrpott "As an artist, I'm reporting the big things and the small things. And sometimes you don't know which is which." Maira Kalman, http://bit.ly/a53n2K
Une Bévue a écrit:
par contre si je crée une (psudo)application qui a toute l'architecture,
la plist, une icône etc avec cette mê commande dans un script zsh à
savoir :
------------------------------------------------------------------------
#!/opt/local/bin/zsh
/Applications/Firefox3.app/Contents/MacOS/firefox-bin -P toto
l'icône ne disparaît pas du dock et un :
$ps -ax m'indique :
79315 ?? 0:00.00 /opt/local/bin/zsh
/Applications/Firefox3Launcher.app/Contents/MacOS/ff3 -psn_0_22345038
bon, je sais bien c'est juste cosmétique cette icône en + sur le Dock,
mais n'y a t'il pas moyen de détacher ce script, si oui, comment ?
exec /Applications/Firefox3.app/Contents/MacOS/firefox-bin -P toto
De la page de manuel:
,----[ man zshbuiltin ]
| exec [ -cl ] [ -a argv0 ] simple command
| Replace the current shell with an external command rather than
| forking. With -c clear the environment; with -l prepend - |
to the argv[0] string of the command executed (to simulate a |
login shell); with -a argv0 set the argv[0] string of the |
command executed. See the section `Precommand Modifiers'.
`----
La commande interne « exec » éxiste aussi dans le cli (ba)sh.
--
www.wasfuereintheater.com - Neue Theaterprojekte im Ruhrpott
"As an artist, I'm reporting the big things and the small things. And
sometimes you don't know which is which." Maira Kalman,
http://bit.ly/a53n2K
par contre si je crée une (psudo)application qui a toute l'architecture, la plist, une icône etc avec cette mê commande dans un script zsh à savoir : ------------------------------------------------------------------------ #!/opt/local/bin/zsh /Applications/Firefox3.app/Contents/MacOS/firefox-bin -P toto
l'icône ne disparaît pas du dock et un : $ps -ax m'indique : 79315 ?? 0:00.00 /opt/local/bin/zsh /Applications/Firefox3Launcher.app/Contents/MacOS/ff3 -psn_0_22345038
bon, je sais bien c'est juste cosmétique cette icône en + sur le Dock, mais n'y a t'il pas moyen de détacher ce script, si oui, comment ?
exec /Applications/Firefox3.app/Contents/MacOS/firefox-bin -P toto
De la page de manuel:
,----[ man zshbuiltin ] | exec [ -cl ] [ -a argv0 ] simple command | Replace the current shell with an external command rather than | forking. With -c clear the environment; with -l prepend - | to the argv[0] string of the command executed (to simulate a | login shell); with -a argv0 set the argv[0] string of the | command executed. See the section `Precommand Modifiers'. `----
La commande interne « exec » éxiste aussi dans le cli (ba)sh.
-- www.wasfuereintheater.com - Neue Theaterprojekte im Ruhrpott "As an artist, I'm reporting the big things and the small things. And sometimes you don't know which is which." Maira Kalman, http://bit.ly/a53n2K
Michael Kallweitt
Une Bévue a écrit:
------------------------------------------------------------------------ #!/opt/local/bin/zsh /Applications/Firefox3.app/Contents/MacOS/firefox-bin -P toto
l'icône ne disparaît pas du dock et un : $ps -ax m'indique : 79315 ?? 0:00.00 /opt/local/bin/zsh /Applications/Firefox3Launcher.app/Contents/MacOS/ff3 -psn_0_22345038
bon, je sais bien c'est juste cosmétique cette icône en + sur le Dock, mais n'y a t'il pas moyen de détacher ce script, si oui, comment ?
exec /Applications/Firefox3.app/Contents/MacOS/firefox-bin -P toto
De la page de manuel:
,---- | exec [ -cl ] [ -a argv0 ] simple command | Replace the current shell with an external command | rather than forking. With -c clear the environment; | with -l prepend - to the argv[0] string of the command | executed (to simulate a login shell); with -a argv0 set | the argv[0] string of the command exe- cuted. See the | section `Precommand Modifiers'. `----
Cette commande interne aussi éxiste dans le cli (ba)sh.
-- www.wasfuereintheater.com - Neue Theaterprojekte im Ruhrpott "As an artist, I'm reporting the big things and the small things. And sometimes you don't know which is which." Maira Kalman, http://bit.ly/a53n2K
Une Bévue a écrit:
------------------------------------------------------------------------
#!/opt/local/bin/zsh
/Applications/Firefox3.app/Contents/MacOS/firefox-bin -P toto
l'icône ne disparaît pas du dock et un :
$ps -ax m'indique :
79315 ?? 0:00.00 /opt/local/bin/zsh
/Applications/Firefox3Launcher.app/Contents/MacOS/ff3 -psn_0_22345038
bon, je sais bien c'est juste cosmétique cette icône en + sur le Dock,
mais n'y a t'il pas moyen de détacher ce script, si oui, comment ?
exec /Applications/Firefox3.app/Contents/MacOS/firefox-bin -P toto
De la page de manuel:
,----
| exec [ -cl ] [ -a argv0 ] simple command
| Replace the current shell with an external command
| rather than forking. With -c clear the environment;
| with -l prepend - to the argv[0] string of the command
| executed (to simulate a login shell); with -a argv0 set
| the argv[0] string of the command exe- cuted. See the
| section `Precommand Modifiers'.
`----
Cette commande interne aussi éxiste dans le cli (ba)sh.
--
www.wasfuereintheater.com - Neue Theaterprojekte im Ruhrpott
"As an artist, I'm reporting the big things and the small things. And
sometimes you don't know which is which." Maira Kalman,
http://bit.ly/a53n2K
------------------------------------------------------------------------ #!/opt/local/bin/zsh /Applications/Firefox3.app/Contents/MacOS/firefox-bin -P toto
l'icône ne disparaît pas du dock et un : $ps -ax m'indique : 79315 ?? 0:00.00 /opt/local/bin/zsh /Applications/Firefox3Launcher.app/Contents/MacOS/ff3 -psn_0_22345038
bon, je sais bien c'est juste cosmétique cette icône en + sur le Dock, mais n'y a t'il pas moyen de détacher ce script, si oui, comment ?
exec /Applications/Firefox3.app/Contents/MacOS/firefox-bin -P toto
De la page de manuel:
,---- | exec [ -cl ] [ -a argv0 ] simple command | Replace the current shell with an external command | rather than forking. With -c clear the environment; | with -l prepend - to the argv[0] string of the command | executed (to simulate a login shell); with -a argv0 set | the argv[0] string of the command exe- cuted. See the | section `Precommand Modifiers'. `----
Cette commande interne aussi éxiste dans le cli (ba)sh.
-- www.wasfuereintheater.com - Neue Theaterprojekte im Ruhrpott "As an artist, I'm reporting the big things and the small things. And sometimes you don't know which is which." Maira Kalman, http://bit.ly/a53n2K
unbewusst.sein
Michael Kallweitt wrote:
exec /Applications/Firefox3.app/Contents/MacOS/firefox-bin -P toto
De la page de manuel:
,---- | exec [ -cl ] [ -a argv0 ] simple command | Replace the current shell with an external command | rather than forking. With -c clear the environment; | with -l prepend - to the argv[0] string of the command | executed (to simulate a login shell); with -a argv0 set | the argv[0] string of the command exe- cuted. See the | section `Precommand Modifiers'. `----
Cette commande interne aussi éxiste dans le cli (ba)sh.
Merci bien, ça roule. Une question : maintenant je n'ai plus qu'une icône mais c'est celle de mon script et pas celle de firefox, ça ne me gène pas, je souhaite simplement mieux comprendre.
$ ps -ax me donne cette fois-ci : 82603 ?? 0:23.78 /Applications/Firefox3.app/Contents/MacOS/firefox-bin -P toto
donc, j'imagine que, pour le système, comme mon script se substitue à son process normal de lancement d'une appli, sans doute à partir du contenu de la plist où j'ai, dans firefox :
en résumé, ce que je pige et qu'avec l'exec, le système ne voit plus l'application firefox mais uniquement le binaire de firefox, quelque chose dans ce goût là ?
-- « Ce n'est pas l'argent qui n'a pas d'odeur mais les banquiers qui n'ont pas d'odorat. » (Anonyme)
Michael Kallweitt <M.Kallweitt@gmx.de> wrote:
exec /Applications/Firefox3.app/Contents/MacOS/firefox-bin -P toto
De la page de manuel:
,----
| exec [ -cl ] [ -a argv0 ] simple command
| Replace the current shell with an external command
| rather than forking. With -c clear the environment;
| with -l prepend - to the argv[0] string of the command
| executed (to simulate a login shell); with -a argv0 set
| the argv[0] string of the command exe- cuted. See the
| section `Precommand Modifiers'.
`----
Cette commande interne aussi éxiste dans le cli (ba)sh.
Merci bien, ça roule.
Une question : maintenant je n'ai plus qu'une icône mais c'est celle de
mon script et pas celle de firefox, ça ne me gène pas, je souhaite
simplement mieux comprendre.
$ ps -ax me donne cette fois-ci :
82603 ?? 0:23.78
/Applications/Firefox3.app/Contents/MacOS/firefox-bin -P toto
donc, j'imagine que, pour le système, comme mon script se substitue à
son process normal de lancement d'une appli, sans doute à partir du
contenu de la plist où j'ai, dans firefox :
en résumé, ce que je pige et qu'avec l'exec, le système ne voit plus
l'application firefox mais uniquement le binaire de firefox, quelque
chose dans ce goût là ?
--
« Ce n'est pas l'argent qui n'a pas d'odeur mais les banquiers
qui n'ont pas d'odorat. »
(Anonyme)
exec /Applications/Firefox3.app/Contents/MacOS/firefox-bin -P toto
De la page de manuel:
,---- | exec [ -cl ] [ -a argv0 ] simple command | Replace the current shell with an external command | rather than forking. With -c clear the environment; | with -l prepend - to the argv[0] string of the command | executed (to simulate a login shell); with -a argv0 set | the argv[0] string of the command exe- cuted. See the | section `Precommand Modifiers'. `----
Cette commande interne aussi éxiste dans le cli (ba)sh.
Merci bien, ça roule. Une question : maintenant je n'ai plus qu'une icône mais c'est celle de mon script et pas celle de firefox, ça ne me gène pas, je souhaite simplement mieux comprendre.
$ ps -ax me donne cette fois-ci : 82603 ?? 0:23.78 /Applications/Firefox3.app/Contents/MacOS/firefox-bin -P toto
donc, j'imagine que, pour le système, comme mon script se substitue à son process normal de lancement d'une appli, sans doute à partir du contenu de la plist où j'ai, dans firefox :
en résumé, ce que je pige et qu'avec l'exec, le système ne voit plus l'application firefox mais uniquement le binaire de firefox, quelque chose dans ce goût là ?
-- « Ce n'est pas l'argent qui n'a pas d'odeur mais les banquiers qui n'ont pas d'odorat. » (Anonyme)