[prev in list] [next in list] [prev in thread] [next in thread] 

List:       klik-devel
Subject:    [klik-devel] [klikclient commit] r1614 -
From:       codesite-noreply () google ! com
Date:       2008-07-08 16:25:27
Message-ID: 0016e644d622ca4629045185a34c () google ! com
[Download RAW message or body]

Author: lionel.tricon
Date: Tue Jul  8 09:24:39 2008
New Revision: 1614

Modified:
   trunk/client/trunk/klikclient/lib/klik/execute.py

Log:
This modification seems to fix the library trace issue (never 
displayed, at least for me)


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	Tue Jul  8 
09:24:39 2008
@@ -239,16 +239,15 @@
 		application_returncode = 0
 		args = ["chroot", cmg.mount_point_path, "which"] + command
 		try:
-			#os.environ["LD_TRACE_LOADED_OBJECTS"] = "1"
 			command = Popen(args, env=os.environ, stdout=PIPE, stderr=open(os.devnull, \
                "w")).communicate()[0].strip()
-			args = ["ldd", os.path.join(cmg.mount_point_path, command[1:])]
-			text = Popen(args, env=os.environ, stdout=PIPE, stderr=open(os.devnull, \
"w")).communicate()[0].strip() +			os.environ["LD_TRACE_LOADED_OBJECTS"] = "1"
+			text = Popen(os.path.join(cmg.mount_point_path, command[1:]), 
env=os.environ, stdout=PIPE, stderr=open(os.devnull, "w")).communicate()[0].strip()
+			os.unsetenv("LD_TRACE_LOADED_OBJECTS");

-			#os.environ["LD_TRACE_LOADED_OBJECTS"] = ""
 		except Exception, text:
+			os.unsetenv("LD_TRACE_LOADED_OBJECTS");
 			print str(Exception)
 			print str(text)
-			#os.environ["LD_TRACE_LOADED_OBJECTS"] = ""
 			self.umnount_cmg (cmg.mount_point_path)
 			raise ExecuteException("Error occurred while starting application")

_______________________________________________
klik-devel mailing list
klik-devel@kde.org
https://mail.kde.org/mailman/listinfo/klik-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic