Fix wrapper script to pass command line arguments to xmind

Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=563562
This commit is contained in:
Chris Reffett
2015-11-20 19:06:34 -05:00
parent 15e6c749fe
commit 2af4e45b03
2 changed files with 9 additions and 1 deletions
+8
View File
@@ -0,0 +1,8 @@
#!/bin/bash
#XMind wrapper script, copies configuration stuff into the user's local config dir if either
#the files aren't there or are older than the set in /opt (indicating that XMind has been upgraded)
if [ ! -f ~/.xmind/configuration-cathy/config.ini -o ~/.xmind/configuration-cathy/config.ini -ot /opt/xmind/XMind/configuration/config.ini ]; then
mkdir -p ~/.xmind/configuration-cathy
cp -r /opt/xmind/XMind/configuration/* ~/.xmind/configuration-cathy/
fi
/opt/xmind/XMind/XMind "$@"
@@ -64,7 +64,7 @@ src_install() {
fperms a+rx "/opt/xmind/XMind/XMind"
exeinto /opt/bin
newexe "${FILESDIR}/xmind-wrapper" xmind
newexe "${FILESDIR}/xmind-wrapper-3.5.3" xmind
# install icons
local res