Skip to content

Commit

Permalink
Fix #252
Browse files Browse the repository at this point in the history
  • Loading branch information
kra-mo committed Apr 17, 2024
1 parent 7d937c7 commit e8db732
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 136 deletions.
13 changes: 9 additions & 4 deletions cartridges/cartridges.in
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,22 @@ import signal
import sys

VERSION = "@VERSION@"
PKGDATADIR = "@pkgdatadir@"
LOCALEDIR = "@localedir@"

if os.name == "nt":
PKGDATADIR = os.path.join(os.path.dirname(__file__), "..", "share", "cartridges")
else:
PKGDATADIR = "@pkgdatadir@"
LOCALEDIR = "@localedir@"

sys.path.insert(1, PKGDATADIR)
signal.signal(signal.SIGINT, signal.SIG_DFL)

if os.name != "nt":
locale.bindtextdomain("cartridges", LOCALEDIR)
locale.textdomain("cartridges")

gettext.install("cartridges", LOCALEDIR)
gettext.install("cartridges", LOCALEDIR)
else:
gettext.install("cartridges")

if __name__ == "__main__":
from gi.repository import Gio
Expand Down
4 changes: 0 additions & 4 deletions cartridges/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
from cartridges.store.managers.sgdb_manager import SgdbManager
from cartridges.store.managers.steam_api_manager import SteamAPIManager
from cartridges.store.store import Store
from cartridges.utils.migrate_files_v1_to_v2 import migrate_files_v1_to_v2
from cartridges.utils.run_executable import run_executable
from cartridges.window import CartridgesWindow

Expand Down Expand Up @@ -94,9 +93,6 @@ def do_activate(self) -> None: # pylint: disable=arguments-differ
setup_logging()
log_system_info()

if os.name == "nt":
migrate_files_v1_to_v2()

# Set fallback icon-name
Gtk.Window.set_default_icon_name(shared.APP_ID)

Expand Down
128 changes: 0 additions & 128 deletions cartridges/utils/migrate_files_v1_to_v2.py

This file was deleted.

0 comments on commit e8db732

Please sign in to comment.