martes, 7 de abril de 2015


LUNUX, FEDORA

Abrir aplicación si no se esta ejecutando , y si esta ejecutandose abrirla

sh -c "if test $(wmctrl -vxa nautilus 2>&1 | wc -l) -eq 1; then nautilus; fi"
sh -c "if test $(wmctrl -vxa chrome 2>&1 | wc -l) -eq 1; then google-chrome; fi"
sh -c "if test $(wmctrl -vxa phpstorm 2>&1 | wc -l) -eq 1; then phpstorm; fi"

No hay comentarios:

Publicar un comentario