mirror of
https://github.com/vhaudiquet/mymachine.git
synced 2025-12-18 20:16:05 +00:00
Fixed multiple messages
This commit is contained in:
@@ -119,7 +119,7 @@ extra_init() {
|
|||||||
# TODO: Install jellyfin-media-player
|
# TODO: Install jellyfin-media-player
|
||||||
|
|
||||||
# Install android-studio
|
# Install android-studio
|
||||||
sudo snap install android-studio --classic
|
sudo snap install android-studio --classic >/dev/null 2>&1
|
||||||
|
|
||||||
# TODO: Install zen browser
|
# TODO: Install zen browser
|
||||||
|
|
||||||
|
|||||||
5
gnome.sh
5
gnome.sh
@@ -68,7 +68,10 @@ configure_dash2dock_settings() {
|
|||||||
|
|
||||||
configure_wallpapers_settings() {
|
configure_wallpapers_settings() {
|
||||||
if ! [ -d "/home/${USERNAME}/Images/Wallpapers" ]; then
|
if ! [ -d "/home/${USERNAME}/Images/Wallpapers" ]; then
|
||||||
git clone --depth 1 https://github.com/vhaudiquet/wallpapers "/home/${USERNAME}/Images/Wallpapers"
|
git clone --depth 1 https://github.com/vhaudiquet/wallpapers "/home/${USERNAME}/Images/Wallpapers" >/dev/null 2>&1
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
echo -e "${BRed}Could not download wallpapers. Skipping.${NC}"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
${DBUS_LAUNCH} dconf write /org/gnome/shell/extensions/azwallpaper/slideshow-directory "'/home/${USERNAME}/Images/Wallpapers'"
|
${DBUS_LAUNCH} dconf write /org/gnome/shell/extensions/azwallpaper/slideshow-directory "'/home/${USERNAME}/Images/Wallpapers'"
|
||||||
|
|||||||
@@ -153,8 +153,12 @@ source "${script_dir}/gnome.sh"
|
|||||||
# Create gnome/gdm user info file
|
# Create gnome/gdm user info file
|
||||||
if ! [ -z "${USER_PICTURE_URL}" ]; then
|
if ! [ -z "${USER_PICTURE_URL}" ]; then
|
||||||
echo "Downloading user profile picture..."
|
echo "Downloading user profile picture..."
|
||||||
curl -L -o "/var/lib/AccountsService/icons/${USERNAME}" "${USER_PICTURE_URL}"
|
curl -L -o "/var/lib/AccountsService/icons/${USERNAME}" "${USER_PICTURE_URL}" >/dev/null 2>&1
|
||||||
echo -e "[User]\nSession=\nIcon=/var/lib/AccountsService/icons/${USERNAME}\nSystemAccount=false\n" > /var/lib/AccountsService/users/${USERNAME}
|
if [ $? -ne 0 ]; then
|
||||||
|
echo -e "${BRed}Could not download user profile picture. Skipping.${NC}"
|
||||||
|
else
|
||||||
|
echo -e "[User]\nSession=\nIcon=/var/lib/AccountsService/icons/${USERNAME}\nSystemAccount=false\n" > /var/lib/AccountsService/users/${USERNAME}
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Install VSCode extensions
|
# Install VSCode extensions
|
||||||
|
|||||||
Reference in New Issue
Block a user