From klik-devel Mon Mar 24 00:55:53 2008 From: codesite-noreply () google ! com Date: Mon, 24 Mar 2008 00:55:53 +0000 To: klik-devel Subject: [klik-devel] [klikclient commit] r1429 - Message-Id: <0016e64135bc0449244c3a4e17de2b87 () google ! com> X-MARC-Message: https://marc.info/?l=klik-devel&m=120632020424348 Author: KillerKiwi2005 Date: Sun Mar 23 17:55:02 2008 New Revision: 1429 Modified: trunk/client/trunk/klikclient/lib/klik/execute.py Log: Check for start_kdeinit_wrapper as well as start_kdeinit Modified: trunk/client/trunk/klikclient/lib/klik/execute.py ============================================================================== --- trunk/client/trunk/klikclient/lib/klik/execute.py (original) +++ trunk/client/trunk/klikclient/lib/klik/execute.py Sun Mar 23 17:55:02 2008 @@ -182,9 +182,14 @@ # KDE - kdeinit # if starting a kde app make sure kdeinit is running first if "KDE" in cmg.recipe.needs and self.klik.xdg.get_desktop_enviroment != "KDE": + + if Popen(["start_kdeinit_wrapper", command], stdout=PIPE, stderr=open(os.devnull, "w")).communicate()[0].strip(): + if not Popen(["pidof", "-x", "kdeinit"], stdout=PIPE, stderr=open(os.devnull, "w")).communicate()[0].strip(): + call(["start_kdeinit_wrapper"]) + if not Popen(["pidof", "-x", "kdeinit"], stdout=PIPE, stderr=open(os.devnull, "w")).communicate()[0].strip(): call(["start_kdeinit"]) - + # HACKS END HERE - we need to remove these if at all possible !!! return command _______________________________________________ klik-devel mailing list klik-devel@kde.org https://mail.kde.org/mailman/listinfo/klik-devel