nixpkgs/pkgs/by-name/yo/yourkit-java/forbid-desktop-item-creation
2024-01-05 11:53:33 -08:00

17 lines
335 B
Plaintext

CONFIG_DIR=$YS/config
if [ ! -d $CONFIG_DIR ]; then
mkdir -p $CONFIG_DIR
fi
REGISTRY=$CONFIG_DIR/registry8.xml
if [ ! -e $REGISTRY ]; then
cat >$REGISTRY <<EOF
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<registry8>
<desktop-file.created>
<boolean value="true"/>
</desktop-file.created>
</registry8>
EOF
fi