Skip to content

Commit

Permalink
Fix prefix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
kra-mo committed May 27, 2023
1 parent 8a1e008 commit c045ad1
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions data/hu.kramo.Cartridges.gschema.xml.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<schemalist gettext-domain="cartridges">
<schema id="@APP_ID@" path="@PREFIX@">
<schema id="@APP_ID@" path="@PREFIX@/">
<key name="exit-after-launch" type="b">
<default>false</default>
</key>
Expand Down Expand Up @@ -68,7 +68,7 @@
<default>false</default>
</key>
</schema>
<schema id="@[email protected]" path="@PREFIX@State/">
<schema id="@[email protected]" path="@PREFIX@/State/">
<key name="width" type="i">
<default>1110</default>
</key>
Expand Down
4 changes: 2 additions & 2 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ pkgdatadir = join_paths(get_option('prefix'), get_option('datadir'), meson.proje
profile = get_option('profile')
if profile == 'development'
app_id = 'hu.kramo.Cartridges.Devel'
prefix = '/hu/kramo/Cartridges/Devel/'
prefix = '/hu/kramo/Cartridges/Devel'
elif profile == 'release'
app_id = 'hu.kramo.Cartridges'
prefix = '/hu/kramo/Cartridges/'
prefix = '/hu/kramo/Cartridges'
endif

conf = configuration_data()
Expand Down
2 changes: 1 addition & 1 deletion src/details_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
from .steamgriddb import SGDBSave


@Gtk.Template(resource_path=shared.PREFIX + "gtk/details_window.ui")
@Gtk.Template(resource_path=shared.PREFIX + "/gtk/details_window.ui")
class DetailsWindow(Adw.Window):
__gtype_name__ = "DetailsWindow"

Expand Down
4 changes: 2 additions & 2 deletions src/game.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
from .game_cover import GameCover


@Gtk.Template(resource_path=shared.PREFIX + "gtk/game.ui")
@Gtk.Template(resource_path=shared.PREFIX + "/gtk/game.ui")
class Game(Gtk.Box):
__gtype_name__ = "Game"

Expand Down Expand Up @@ -201,7 +201,7 @@ def launch(self):
creationflags=subprocess.CREATE_NEW_PROCESS_GROUP if os.name == "nt" else 0,
)

if shared.state_schema.get_boolean("exit-after-launch"):
if shared.schema.get_boolean("exit-after-launch"):
self.app.quit()

# The variable is the title of the game
Expand Down
4 changes: 2 additions & 2 deletions src/game_cover.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class GameCover:
anim_iter = None

placeholder_pixbuf = GdkPixbuf.Pixbuf.new_from_resource_at_scale(
shared.PREFIX + "library_placeholder.svg", 400, 600, False
shared.PREFIX + "/library_placeholder.svg", 400, 600, False
)

def __init__(self, pictures, path=None):
Expand Down Expand Up @@ -93,7 +93,7 @@ def get_blurred(self):
)
else:
self.blurred = GdkPixbuf.Pixbuf.new_from_resource_at_scale(
shared.PREFIX + "library_placeholder.svg", 2, 2, False
shared.PREFIX + "/library_placeholder.svg", 2, 2, False
)

self.luminance = (0.1, 0.8)
Expand Down
2 changes: 1 addition & 1 deletion src/preferences.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
from .steam_importer import steam_installed


@Gtk.Template(resource_path=shared.PREFIX + "gtk/preferences.ui")
@Gtk.Template(resource_path=shared.PREFIX + "/gtk/preferences.ui")
class PreferencesWindow(Adw.PreferencesWindow):
__gtype_name__ = "PreferencesWindow"

Expand Down
2 changes: 1 addition & 1 deletion src/window.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
from .game import Game


@Gtk.Template(resource_path=shared.PREFIX + "gtk/window.ui")
@Gtk.Template(resource_path=shared.PREFIX + "/gtk/window.ui")
class CartridgesWindow(Adw.ApplicationWindow):
__gtype_name__ = "CartridgesWindow"

Expand Down

0 comments on commit c045ad1

Please sign in to comment.