(→New desktop-definiton file for SyncCal)
(→New desktop-definiton file for SyncCal)
|Line 140:||Line 140:|
If you want to have a special icon for your new application see free e.g. [http://www.100000freecliparts.com/clipart/Icons/index.html
If you want to have a special icon for your new application see free e.g. [http://www.100000freecliparts.com/clipart/Icons/index.html ] and scale them in the 22x22 and 128x128. Store the icons in the following directories both with the name syncal.png
Revision as of 23:45, 27 November 2010
under Qt Extended.
You can start applications that need the X-Server with the following steps in QtMoko:
- Open Main Menu by clicking on the green Q-Topia "Q"-Box.
- Open Applications (4 Boxes, red, yellow, green, blue)
- Scroll down and open QX
- Select the application that needs the X-Server (e.g. Navit)
- Click on the white Paper Icon on the bottom left to open the context menu of the QX application.
- Select "Launch" to start application
With the AUX-Button you can exit the X-Server environment without quitting the application.
- In Settings you can change the launch settings of the selected application
- with Favourites you can select the predefined applications you can add to your favourites menu.
QX is the X-Server in QtMoko you can add favorites to the QX-Menu too by manual editing the files in:
detemines the list of application you will see after starting QX. The file looks like this:
[Apps] list=navit, tangogps
The applicationsnames must exist and need an entry in the profiles.conf file. The file
defines the QX-settings for the application. E.g. navit needs the GPS-daemon to be started and the auto-dim function of the display is disabled. These settings can be defined for the applications individually. The file contain profile records like the following for tangogps and navit:
[tangogps] antidim=true antisuspend=true gps=true init=gpsd /dev/ttySAC1 kbd=false qvga=false rotate=false wm=true [navit] antidim=true antisuspend=true gps=true init=gpsd /dev/ttySAC1 kbd=false qvga=false rotate=false wm=true
Add to QX-Favourites
You have installed or programmed an application with the name myapp. Test the application in the QX-terminal if it works properly. Now we add this application myapp to the application list in favourites.conf. We do this e.g. with vi:
# vi /opt/qtmoko/etc/qx/favourites.conf
The file look like this (press "I" for switching to INSERT mode):
[Apps] list=navit, tangogps, myapp
Add myapp press ESC and :w for "write to file" and ":q" for "quit VI".
| NOTE: You can not use an arbitrary program for myapp (e.g. a shell script with xdialog). You can use only applications the have a desktop-definition file in the directory:
If you want to use your own scripts in QX with an icon, create a desktop-definition file first (see navit.desktop as example below) and save this file in /usr/share/applications.
Now we have to add a profile record for myapp in file profiles.conf. We do this e.g. with vi:
# vi /opt/qtmoko/etc/qx/profiles.conf
The file is depended on your settings could look like this and e.g. the following lines (press "I" for switching to INSERT mode):
[myapp] antidim=false antisuspend=true gps=false init= kbd=false qvga=false rotate=false wm=false
Then press "ESC" and ":w" for "write to file" and ":q" for "quit VI".
The favourites in QX are defined in the directory:
The files have the extension .desktop and have the following structure (e.g. navit.desktop is defined like this:
[Desktop Entry] Version=1.0 Name=Navit Name[de]=Navit Name[fr]=Navit Comment=The open source vector based navigation program with routing engine Comment[de]=Ein vektorbasiertes Navigationsprogramm Comment[fr]=Le logiciel opensource de navigation vectorielle Exec=navit Icon=navit StartupNotify=true Terminal=false Type=Application Categories=GTK;Utility;Geography; GenericName=Navit GenericName[de]=Navit
You can define the
- Comment and
- Generic Name
for differnent languages. The main variable is Exec=..., because it defines the command executed, when you click on the icon in QX.
New desktop-definiton file for SyncCal
As an example we want to use the shellscript of [Mossroy] for syncing and iCal-file into the Qt-Calendar (see QtMoko). We call the desktop-definition file synccal.desktop
[Desktop Entry] Version=1.0 Name=SyncCal Name[de]=SyncCal Name[fr]=SyncCal Comment=Syncing remote and local ics-file into Qt-Calendar. Comment[de]=Ein perlbasiertes Script fuer den import ics-Dateien in den Qt-Kalender Exec=synccal Icon=syncal StartupNotify=true Terminal=false Type=Application Categories=GTK;Utility;Dialog; GenericName=SyncCal GenericName[de]=SyncCal
If you want to have a special icon for your new application see free e.g. 100000 Free Clipart and scale them in the 22x22 and 128x128. Store the icons in the following directories both with the name syncal.png
You just have to remove the application name from the list of applications in:
You do not need to remove the application profile for your application in profiles.conf.