update eaf package
This commit is contained in:
@@ -28,6 +28,7 @@ import subprocess
|
||||
import os
|
||||
import qrcode
|
||||
import signal
|
||||
import tempfile
|
||||
|
||||
from core.buffer import Buffer
|
||||
|
||||
@@ -76,7 +77,7 @@ class FileUploaderWidget(QWidget):
|
||||
self.file_name_font.setPointSize(24)
|
||||
|
||||
self.file_name_label = QLabel(self)
|
||||
self.file_name_label.setText("Your file will be share at\n{0}".format(url))
|
||||
self.file_name_label.setText("Your smartphone file will be shared at\n{0}".format(url))
|
||||
self.file_name_label.setFont(self.file_name_font)
|
||||
self.file_name_label.setAlignment(Qt.AlignCenter)
|
||||
self.file_name_label.setStyleSheet("color: #eee")
|
||||
@@ -86,7 +87,7 @@ class FileUploaderWidget(QWidget):
|
||||
self.notify_font = QFont()
|
||||
self.notify_font.setPointSize(12)
|
||||
self.notify_label = QLabel(self)
|
||||
self.notify_label.setText("Scan QR code above to upload a file from your smartphone.\nMake sure the smartphone is connected to the same WiFi network as this computer.")
|
||||
self.notify_label.setText("Scan the QR code above to upload a file from your smartphone.\nMake sure the smartphone is connected to the same WiFi network as this computer.")
|
||||
self.notify_label.setFont(self.notify_font)
|
||||
self.notify_label.setAlignment(Qt.AlignCenter)
|
||||
self.notify_label.setStyleSheet("color: #eee")
|
||||
@@ -107,8 +108,10 @@ class FileUploaderWidget(QWidget):
|
||||
|
||||
self.qrcode_label.setPixmap(qrcode.make(self.address, image_factory=Image).pixmap())
|
||||
|
||||
tmp_db_file = os.path.join(tempfile.gettempdir(), "filebrowser.db")
|
||||
self.background_process = subprocess.Popen(
|
||||
"cd {0} && filebrowser --noauth -d /tmp/filebrowser.db --address {1} -p {2}".format(url, self.local_ip, self.port),
|
||||
"filebrowser --noauth -d {0} --address {1} -p {2}".format(tmp_db_file, self.local_ip, self.port),
|
||||
cwd=url,
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.STDOUT,
|
||||
shell=True)
|
||||
|
||||
Reference in New Issue
Block a user