-
Notifications
You must be signed in to change notification settings - Fork 28
/
postinst
executable file
·25 lines (20 loc) · 1016 Bytes
/
postinst
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh
# Stop on errors.
set -e
# Creating Startup Link.
echo $HOME
echo "Registering as startup application..."
# This should prevent the double entry.
echo "[Desktop Entry]" > "$HOME/.config/autostart/bingwallpaper.desktop"
echo "Type=Application" >> "$HOME/.config/autostart/bingwallpaper.desktop"
echo "Exec=/usr/bin/bingwallpaper" >> "$HOME/.config/autostart/bingwallpaper.desktop"
echo "Hidden=false" >> "$HOME/.config/autostart/bingwallpaper.desktop"
echo "NoDisplay=false" >> "$HOME/.config/autostart/bingwallpaper.desktop"
echo "X-GNOME-Autostart-enabled=true" >> "$HOME/.config/autostart/bingwallpaper.desktop"
echo "Name=Bing Wallpaper" >> "$HOME/.config/autostart/bingwallpaper.desktop"
echo "Comment=Bing Pic of the day as wallpaper." >> "$HOME/.config/autostart/bingwallpaper.desktop"
# Misc Info.
echo "All the images will eventually be available at: $HOME/Pictures/Bing/"
echo "Bing wallpaper will be updated on next reboot."
echo "Run \"bingwallpaper\" to update wallpaper now."
#DEBHELPER#