Skip to content

Commit

Permalink
Switch custom icon theme location to runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
strycore committed Jul 20, 2020
1 parent b30b845 commit 572661c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lutris/gui/widgets/sidebar.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@

from gi.repository import GObject, Gtk, Pango

from lutris import pga, platforms, runners
from lutris import pga, platforms, runners, settings
from lutris.game import Game
from lutris.gui.config.runner import RunnerConfigDialog
from lutris.gui.dialogs.runner_install import RunnerInstallDialog
from lutris.gui.dialogs.runners import RunnersDialog
from lutris.util import datapath

TYPE = 0
SLUG = 1
Expand All @@ -21,7 +20,7 @@
def load_icon_theme():
"""Add the lutris icon folder to the default theme"""
icon_theme = Gtk.IconTheme.get_default()
local_theme_path = os.path.join(datapath.get(), "icons")
local_theme_path = os.path.join(settings.RUNTIME_DIR, "icons")
if local_theme_path not in icon_theme.get_search_path():
icon_theme.prepend_search_path(local_theme_path)

Expand Down

0 comments on commit 572661c

Please sign in to comment.