didn think i would be asking for help with a script anytime soon but...
I have a script that i run to choose a profile in firefox;
(alias firefox="script.sh")Code:#!/bin/bash checkEth0=$(ifconfig eth0 | grep inet) if [ -n "$checkEth0" ]; then firefox -P "work" else firefox -P "home" fi
this works from terminal, but from a link in the menu it does not... (ifconfig is always null... so i always get "home" profile)...
this is obviously effected by an environment variable, which and why?
Bookmarks