Skip to content

Commit

Permalink
Merge pull request #104 from sctech-tr/patch-1
Browse files Browse the repository at this point in the history
calling xterm fails, so execute the command directly
  • Loading branch information
linsomniac authored Feb 2, 2025
2 parents f168fbe + 1978b3f commit 560cda7
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions spotify2ytmusic/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 560cda7

Please sign in to comment.