-
Notifications
You must be signed in to change notification settings - Fork 452
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(kde-neon-6): add core24 support
Allows core24 snaps to use the kde-neon and kde-neon-6 extensions.
- Loading branch information
1 parent
6a2b36b
commit db150e4
Showing
17 changed files
with
1,298 additions
and
132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/usr/bin/make -f | ||
|
||
BIN_DIR := $(DESTDIR)/snap/command-chain | ||
GPU_WRAPPER := | ||
|
||
scripts = hooks-configure-desktop desktop-launch run $(GPU_WRAPPER) | ||
|
||
*: | ||
install -D -m755 "$@" "$(BIN_DIR)"/"$@" | ||
|
||
install: $(scripts) | ||
|
||
.PHONY: $(scripts) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
|
||
if [ "$QT_VERSION" == "6" ]; then | ||
|
||
set -- "${SNAP}/kf6/snap/command-chain/desktop-launch6" "$@" | ||
# shellcheck source=/dev/null | ||
source "${SNAP}/snap/command-chain/run" | ||
|
||
elif [ "$QT_VERSION" == "5" ]; then | ||
|
||
set -- "${SNAP}/kf5/snap/command-chain/desktop-launch" "$@" | ||
# shellcheck source=/dev/null | ||
source "${SNAP}/snap/command-chain/run" | ||
|
||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
|
||
set -- "${SNAP}/gpu-2404/bin/gpu-2404-provider-wrapper" "$@" | ||
# shellcheck source=/dev/null | ||
source "${SNAP}/snap/command-chain/run" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
|
||
set -- "${SNAP}/kf6/command-chain/hooks-configure-desktop" "$@" | ||
# shellcheck source=/dev/null | ||
source "${SNAP}/snap/command-chain/run" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
|
||
set -- "${SNAP}/kf6/command-chain/hooks-configure-fonts" "$@" | ||
# shellcheck source=/dev/null | ||
source "${SNAP}/snap/command-chain/run" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/bash | ||
|
||
if [ -z "$1" ]; then | ||
echo "Usage: run <command>" | ||
exit 1 | ||
fi | ||
|
||
if [ -z "${SNAP}" ]; then | ||
echo "Not running inside a snap context: SNAP not declared" | ||
exit | ||
fi | ||
|
||
|
||
if [ ! -f "$1" ]; then | ||
echo "Content snap command-chain for $1 not found: ensure slot is connected" | ||
exit | ||
fi | ||
|
||
# emulate "exec $@" using "source" | ||
# have to disable "unused variables" because checkshell doesn't know that $BASH_ARGV0 is $0 | ||
# shellcheck disable=SC2034 # Unused variables left for readability | ||
BASH_ARGV0=$1 | ||
shift | ||
# shellcheck source=/dev/null | ||
source "$0" |
Oops, something went wrong.