You're getting the xwalk binary path, this is incorrect for get AppDir on linux. So far, I have no idea about how package are supportted on Linux. I'd suggest to not support APPDIR on Linux now.