示例#1
0
 def start(self):
     if not self.commandserver:
         size_w = getDesktop(0).size().width()
         size_h = getDesktop(0).size().height()
         self.commandserver = datasocket.CommandServer()
         datasocket.onCommandReceived.append(self.onCommandReceived)
         datasocket.onBrowserClosed.append(self.onBrowserClosed)
         container = eConsoleAppContainer()
         shellFile = "export QT_QPA_FONTDIR=/usr/share/fonts QT_QPA_PLATFORM=linuxfb; /usr/bin/stalker " + self.url
         container.execute(shellFile)
示例#2
0
 def start(self, url):
     if not self.commandserver:
         size_w = getDesktop(0).size().width()
         size_h = getDesktop(0).size().height()
         self.commandserver = datasocket.CommandServer()
         datasocket.onCommandReceived.append(self.onCommandReceived)
         datasocket.onBrowserClosed.append(self.onBrowserClosed)
         container = eConsoleAppContainer()
         container.execute(
             "export QT_QPA_PLATFORM=linuxfb; /usr/bin/qthbbtv")
     self.sendUrl(url)
示例#3
0
	def start(self):
		if not self.commandserver:
			size_w = getDesktop(0).size().width()
			size_h = getDesktop(0).size().height()
			self.commandserver = datasocket.CommandServer()
			datasocket.onCommandReceived.append(self.onCommandReceived)
			datasocket.onBrowserClosed.append(self.onBrowserClosed)
			container = eConsoleAppContainer()
			if config.plugins.Stalker.boxkey.value == True:
				container.execute("export QT_QPA_FONTDIR=/usr/share/fonts QT_QPA_PLATFORM=linuxfb:fb=/dev/fb/0; /usr/bin/stalker-mac")
			else:
				container.execute("export QT_QPA_FONTDIR=/usr/share/fonts QT_QPA_PLATFORM=linuxfb:fb=/dev/fb/0; /usr/bin/stalker")