mirror of
https://github.com/aclist/dztui.git
synced 2026-11-19 08:05:37 +01:00
change: block shortcut creation on snap client
This commit is contained in:
1 parent
b42be20dc3
commit
da718c684d
2 files changed
+7
-4
No files matched your search
@@ -20,9 +20,7 @@ desc_flatpak_path = (
|
|||||||
desc_ubuntu_path = "This is the default Steam path on <b>Ubuntu-based systems</b>."
|
desc_ubuntu_path = "This is the default Steam path on <b>Ubuntu-based systems</b>."
|
||||||
desc_snap_path = "This is the default Steam path on <b>systems using Snap packages</b>."
|
desc_snap_path = "This is the default Steam path on <b>systems using Snap packages</b>."
|
||||||
desc_debian_path = "This is the default Steam path on <b>Debian-based systems</b>."
|
desc_debian_path = "This is the default Steam path on <b>Debian-based systems</b>."
|
||||||
no_valid_paths = (
|
no_valid_paths = "No valid Steam path or Steam command found on system. Please install Steam to continue."
|
||||||
"No valid Steam path or Steam command found on system. Please install Steam to continue."
|
|
||||||
)
|
|
||||||
button_scan = "Scan for Steam"
|
button_scan = "Scan for Steam"
|
||||||
|
|
||||||
### ConfigMigrationPage
|
### ConfigMigrationPage
|
||||||
@@ -75,7 +73,7 @@ checkbox_steam_shortcut = (
|
|||||||
"This creates a standalone copy of DZGUI and adds it to Steam. "
|
"This creates a standalone copy of DZGUI and adds it to Steam. "
|
||||||
"You <b>must restart Steam</b> for the shortcut to appear. This will not replace or update existing shortcuts. "
|
"You <b>must restart Steam</b> for the shortcut to appear. This will not replace or update existing shortcuts. "
|
||||||
"If you update DZGUI when it is launched via Steam, updates will be applied to the Steam version. "
|
"If you update DZGUI when it is launched via Steam, updates will be applied to the Steam version. "
|
||||||
"Not available if you selected the Flatpak client as your Steam default."
|
"Not available if you selected the Snap client as your Steam default."
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
checkbox_start_menu = (
|
checkbox_start_menu = (
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ from dzgui.const.constants import (
|
|||||||
HERO_PATH,
|
HERO_PATH,
|
||||||
FLATPAK_ROOT_PATH,
|
FLATPAK_ROOT_PATH,
|
||||||
LEGACY_CONFIG_PATH,
|
LEGACY_CONFIG_PATH,
|
||||||
|
SNAP_STEAM_PATH,
|
||||||
TMP_PATH,
|
TMP_PATH,
|
||||||
)
|
)
|
||||||
from dzgui.config.xdg import get_real_home
|
from dzgui.config.xdg import get_real_home
|
||||||
@@ -701,6 +702,7 @@ class ShortcutCreationPage(OptionalPageMixin, EnumeratedWizardPage): # type: ig
|
|||||||
|
|
||||||
self.add_start(self.checks_area)
|
self.add_start(self.checks_area)
|
||||||
self.show_all()
|
self.show_all()
|
||||||
|
|
||||||
self.connect("map", self._on_map)
|
self.connect("map", self._on_map)
|
||||||
|
|
||||||
def _on_start_menu_toggled(self, button: Gtk.CheckButton) -> None:
|
def _on_start_menu_toggled(self, button: Gtk.CheckButton) -> None:
|
||||||
@@ -711,6 +713,9 @@ class ShortcutCreationPage(OptionalPageMixin, EnumeratedWizardPage): # type: ig
|
|||||||
|
|
||||||
def set_steam_path(self, path: Path) -> None:
|
def set_steam_path(self, path: Path) -> None:
|
||||||
self.steam_path = path
|
self.steam_path = path
|
||||||
|
if SNAP_STEAM_PATH in self.steam_path:
|
||||||
|
self.steam_checkbox.set_active(False)
|
||||||
|
self.steam_checkbox.set_sensitive(False)
|
||||||
|
|
||||||
def is_steam_checkbox_active(self) -> bool:
|
def is_steam_checkbox_active(self) -> bool:
|
||||||
return self.steam_checkbox.get_active()
|
return self.steam_checkbox.get_active()
|
||||||
|
|||||||
Reference in new issue
Block a user