From dbd67fe933cea5928eec5c3836295e124d98d474 Mon Sep 17 00:00:00 2001 From: Jonas Forsberg Date: Mon, 3 Aug 2020 15:02:37 +0200 Subject: [PATCH] added killall firefox in gnome and firefox --- bin/initDesktop | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/bin/initDesktop b/bin/initDesktop index c13b4a3..3f5806b 100755 --- a/bin/initDesktop +++ b/bin/initDesktop @@ -56,9 +56,11 @@ function log(){ function gnome_config(){ new_log "Setting my default gnome bindings" + log "WARNING! All running firefox instances will be killed" if asktobreak; then return fi + killall firefox log "Launching firefox to install GNOME Extetions" firefox https://extensions.gnome.org/extension/1031/topicons/ firefox https://extensions.gnome.org/extension/600/launch-new-instance/ @@ -95,15 +97,6 @@ show-panel=false thumbnails-on-left-side=false show-thumbnails-slider=false EOF -# log "setting custom keybindings" -# local KEY_PATH="/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings" -# local CMD="gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:$KEY_PATH" -# gsettings set org.gnome.settings-daemon.plugins.media-keys custom-keybindings "['$KEY_PATH/custom0/']" -# -# # Open Terminator -# $CMD/custom0/ name "Open Terminator" -# $CMD/custom0/ command "terminator" -# $CMD/custom0/ binding "Return" } @@ -148,11 +141,13 @@ function firefox_config(){ new_log "Installing firefox addons" if [[ ! -f "$HOME/bin/install_firefox_addon" ]];then printf "install firefox addon script not found, run dotfile sync first" - fi + fi + log "WARNING! all running firefox instances will be killed" if asktobreak;then return fi - exec $HOME/bin/install_firefox_addon + killall firefox + $HOME/bin/install_firefox_addon } #initialize all options