View previous topic :: View next topic |
Author |
Message |
Linubie Guru


Joined: 11 Jun 2004 Posts: 393
|
|
Back to top |
|
 |
Banana Moderator


Joined: 21 May 2004 Posts: 1905 Location: Germany
|
|
Back to top |
|
 |
Erdie Advocate


Joined: 20 May 2004 Posts: 2656 Location: Heidelberg - Germany
|
Posted: Wed Jan 08, 2025 5:35 pm Post subject: |
|
|
Als vorübergehender Workaroud könnte dieses Skript dienen:
Code: |
#!/bin/bash
# file to work with
FILE="$HOME/.config/user-dirs.dirs"
# check if exist
if [[ -f "$FILE" ]]; then
# replace
sed -i 's|XDG_TEMPLATES_DIR="$HOME/"|XDG_TEMPLATES_DIR="$HOME/Templates"|' "$FILE"
# check, if sucessfull
if grep -q 'XDG_TEMPLATES_DIR="$HOME/Templates"' "$FILE"; then
echo "line sucessfull replaced."
else
echo "Unable to make the required changes."
fi
else
echo "File $FILE does not exist."
fi
|
_________________ Desktop AMD Ryzen 9 5900X 32GB RAM, Asus GF GTX 1060.
Notebook Tuxedo Pulse 15 Gen1 AMD Ryzen 7 4800H mit Radeon Vega 7
Raspberry Pi 1 + 2 + 3B+ + Zero W |
|
Back to top |
|
 |
|