add fork support for gnome3/ and xfce/