From 9818e5d0ba430f76880bc4eaea14abfad0a9219e Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Feb 25 2017 11:46:05 +0000 Subject: Merge pull request #1062 from keijukainen/linux-check-folders-exist Fixes warnings on Linux when library and fxs folders don't exist --- diff --git a/toonz/sources/toonz/CMakeLists.txt b/toonz/sources/toonz/CMakeLists.txt index 2b9a044..f446341 100644 --- a/toonz/sources/toonz/CMakeLists.txt +++ b/toonz/sources/toonz/CMakeLists.txt @@ -484,6 +484,14 @@ if [ ! -d \$HOME/.config/OpenToonz/stuff ]; then cp -r \$OPENTOONZ_BASE/share/opentoonz/stuff \$HOME/.config/OpenToonz fi +if [ ! -d \$HOME/.config/OpenToonz/stuff/projects/library ]; then + mkdir -p \$HOME/.config/OpenToonz/stuff/projects/library +fi + +if [ ! -d \$HOME/.config/OpenToonz/stuff/projects/fxs ]; then + mkdir -p \$HOME/.config/OpenToonz/stuff/projects/fxs +fi + if [ ! -e \$HOME/.config/OpenToonz/SystemVar.ini ]; then cat << EOF > $HOME/.config/OpenToonz/SystemVar.ini [General]