diff --git a/spotify2ytmusic/gui.py b/spotify2ytmusic/gui.py index a755693..220547d 100644 --- a/spotify2ytmusic/gui.py +++ b/spotify2ytmusic/gui.py @@ -320,16 +320,13 @@ def run_in_thread(): else: # For Unix and Linux try: subprocess.call( - "x-terminal-emulator -e ytmusicapi oauth", - shell=True, - stdout=subprocess.PIPE, - ) - except: - subprocess.call( - "xterm -e ytmusicapi oauth", + "python3 -m ytmusicapi oauth", shell=True, stdout=subprocess.PIPE, ) + except Exception as e: + print(f"An error occurred: {e}") + self.tabControl.select(self.tab2) print()