From 9ec9d1240d9d7c6395562cd9b1e5883a9942bbab Mon Sep 17 00:00:00 2001 From: Jeremiah Ticket Date: Sun, 8 Dec 2019 04:08:20 -0900 Subject: [PATCH] Changed donate function to use webbrowser module --- libstormgames.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libstormgames.py b/libstormgames.py index be53504..596b1f2 100755 --- a/libstormgames.py +++ b/libstormgames.py @@ -13,6 +13,7 @@ import pyperclip import random import re import requests +import webbrowser # Global variable for speech provider try: import speechd @@ -235,4 +236,4 @@ def game_menu(*options): def donate(): pygame.mixer.music.pause() - subprocess.call(["xdg-open", "https://liberapay.com/stormdragon2976/donate"]) + webbrowser.open('https://liberapay.com/stormdragon2976/donate')