mirror of
https://github.com/moraroy/NonSteamLaunchers-On-Steam-Deck.git
synced 2026-06-13 04:04:59 +03:00
Replace file copy with symlink creation for applications
This commit is contained in:
+5
-2
@@ -1006,8 +1006,11 @@ def create_exec_line_from_entry(logged_in_home, new_entry, m_gameid):
|
||||
if not os.path.exists(applications_dir):
|
||||
os.makedirs(applications_dir)
|
||||
|
||||
shutil.copy(path, applications_dir)
|
||||
print(f"Copied {path} to {applications_dir}")
|
||||
symlink_path = os.path.join(applications_dir, filename)
|
||||
if os.path.exists(symlink_path):
|
||||
os.remove(symlink_path)
|
||||
os.symlink(path, symlink_path)
|
||||
print(f"Created symlink {symlink_path} -> {path}")
|
||||
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user