View | Details | Raw Unified | Return to bug 43747
Collapse All | Expand All

(-)appinstall (-2 / +2 lines)
Lines 140-146 Link Here
140
140
141
    def getApplicationsInstalled(self):
141
    def getApplicationsInstalled(self):
142
        """Get installed application from epm play --list"""
142
        """Get installed application from epm play --list"""
143
        out = subprocess.Popen( [ "/usr/bin/epm", "--inscript", "play", "--list", "--short" ], stdout=subprocess.PIPE, env=prg_env)
143
        out = subprocess.Popen( [ "/usr/bin/epm", "--inscript", "play", "--list", "--short" ], stdin=subprocess.DEVNULL, stdout=subprocess.PIPE, env=prg_env)
144
        self.installed = [ x.decode().rstrip() for x in out.stdout.readlines() ]
144
        self.installed = [ x.decode().rstrip() for x in out.stdout.readlines() ]
145
        #print("Installed:", self.installed )
145
        #print("Installed:", self.installed )
146
146
Lines 159-165 Link Here
159
        self.getApplicationsInstalled()
159
        self.getApplicationsInstalled()
160
        self.getAllowedApplications()
160
        self.getAllowedApplications()
161
        t1 = time.perf_counter()
161
        t1 = time.perf_counter()
162
        out = subprocess.Popen( [ "/usr/bin/epm", "--inscript", "play", "--list-all" ], stdout=subprocess.PIPE, env=prg_env)
162
        out = subprocess.Popen( [ "/usr/bin/epm", "--inscript", "play", "--list-all" ], stdin=subprocess.DEVNULL, stdout=subprocess.PIPE, env=prg_env)
163
        for l in out.stdout.readlines():
163
        for l in out.stdout.readlines():
164
            d = re.match( "  (\S+)\s+- (.*)", l.decode().rstrip() )
164
            d = re.match( "  (\S+)\s+- (.*)", l.decode().rstrip() )
165
            if d:
165
            if d:

Return to bug 43747