It's kind of hit and miss, because the Splashtop environment doesn't have many packages, and the ones it has aren't very up to date, but, here's how I do it.
The .sqx's are nothing but SquashFS v3.0 FS's. I mention the filesystem version, 3.0, because any deviation on that causes Splashtop to not boot.
Inside the .sqx, there is a script in the root level, named vactl. It's required, and here's the contents of the default ones.
- Code: Select all
#! /bin/sh
case "$1" in
init|mount)
echo "VA *Program Name* Initializing..."
mount -o remount,append:$(pwd)/bin=ro /bin
mount -o remount,append:$(pwd)/etc=ro /etc
mount -o remount,append:$(pwd)/usr=ro /usr
;;
esac
This script merges the /bin, /etc, and /usr files from the SQX into the main FS, so /usr/foobar in the sqx would be accessable from /usr/foobar on the main filesystem.
To make something appear on the dock, you need 2 files.
/usr/share/applications/vainfo-<Program Name>.desktop, which needs to contain the following code, modified to the sqx's needs:
- Code: Select all
[Desktop Entry]
Version=1.1
Type=Application
Encoding=UTF-8
Name=<Tooltip Name>
Comment=<Comment about program>
TryExec=
Exec=<Path to executable>
Icon=<Icon name>
MimeType=
and, an icon, 48x48 PNG format, in /usr/share/pixmaps. To reference the icon in the .desktop file, the path to /usr/share/pixmaps is inferred, so you just call it the direct path, such as 'Firefox.png', not '/usr/share/pixmaps/Firefox.png'
I'd suggest putting your applications in their own folder in /usr/, such as /usr/firefox/, which the built in OS uses.
If you need any clarification, don't hesitate to ask, I'll help you through it if you need. Also, this may not be the clearest post, I wrote it at 1:30 AM.