Doesn't get you everytime, because qt3 checks for a session manager before calling those functions. Noticed by Jean-Yves Burlett.