Last active
August 10, 2024 18:56
-
-
Save archisman-panigrahi/cd571ddea1aa2c5e2b4fa7bcbee7d5df to your computer and use it in GitHub Desktop.
Snixembed installer for Debian/Ubuntu/Mint/RPiOS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Install the dependencies | |
sudo apt update | |
sudo apt install build-essential valac git libdbusmenu-gtk3-dev -y | |
# Download with git | |
cd /tmp | |
git clone https://git.sr.ht/~steef/snixembed | |
# Open directory | |
cd snixembed | |
# Compile | |
make | |
# Install | |
sudo make install | |
# Remove vala (build dependency) | |
sudo apt remove valac -y | |
sudo apt autoremove -y | |
# Define the contents of the .desktop file | |
desktop_entry="[Desktop Entry] | |
Type=Application | |
Name=snixembed | |
Exec=snixembed --fork" | |
# Create the directory if it doesn't exist | |
mkdir -p /etc/xdg/autostart | |
# Save the contents to snixembed.desktop | |
echo "$desktop_entry" > /etc/xdg/autostart/snixembed.desktop | |
# Provide confirmation to the user | |
echo "" | |
echo "" | |
echo "----------------" | |
echo "Successfully installed snixembed" | |
echo "Added snixembed to autostart" | |
echo "Please reboot your computer" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment