Skip to content

Commit acff878

Browse files
author
katana
committed
Add Linux web support and dev environment fixes
1 parent ef03fb2 commit acff878

2 files changed

Lines changed: 7 additions & 15 deletions

File tree

StreamLabsTikTokStreamKeyGenerator.py

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@ def init_ui(self):
9797
self.load_local_btn = QPushButton("Load from PC")
9898
self.load_local_btn.setFixedHeight(30)
9999
self.load_local_btn.setToolTip("Load token from Streamlabs desktop app data")
100+
if platform.system() == "Linux":
101+
self.load_local_btn.setEnabled(False)
102+
self.load_local_btn.setToolTip("Streamlabs Desktop is not supported on Linux")
100103
self.load_local_btn.clicked.connect(self.load_local_token)
101104
load_buttons_row.addWidget(self.load_local_btn)
102105

@@ -109,20 +112,6 @@ def init_ui(self):
109112

110113
token_layout.addLayout(load_buttons_row)
111114

112-
# Binary Location Input Row
113-
if platform.system() == "Linux":
114-
binary_row = QHBoxLayout()
115-
binary_row.setSpacing(5)
116-
117-
self.binary_location_entry = QLineEdit()
118-
self.binary_location_entry.setPlaceholderText("Custom Chrome binary path (optional)")
119-
self.binary_location_entry.setFixedHeight(28)
120-
self.binary_location_entry.setToolTip("Leave empty to auto-detect Chrome path on Linux")
121-
binary_row.addWidget(self.binary_location_entry)
122-
123-
token_layout.addLayout(binary_row)
124-
125-
126115
# Account Info Section
127116
account_info_label = QLabel("Account Information")
128117
account_info_label.setStyleSheet("font-weight: bold; margin-top: 8px;")

Updater.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
from _version import __version__
1+
try:
2+
from _version import __version__
3+
except ImportError:
4+
__version__ = "dev"
25
from packaging import version
36
import requests
47

0 commit comments

Comments
 (0)