mirror of
https://github.com/denizsafak/abogen.git
synced 2026-07-19 06:00:26 +02:00
Use platformdirs for finding the desktop path
This commit is contained in:
+2
-1
@@ -72,6 +72,7 @@ from constants import (
|
||||
)
|
||||
from threading import Thread
|
||||
from voice_formula_gui import VoiceFormulaDialog
|
||||
from platformdirs import user_desktop_dir
|
||||
|
||||
# Import ctypes for Windows-specific taskbar icon
|
||||
if platform.system() == "Windows":
|
||||
@@ -1628,7 +1629,7 @@ class abogen(QWidget):
|
||||
|
||||
try:
|
||||
# where to put the .lnk
|
||||
desktop = os.path.join(os.environ.get("USERPROFILE", ""), "Desktop")
|
||||
desktop = user_desktop_dir()
|
||||
shortcut_path = os.path.join(desktop, "abogen.lnk")
|
||||
|
||||
# target exe
|
||||
|
||||
Reference in New Issue
Block a user