A shepherd for your Appimages.
0

Configure Feed

Select the types of activity you want to include in your feed.

safer envvar parsing

Aly Raffauf (Jun 17, 2026, 3:50 PM EDT) 7665ea56 d1b2501a

+10 -1
+1 -1
cmd/appherder/exec.go
··· 28 28 29 29 args := []string{} 30 30 for _, token := range tokens[executableIndex+1:] { 31 - if isStrippedDesktopExecCode(token) || isEnvVar(token) { 31 + if isStrippedDesktopExecCode(token) { 32 32 continue 33 33 } 34 34 args = append(args, token)
+9
cmd/appherder/exec_test.go
··· 43 43 assertTokens(t, got, want) 44 44 } 45 45 46 + func TestPatchExecCommandKeepsPositionalKeyValueArgument(t *testing.T) { 47 + got := mustSplit(t, patchExecCommand( 48 + "upstream-app --set key=value %U", 49 + "/home/test/AppImages/example.appimage", 50 + )) 51 + want := []string{"env", "DESKTOPINTEGRATION=1", "/home/test/AppImages/example.appimage", "--set", "key=value", "%U"} 52 + assertTokens(t, got, want) 53 + } 54 + 46 55 func mustSplit(t *testing.T, cmd string) []string { 47 56 t.Helper() 48 57