Advertisement
Guest User

WIP - PKGBUILD for plank-themer (.install script)

a guest
Jun 9th, 2014
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.66 KB | None | 0 0
  1. post_install() {
  2.   # This does not work. It seems there's no reliable method of extracting a true username
  3.   # under a certain depth of sudo and redirected scripts, even when working from a tty.
  4.   chmod -R 644 /home/$(logname)/.config/plank/dock1/theme_index
  5.   chmod +x /home/$(logname)/.config/plank/dock1/theme_index/*.sh
  6.   chmod -R 644 /home/$(logname)/.config/plank/dock1/themes-repo
  7.   chown -R $(logname):$(logname) /home/$(logname)/.config/plank/dock1/theme_index
  8.   chown -R $(logname):$(logname) /home/$(logname)/.config/plank/dock1/themes-repo
  9.   sh /home/$(logname)/.config/plank/dock1/theme_index/plank-on-dock-themer.sh
  10. }
  11.  
  12. post_upgrade() {
  13.   post_install
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement