#!/bin/sh # The TASKS screen. # # Psion's original was an HTML page, gpe-appmgr/tasks.html, rendered inside # gpe-appmgr and using a "launch:" URL scheme to run a command -- see # oe-netbook/gpe-appmgr/files/add-backup.patch, which is the only part of # that page which survives. The page itself was in Psion's CVS module # (GPE_APPMGR_56) and is lost, and gpe-helpviewer is not in this rootfs, so # the page cannot be restored. # # What IS recoverable is what the page did, because each entry ran one of # Psion's own task scripts and their recipes say so in as many words: # # backup "Backup script for tasks screen" -> backup.sh # iconnect "Internet connection script for tasks screen" -> iconnect.sh # mydocs "Task to specify location of My Documents" -> mydocs.sh # sync-serv "Synchonization Service for the Psion LX" -> lx_sync.sh # # and add-backup.patch names two entries directly: "Back up your # information", linked to launch:backup.sh, and "Get help". # # So this presents those tasks and runs Psion's scripts unchanged. The # chooser is zenity, which is what every one of those scripts already uses # for its own dialogs, so it matches them in appearance. CHOICE=$(zenity --list --title="Tasks" --width=460 --height=260 \ --text="What would you like to do?" \ --column="Task" \ "Connect to the Internet" \ "Back up your information" \ "Choose where your files are stored" \ "Synchronise with your PC" \ "Get help") case "$CHOICE" in "Connect to the Internet") exec /usr/bin/iconnect.sh ;; "Back up your information") exec /usr/bin/backup.sh ;; "Choose where your files are stored") exec /usr/bin/mydocs.sh ;; "Synchronise with your PC") exec /usr/bin/lx_sync.sh ;; "Get help") exec /usr/bin/gpe-what ;; *) exit 0 ;; esac