misc-post-stop.sh 438 B

1234567891011
  1. #!/bin/sh
  2. # Save default applications for DispVM
  3. su -c 'mkdir -p /home_volatile/user/.local/share/applications' user
  4. su -c 'cp -a /usr/share/applications/defaults.list /home_volatile/user/.local/share/applications/' user
  5. if [ -r '/home/user/.local/share/applications/defaults.list' ]; then
  6. su -c 'cat /home/user/.local/share/applications/defaults.list >> /home_volatile/user/.local/share/applications/defaults.list' user
  7. fi
  8. exit 0