-
Notifications
You must be signed in to change notification settings - Fork 443
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create an interim desktop-launch to execute the command-chain in the kf6
runtime. Following the gnome way.
- Loading branch information
1 parent
696ef98
commit c5d0705
Showing
7 changed files
with
61 additions
and
8 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-fonts 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,5 @@ | ||
#!/bin/bash | ||
|
||
set -- "${SNAP}/kf6/command-chain/desktop-launch6" "$@" | ||
# 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}/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-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 "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" |
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
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