@@ -100,6 +100,20 @@ def init_ui(self):
100100
101101 token_layout .addLayout (load_buttons_row )
102102
103+ # Binary Location Input Row
104+ if platform .system () == "Linux" :
105+ binary_row = QHBoxLayout ()
106+ binary_row .setSpacing (5 )
107+
108+ self .binary_location_entry = QLineEdit ()
109+ self .binary_location_entry .setPlaceholderText ("Custom Chrome binary path (optional)" )
110+ self .binary_location_entry .setFixedHeight (28 )
111+ self .binary_location_entry .setToolTip ("Leave empty to auto-detect Chrome path on Linux" )
112+ binary_row .addWidget (self .binary_location_entry )
113+
114+ token_layout .addLayout (binary_row )
115+
116+
103117 # Account Info Section
104118 account_info_label = QLabel ("Account Information" )
105119 account_info_label .setStyleSheet ("font-weight: bold; margin-top: 8px;" )
@@ -390,8 +404,11 @@ def load_local_token(self):
390404
391405 def fetch_online_token (self ):
392406 retriever = TokenRetriever ()
407+ binary_path = None
408+ if hasattr (self , "binary_location_entry" ):
409+ binary_path = self .binary_location_entry .text ().strip () or None
393410 try :
394- token = retriever .retrieve_token ()
411+ token = retriever .retrieve_token (binary_path )
395412 except Exception as e :
396413 if "Chrome not found" in str (e ):
397414 QMessageBox .critical (self , "Error" , "Google Chrome not found. Please install it to use this feature." )
0 commit comments