From 93ae85dac4ee3aa8aaa7d08f1774a91b468d301b Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sat, 2 May 2015 22:25:15 +0300 Subject: [PATCH] .fvwmrc: test for a window before starting browser --- .fvwm/phd.m4 | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.fvwm/phd.m4 b/.fvwm/phd.m4 index a5f1bde..083b3e5 100644 --- a/.fvwm/phd.m4 +++ b/.fvwm/phd.m4 @@ -605,11 +605,13 @@ AddToFunc Term-Phdru-Big I GotoDeskAndPage 1 0 1 + I REMOTE_HOST_KOI8_BIG(phdru.name, phdru.name) DestroyFunc FireFox -AddToFunc FireFox I GotoDeskAndPage 1 0 0 -+ I Exec if ! pgrep firefox >/dev/null; then LC_CTYPE=ru_RU.KOI8-R exec start-browser firefox; fi +AddToFunc FireFox I Any ("*Mozilla Firefox") Break ++ I GotoDeskAndPage 1 0 0 ++ I Exec LC_CTYPE=ru_RU.KOI8-R exec start-browser firefox DestroyFunc FireFox-Wait -AddToFunc FireFox-Wait I FireFox +AddToFunc FireFox-Wait I Any ("*Mozilla Firefox") Break ++ I FireFox + I Wait "*Mozilla Firefox" DestroyFunc Gajim @@ -803,8 +805,8 @@ AddToMenu Utilities "Choose one:" Title DestroyMenu Browsers AddToMenu Browsers "Choose one:" Title + "FireFox" FireFox -+ "Chromium" Exec LC_CTYPE=ru_RU.KOI8-R exec start-browser chromium -+ "Opera" Exec LC_CTYPE=ru_RU.KOI8-R exec start-browser opera ++ "Chromium" None ("*Chromium") Exec LC_CTYPE=ru_RU.KOI8-R exec start-browser chromium ++ "Opera" None ("*Opera") Exec LC_CTYPE=ru_RU.KOI8-R exec start-browser opera # A wide variety of screenlocking options... #AddToMenu XlockMenu "Choose one:" Title -- 2.39.5