diff --git a/chimera_app/shortcuts.py b/chimera_app/shortcuts.py index be534c8..2844f01 100644 --- a/chimera_app/shortcuts.py +++ b/chimera_app/shortcuts.py @@ -425,6 +425,9 @@ def load_shortcut_entries(self) -> None: def prune_deleted_shortcuts(self) -> None: """Drop shortcuts marked as deleted from all YAML files""" for f in self.shortcut_files: + if context.SYSTEM_SHORTCUT_DIR in f.path and f.path.index(context.SYSTEM_SHORTCUT_DIR) == 0: + # system shortcuts are read-only + continue f.load_data() f.prune_deleted() f.save() diff --git a/shortcuts/default.yaml b/shortcuts/default.yaml index 15e647d..d7b0903 100644 --- a/shortcuts/default.yaml +++ b/shortcuts/default.yaml @@ -1,7 +1,7 @@ -- cmd: chimera-cart-loader +- name: Cart Loader + cmd: chimera-cart-loader condition: lsusb | grep 1d50:6018 hidden: false - name: Cart Loader poster: /usr/share/chimera/images/cart-loader/poster.png banner: /usr/share/chimera/images/cart-loader/banner.png background: /usr/share/chimera/images/cart-loader/background.png