Citrix Workspace App: Set default store


Source: Download script

Last Updated: 11. September 2025 by Agnete Moos (agms@sonderborg.dk)

Parameters:

Navn Type Standardværdi Påkrævet
Click to see the source code
#!/bin/bash

set -x

if get_os2borgerpc_config os2_product | grep --quiet kiosk; then
  echo "Dette script er ikke designet til at blive anvendt på en kiosk-maskine."
  exit 1
fi

STORE_DIR=/home/.skjult/.ICAClient/cache/Stores

STORE_NAME=$1
DEFAULT_STORE=$2

if [ -z "$DEFAULT_STORE" ] && [ -z "$STORE_NAME" ]; then
    echo "WARNING: Missing argument(s). Not able to set default citrix store."
    exit 1
fi

if [ ! -d "$STORE_DIR" ]; then
    mkdir -p "$STORE_DIR"
fi

if [ ! -f "$STORE_DIR/StoreCache.ctx" ]; then
    touch "$STORE_DIR/StoreCache.ctx"
fi

cat << EOF > "$STORE_DIR/StoreCache.ctx"

    $DEFAULT_STORE
    False
    False
    False
    0
    True
    False
    
        $DEFAULT_STORE
    


EOF



Beskrivelse

Udviklet og testet i samarbejde med Vordingborg kommune.

Sætter citrix “default store” på en given PC.

Dette script er ikke blevet testet på Ubuntu 22.04. Skriv til os, hvis I oplever problemer.

Parametre

1) store name 2) default store