Skip to content

Commit

Permalink
Ensure we are using our desktop integration bundled with runtime content
Browse files Browse the repository at this point in the history
pack.
  • Loading branch information
ScarlettGatelyMoore committed Oct 10, 2024
1 parent 97d9802 commit c43fe13
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions snapcraft/extensions/kde_neon_6.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def is_experimental(base: Optional[str]) -> bool:

@overrides
def get_app_snippet(self) -> Dict[str, Any]:
command_chain = ["snap/command-chain/desktop-launch6"]
command_chain = ["$SNAP/kf6/snap/command-chain/desktop-launch6"]
if self.yaml_data["base"] == "core24":
command_chain.insert(0, "snap/command-chain/gpu-2404-wrapper")
return {
Expand Down Expand Up @@ -245,7 +245,7 @@ def get_root_snippet(self) -> Dict[str, Any]:
"hooks": {
"configure": {
"plugs": ["desktop"],
"command-chain": ["snap/command-chain/hooks-configure-desktop"],
"command-chain": ["$SNAP/kf6/snap/command-chain/hooks-configure-desktop"],
}
},
"layout": {
Expand Down
12 changes: 6 additions & 6 deletions tests/unit/extensions/test_kde_neon_6.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def test_is_experimental():

def test_get_app_snippet(kde_neon_6_extension):
assert kde_neon_6_extension.get_app_snippet() == {
"command-chain": ["snap/command-chain/desktop-launch6"],
"command-chain": ["$SNAP/kf6/snap/command-chain/desktop-launch6"],
"plugs": [
"desktop",
"desktop-legacy",
Expand All @@ -153,7 +153,7 @@ def test_get_app_snippet_core24(kde_neon_6_extension_core24):
assert kde_neon_6_extension_core24.get_app_snippet() == {
"command-chain": [
"snap/command-chain/gpu-2404-wrapper",
"snap/command-chain/desktop-launch6",
"$SNAP/kf6/snap/command-chain/desktop-launch6",
],
"plugs": [
"desktop",
Expand All @@ -177,7 +177,7 @@ def test_get_root_snippet(kde_neon_6_extension):
"hooks": {
"configure": {
"plugs": ["desktop"],
"command-chain": ["snap/command-chain/hooks-configure-desktop"],
"command-chain": ["$SNAP/kf6/snap/command-chain/hooks-configure-desktop"],
}
},
"layout": {
Expand Down Expand Up @@ -250,7 +250,7 @@ def test_get_root_snippet_core24(kde_neon_6_extension_core24):
"hooks": {
"configure": {
"plugs": ["desktop"],
"command-chain": ["snap/command-chain/hooks-configure-desktop"],
"command-chain": ["$SNAP/kf6/snap/command-chain/hooks-configure-desktop"],
}
},
"layout": {
Expand Down Expand Up @@ -348,7 +348,7 @@ def test_get_root_snippet_with_external_sdk(kde_neon_6_extension_with_build_snap
"hooks": {
"configure": {
"plugs": ["desktop"],
"command-chain": ["snap/command-chain/hooks-configure-desktop"],
"command-chain": ["$SNAP/kf6/snap/command-chain/hooks-configure-desktop"],
}
},
"layout": {
Expand Down Expand Up @@ -423,7 +423,7 @@ def test_get_root_snippet_with_external_sdk_core24(
"hooks": {
"configure": {
"plugs": ["desktop"],
"command-chain": ["snap/command-chain/hooks-configure-desktop"],
"command-chain": ["$SNAP/kf6/snap/command-chain/hooks-configure-desktop"],
}
},
"layout": {
Expand Down

0 comments on commit c43fe13

Please sign in to comment.