Skip to content

Commit

Permalink
Fix Remove forward slash from desktop filename (Shenzhen I/O)
Browse files Browse the repository at this point in the history
  • Loading branch information
slowsage committed May 8, 2024
1 parent 1ce0eb4 commit e81b49f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
**1.3.0**
- Fix Remove forward slash from desktop filename for Shenzhen I/O (thanks to slowsage)
- Fix race when preparing download location (thanks to viacheslavka)
- Fix multithreaded downloads of Windows games (thanks to viacheslavka)
- Fix DLC installation for Windows games (thanks to viacheslavka)
Expand Down
6 changes: 3 additions & 3 deletions minigalaxy/installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ def get_exec_line(game):

def create_applications_file(game):
error_message = ""
path_to_shortcut = os.path.join(APPLICATIONS_DIR, "{}.desktop".format(game.name))
path_to_shortcut = os.path.join(APPLICATIONS_DIR, "{}.desktop".format(game.name.replace("/", "")))
exe_cmd = get_exec_line(game)
# Create desktop file definition
desktop_context = {
Expand Down Expand Up @@ -336,8 +336,8 @@ def uninstall_game(game):
shutil.rmtree(game.install_dir, ignore_errors=True)
if os.path.isfile(game.status_file_path):
os.remove(game.status_file_path)
if os.path.isfile(os.path.join(APPLICATIONS_DIR, "{}.desktop".format(game.name))):
os.remove(os.path.join(APPLICATIONS_DIR, "{}.desktop".format(game.name)))
if os.path.isfile(os.path.join(APPLICATIONS_DIR, "{}.desktop".format(game.name.replace("/", "")))):
os.remove(os.path.join(APPLICATIONS_DIR, "{}.desktop".format(game.name.replace("/", ""))))


def _exe_cmd(cmd):
Expand Down

0 comments on commit e81b49f

Please sign in to comment.