diff options
Diffstat (limited to 'packages')
29 files changed, 317 insertions, 65 deletions
diff --git a/packages/angstrom/angstrom-version.bb b/packages/angstrom/angstrom-version.bb index c4ea6e2a21..ece77495b1 100644 --- a/packages/angstrom/angstrom-version.bb +++ b/packages/angstrom/angstrom-version.bb @@ -1,3 +1,5 @@ +LICENSE = "MIT" + PV = "${DISTRO_VERSION}" PR = "r1" PE = "1" diff --git a/packages/e17/e-wm_svn.bb b/packages/e17/e-wm_svn.bb index 172d351b22..1000ebf86d 100644 --- a/packages/e17/e-wm_svn.bb +++ b/packages/e17/e-wm_svn.bb @@ -2,17 +2,18 @@ DESCRIPTION = "The Enlightenment Window Manager Version 17" DEPENDS = "eet evas ecore edje efreet edbus" LICENSE = "MIT BSD" PV = "0.16.999.043+svnr${SRCREV}" -PR = "r20" +PR = "r21" inherit e update-alternatives -RDEPENDS += "shared-mime-info mime-support edje-utils" +E_RDEPENDS = "shared-mime-info mime-support edje-utils" # Uclibc build don't have 'glibc-utils' # I suspect the workaround below breaks eglibc, though. Koen - 20081125 -RDEPENDS_${PN}_append_linux = " glibc-utils " -RDEPENDS_${PN}_append_linux-uclibc = " uclibc-utils " -RDEPENDS_${PN}_append_linux-uclibcgnueabi = " uclibc-utils " +RDEPENDS_${PN}_append_linux = " ${E_RDEPENDS} glibc-utils " +RDEPENDS_${PN}_append_linux-gnueabi = " ${E_RDEPENDS} glibc-utils " +RDEPENDS_${PN}_append_linux-uclibc = " ${E_RDEPENDS} uclibc-utils " +RDEPENDS_${PN}_append_linux-uclibcgnueabi = " ${E_RDEPENDS} uclibc-utils " PACKAGES =+ "\ ${PN}-config-default \ diff --git a/packages/e17/elementary-alarm_svn.bb b/packages/e17/elementary-alarm_svn.bb index 63d0c36083..4294f2fad1 100644 --- a/packages/e17/elementary-alarm_svn.bb +++ b/packages/e17/elementary-alarm_svn.bb @@ -7,8 +7,8 @@ PR = "r1" inherit e -SRC_URI = "svn://svn.enlightenment.org/svn/e/trunk/TMP/st;module=alarm;proto=http" -S = "${WORKDIR}/alarm" +SRC_URI = "svn://svn.enlightenment.org/svn/e/trunk/TMP/st;module=elementary-alarm;proto=http" +S = "${WORKDIR}/elementary-alarm" RDEPENDS = "waker" FILES_${PN} += "${bindir}/*" diff --git a/packages/efl1/elementary_svn.bb b/packages/efl1/elementary_svn.bb index 13523996dc..caf2c37e85 100644 --- a/packages/efl1/elementary_svn.bb +++ b/packages/efl1/elementary_svn.bb @@ -2,7 +2,7 @@ DESCRIPTION = "An EFL based Alarm app" LICENSE = "MIT BSD" DEPENDS = "evas ecore edje eet edbus" PV = "0.0.0+svnr${SRCREV}" -PR = "r1" +PR = "r2" inherit efl @@ -12,6 +12,12 @@ S = "${WORKDIR}/elementary" RDEPENDS = "elementary-themes" RRECOMMENDS = "elementary-tests" +do_compile_append() { + sed -i -e s:${STAGING_DIR_TARGET}::g \ + -e s:/${TARGET_SYS}::g \ + elementary.pc +} + FILES_${PN}-themes = "\ ${datadir}/elementary/themes \ " diff --git a/packages/freesmartphone/frameworkd-devel_git.bb b/packages/freesmartphone/frameworkd-devel_git.bb index 9438b6d768..acd41dcaf5 100644 --- a/packages/freesmartphone/frameworkd-devel_git.bb +++ b/packages/freesmartphone/frameworkd-devel_git.bb @@ -1,7 +1,9 @@ require frameworkd_git.bb FILESPATH = "${@base_set_filespath([ '${FILE_DIRNAME}/frameworkd', '${FILE_DIRNAME}/files', '${FILE_DIRNAME}' ], d)}" +PROVIDES = "frameworkd" +DEFAULT_PREFERENCE = "-1" -PR="r1" +PR = "r2" SRC_URI = "\ ${FREESMARTPHONE_GIT}/framework.git;protocol=git;branch=master \ diff --git a/packages/freesmartphone/fso-apm_git.bb b/packages/freesmartphone/fso-apm_git.bb new file mode 100644 index 0000000000..df8894852b --- /dev/null +++ b/packages/freesmartphone/fso-apm_git.bb @@ -0,0 +1,20 @@ +DESCRIPTION = "freesmartphone.org apm compatibility utility" +AUTHOR = "Michael 'Mickey' Lauer <mlauer@vanille-media.de>" +HOMEPAGE = "http://www.freesmartphone.org" +SECTION = "console" +LICENSE = "GPLv2" +PV = "0.0.0+gitr${SRCREV}" +PR = "r0" + +SRC_URI = "${FREESMARTPHONE_GIT}/python-helpers.git;protocol=git;branch=master" +S = "${WORKDIR}/git" + +do_install() { + install -d ${D}${bindir} + install -m 0755 fso-apm/apm ${D}${bindir} +} + +PACKAGE_ARCH_${PN} = "all" +RDEPENDS_${PN} = "python-dbus frameworkd" +RPROVIDES_${PN} = "apm" +RCONFLICTS_${PN} = "apm" diff --git a/packages/freesmartphone/multicat_git.bb b/packages/freesmartphone/multicat_git.bb new file mode 100644 index 0000000000..fb2b332143 --- /dev/null +++ b/packages/freesmartphone/multicat_git.bb @@ -0,0 +1,21 @@ +DESCRIPTION = "Multiple cat utility" +AUTHOR = "Michael 'Mickey' Lauer <mlauer@vanille-media.de>" +HOMEPAGE = "http://www.freesmartphone.org" +SECTION = "console" +LICENSE = "GPLv2" +PV = "0.0.0+gitr${SRCREV}" +PR = "r0" + +SRC_URI = "${FREESMARTPHONE_GIT}/python-helpers.git;protocol=git;branch=master" +S = "${WORKDIR}/git" + +do_install() { + install -d ${D}${bindir} + install -m 0755 multicat/multicat ${D}${bindir} +} + +RDEPENDS_${PN} = "\ + python-core \ +" + +PACKAGE_ARCH_${PN} = "all" diff --git a/packages/git/git-native_1.5.2.3.bb b/packages/git/git-native_1.5.2.3.bb deleted file mode 100644 index 0df7f8c920..0000000000 --- a/packages/git/git-native_1.5.2.3.bb +++ /dev/null @@ -1,5 +0,0 @@ -inherit native -require git_${PV}.bb - -DEPENDS = "openssl-native curl-native zlib-native expat-native" -RDEPENDS = "" diff --git a/packages/git/git-native_1.5.3.bb b/packages/git/git-native_1.5.3.bb deleted file mode 100644 index 6b9dacbd3d..0000000000 --- a/packages/git/git-native_1.5.3.bb +++ /dev/null @@ -1,7 +0,0 @@ -require git.inc - -SRC_URI += "file://git-gui-install-mode-arg-spaces.patch;patch=1" - -inherit native -DEPENDS = "openssl-native curl-native zlib-native expat-native" -PR = "r2" diff --git a/packages/git/git_1.5.2.3.bb b/packages/git/git_1.5.2.3.bb deleted file mode 100644 index ad25a43732..0000000000 --- a/packages/git/git_1.5.2.3.bb +++ /dev/null @@ -1,26 +0,0 @@ -DESCRIPTION = "The git revision control system used by the Linux kernel developers" -SECTION = "console/utils" -LICENSE = "GPL" -PR ="r4" - -inherit autotools - -SRC_URI = "http://www.kernel.org/pub/software/scm/git/git-${PV}.tar.bz2 \ - file://autotools.patch;patch=1 \ - " - -S = "${WORKDIR}/git-${PV}" - -DEPENDS = "openssl curl zlib expat" -RDEPENDS = "perl perl-module-file-path cpio findutils sed" - -EXTRA_OEMAKE = "NO_TCLTK=1" - -do_install() { - oe_runmake install DESTDIR="${D}" bindir="${bindir}" \ - template_dir="${datadir}/git-core/templates" \ - GIT_PYTHON_DIR="${datadir}/git-core/python" -} - -FILES_${PN} += "${datadir}/git-core" - diff --git a/packages/git/git_1.5.3.bb b/packages/git/git_1.5.3.bb deleted file mode 100644 index 491bb3f7c1..0000000000 --- a/packages/git/git_1.5.3.bb +++ /dev/null @@ -1,7 +0,0 @@ -require git.inc - -SRC_URI += "file://git-gui-install-mode-arg-spaces.patch;patch=1" - -DEPENDS = "openssl curl zlib expat" -RDEPENDS = "perl perl-module-file-path cpio findutils sed" -PR = "r2" diff --git a/packages/images/beagleboard-demo-image.bb b/packages/images/beagleboard-demo-image.bb index f539c79a9d..b7fef091d6 100644 --- a/packages/images/beagleboard-demo-image.bb +++ b/packages/images/beagleboard-demo-image.bb @@ -1,5 +1,7 @@ # Demo image for beagleboard +IMAGE_LINGUAS = "de-de fr-fr en-gb pt-br es-es" + XSERVER ?= "xserver-xorg \ xf86-input-evdev \ xf86-input-mouse \ diff --git a/packages/openmoko2/libmokoui2_svn.bb b/packages/openmoko2/libmokoui2_svn.bb index 3785074a82..d52b24737f 100644 --- a/packages/openmoko2/libmokoui2_svn.bb +++ b/packages/openmoko2/libmokoui2_svn.bb @@ -5,6 +5,8 @@ PR = "r2" inherit openmoko2 +LICENSE = "LGPL" + do_configure_prepend() { touch gtk-doc.make } diff --git a/packages/python/python-rpyc_3.00.bb b/packages/python/python-rpyc_3.00.bb new file mode 100644 index 0000000000..b11856b713 --- /dev/null +++ b/packages/python/python-rpyc_3.00.bb @@ -0,0 +1,30 @@ +DESCRIPTION = "RPyC is a Remote Procedure Call Package for Python" +SECTION = "devel/python" +HOMEPAGE = "http://rpyc.wikizone.com" +LICENSE = "GPL" +SRCNAME = "rpyc" +PR = "ml0" + +SRC_URI = "${SOURCEFORGE_MIRROR}/rpyc/${SRCNAME}-${PV}-dev.tar.gz" +S = "${WORKDIR}/${SRCNAME}-${PV}-dev/build" + +inherit distutils + +do_configure_prepend() { + cd .. + rm -rf build + mkdir build + mkdir build/rpyc + + cp README build + cp setup.py build + cp __init__.py build/rpyc + cp license.py build/rpyc + cp -r core build/rpyc/ + cp -r servers build/rpyc/ + cp -r utils build/rpyc/ + + cd build + find . -name "*.pyc" | xargs rm -f +} + diff --git a/packages/tasks/task-python-everything.bb b/packages/tasks/task-python-everything.bb index 02cecbf586..ca92c246b4 100644 --- a/packages/tasks/task-python-everything.bb +++ b/packages/tasks/task-python-everything.bb @@ -1,7 +1,7 @@ DESCRIPTION= "Everything Python" HOMEPAGE = "http://www.vanille.de/projects/python.spy" LICENSE = "MIT" -PR = "ml36" +PR = "ml38" RDEPENDS = "\ python-ao \ @@ -12,7 +12,7 @@ RDEPENDS = "\ python-dialog \ task-python-efl \ task-python-efl-examples \ - python-fam \ +# python-fam \ python-fnorb \ python-formencode \ python-fpconst \ @@ -76,6 +76,7 @@ RDEPENDS = "\ python-pyxml \ python-pyxmlrpc \ python-pyyaml \ + python-rpyc \ python-scapy \ python-scons \ python-setuptools \ @@ -89,7 +90,7 @@ RDEPENDS = "\ python-spyro \ python-sqlalchemy \ python-sqlobject \ - python-sword \ +# python-sword \ python-tlslite \ python-urwid \ python-vmaps \ diff --git a/packages/tasks/task-xqtlauncher.bb b/packages/tasks/task-xqtlauncher.bb new file mode 100644 index 0000000000..3d9029e5d1 --- /dev/null +++ b/packages/tasks/task-xqtlauncher.bb @@ -0,0 +1,21 @@ +DESCRIPTION = "Tasks for xqtlauncher stuff"
+SECTION = "opie/base"
+LICENSE = "MIT"
+PR = "r0"
+
+inherit task
+
+PACKAGES = "task-xqtlauncher task-xqtlauncher-blackbox"
+
+#xkbd is currently needed becuse of a bug at xqt2
+RDEPENDS_task-xqtlauncher = "xqtlauncher \
+ xqtlauncher-xkbd-desktop \
+ "
+
+#
+# xqtlauncher with blackbox as wm
+#
+
+RDEPENDS_task-xqtlauncher-blackbox = "xqtlauncher-blackbox-config \
+ "
+
diff --git a/packages/uclibc/uclibc_0.9.30.bb b/packages/uclibc/uclibc_0.9.30.bb index 1643998983..29d83523c0 100644 --- a/packages/uclibc/uclibc_0.9.30.bb +++ b/packages/uclibc/uclibc_0.9.30.bb @@ -20,7 +20,7 @@ SRC_URI += "file://uClibc.machine file://uClibc.distro \ " SRC_URI_append_arm = " file://ldso_hash.patch;patch=1 " SRC_URI_append_armeb = " file://ldso_hash.patch;patch=1 " -SRC_URI_append_avr32 = " file://ldso_hash_arm.patch;patch=1 " +SRC_URI_append_avr32 = " file://ldso_hash.patch;patch=1 " #recent versions uclibc require real kernel headers PACKAGE_ARCH = "${MACHINE_ARCH}" diff --git a/packages/xqt2/files/fix_qtscreen_HACK.patch b/packages/xqt2/files/fix_qtscreen_HACK.patch new file mode 100644 index 0000000000..7e4b2c658a --- /dev/null +++ b/packages/xqt2/files/fix_qtscreen_HACK.patch @@ -0,0 +1,55 @@ +diff -Nur xc/../xqt2.vanilla/xfree86/xqt-driver/qtscreen.cc xc/../xqt2/xfree86/xqt-driver/qtscreen.cc +--- xc/../xqt2.vanilla/xfree86/xqt-driver/qtscreen.cc 2008-09-25 14:18:44.000000000 +0200 ++++ xc/../xqt2/xfree86/xqt-driver/qtscreen.cc 2008-09-25 14:28:30.000000000 +0200 +@@ -109,6 +109,7 @@ + desktopSize = newSize; + fullScrSize = desktopSize; + normalScrSize = fullScrSize; ++ /* FIXME: get taskbar size from opie + if (normalScrSize.height() >= 400) { + normalScrSize.setHeight( normalScrSize.height() - 38); + } else { +@@ -117,7 +118,7 @@ + + if (!g_fFullScreen) { + fullScrSize = normalScrSize; +- } ++ }*/ + + #ifdef DEBUG_SCR + normalScrSize.setHeight(640); +@@ -128,6 +129,7 @@ + setDisplaySize(); + + #ifdef QWS ++ /* FIXME: fix this more general + // zaurus hack + if (desktopSize.width() > desktopSize.height()) { + shadow.setScrRandr(270); +@@ -136,6 +138,10 @@ + shadow.setScrRandr(0); + qtRandRRotate(0); + } ++ */ ++ // until that ++ shadow.setScrRandr(0); ++ qtRandRRotate(0); + #endif + } + +@@ -148,6 +154,7 @@ + *h = fullScrSize.height(); + + #ifdef QWS ++ /* FIXME: dix this more general + // zaurus hack + if (*w > *h) { + // rotate! +@@ -155,6 +162,7 @@ + *w = *h; + *h = sw; + } ++ */ + + *depth = 16; // 16bpp ¸ÇÄê + *bits = NULL; diff --git a/packages/xqt2/xqt2_20060509.bb b/packages/xqt2/xqt2_20060509.bb index 12e210d036..731385adb4 100644 --- a/packages/xqt2/xqt2_20060509.bb +++ b/packages/xqt2/xqt2_20060509.bb @@ -5,23 +5,24 @@ LICENSE = "GPL" SECTION = "opie/applications" APPTYPE = "binary" APPNAME = "Xqt" -PR = "r2" +PR = "r3" inherit palmtop SRC_URI = "cvs://anonymous@cvs.sourceforge.jp/cvsroot/xqt;module=xqt2;method=pserver;date=${PV} \ - http://ring.asahi-net.or.jp/archives/XFree86/4.3.0/source/X430src-1.tgz \ - http://ring.asahi-net.or.jp/archives/XFree86/4.3.0/source/X430src-2.tgz \ - http://ring.asahi-net.or.jp/archives/XFree86/4.3.0/source/X430src-3.tgz \ - http://ring.asahi-net.or.jp/archives/XFree86/4.3.0/source/X430src-4.tgz \ - http://ring.asahi-net.or.jp/archives/XFree86/4.3.0/source/X430src-5.tgz \ + ftp://ftp.xfree86.org/pub/XFree86/4.3.0/source/X430src-1.tgz \ + ftp://ftp.xfree86.org/pub/XFree86/4.3.0/source/X430src-2.tgz \ + ftp://ftp.xfree86.org/pub/XFree86/4.3.0/source/X430src-3.tgz \ + ftp://ftp.xfree86.org/pub/XFree86/4.3.0/source/X430src-4.tgz \ + ftp://ftp.xfree86.org/pub/XFree86/4.3.0/source/X430src-5.tgz \ file://KeyMap.patch;patch=1 \ file://moc_call.patch;patch=1 \ file://imake-staging.patch;patch=1 \ file://cross.patch;patch=1 \ file://fephack.patch;patch=1 \ file://xchar2b.patch;patch=1 \ - file://xqt-make.patch;patch=1 " + file://xqt-make.patch;patch=1 \ + file://fix_qtscreen_HACK.patch;patch=1 " S = "${WORKDIR}/xc" QT_LIBRARY = '${@base_conditional("PALMTOP_USE_MULTITHREADED_QT", "yes", "qte-mt", "qte",d)}' diff --git a/packages/xqtlauncher/xqtlauncher-blackbox-config.bb b/packages/xqtlauncher/xqtlauncher-blackbox-config.bb new file mode 100644 index 0000000000..acd5873e5b --- /dev/null +++ b/packages/xqtlauncher/xqtlauncher-blackbox-config.bb @@ -0,0 +1,17 @@ +DESCRIPTION = "blackbox configuration for xqtlauncher which integrates X/Qt2 nicely into opie." +HOMEPAGE = "http://angstrom-distribution.org/" +LICENSE = "GPL" +PR = "r0" + +RDEPENDS = "blackbox xqtlauncher" + +SRC_URI = "file://blackboxrc \ + file://defaultwm" + +do_install() { + cd ${WORKDIR} + install -d ${D}${sysconfdir} + install -d ${D}${sysconfdir}/X11 + install -m 0666 blackboxrc ${D}${sysconfdir} + install -m 0666 defaultwm ${D}${sysconfdir}/X11/ +} diff --git a/packages/xqtlauncher/xqtlauncher-blackbox-config/blackboxrc b/packages/xqtlauncher/xqtlauncher-blackbox-config/blackboxrc new file mode 100644 index 0000000000..6c86a59a0b --- /dev/null +++ b/packages/xqtlauncher/xqtlauncher-blackbox-config/blackboxrc @@ -0,0 +1 @@ +session.screen0.toolbar.placement: TopCenter diff --git a/packages/xqtlauncher/xqtlauncher-blackbox-config/defaultwm b/packages/xqtlauncher/xqtlauncher-blackbox-config/defaultwm new file mode 100644 index 0000000000..a96cb8b9e5 --- /dev/null +++ b/packages/xqtlauncher/xqtlauncher-blackbox-config/defaultwm @@ -0,0 +1 @@ +blackbox -rc /etc/blackboxrc diff --git a/packages/xqtlauncher/xqtlauncher-xkbd-desktop.bb b/packages/xqtlauncher/xqtlauncher-xkbd-desktop.bb new file mode 100644 index 0000000000..17ba103d20 --- /dev/null +++ b/packages/xqtlauncher/xqtlauncher-xkbd-desktop.bb @@ -0,0 +1,19 @@ +DESCRIPTION = "xqtlauncher integrates X/Qt2 nicely into opie. You can launch applications with it from opies menue" +HOMEPAGE = "http://angstrom-distribution.org/" +LICENSE = "GPL" +PR = "r0" + +RDEPENDS = "xkbd xqtlauncher" + +SRC_URI = "file://xkbd.desktop" + +do_install() { + cd ${WORKDIR} + install -d ${D}${bindir} + install -d ${D}${palmtopdir}/apps/XQt2/ + install -m 0644 xkbd.desktop ${D}${palmtopdir}/apps/XQt2 + ln -sf ${bindir}/xqtlauncher ${D}${bindir}/runxkbd +} + +FILES_${PN} += "${palmtopdir}/apps/XQt2 \ + ${palmtopdir}/apps/XQt2/xkbd.desktop " diff --git a/packages/xqtlauncher/xqtlauncher-xkbd-desktop/xkbd.desktop b/packages/xqtlauncher/xqtlauncher-xkbd-desktop/xkbd.desktop new file mode 100644 index 0000000000..78decbfda0 --- /dev/null +++ b/packages/xqtlauncher/xqtlauncher-xkbd-desktop/xkbd.desktop @@ -0,0 +1,5 @@ +[Desktop Entry] +Exec=runxkbd xkbd +Icon=Xqt.png +Type=Application +Name=X/Qt2 with xkbd diff --git a/packages/xqtlauncher/xqtlauncher.bb b/packages/xqtlauncher/xqtlauncher.bb new file mode 100644 index 0000000000..0897ddb862 --- /dev/null +++ b/packages/xqtlauncher/xqtlauncher.bb @@ -0,0 +1,22 @@ +DESCRIPTION = "xqtlauncher integrates X/Qt2 nicely into opie. You can launch applications with it from opies menue" +HOMEPAGE = "http://angstrom-distribution.org/" +LICENSE = "GPL" +PR = "r0" + +RDEPENDS = "xqt2 xorg-minimal-fonts" + +SRC_URI = "file://dot.directory \ + file://startxqt \ + file://startxqt-wrapper \ + file://xqtlauncher " + +do_install() { + cd ${WORKDIR} + install -d ${D}${bindir} + install -m 0755 startxqt startxqt-wrapper xqtlauncher ${D}${bindir} + install -d ${D}${palmtopdir}/apps/XQt2/ + install -m 0644 dot.directory ${D}${palmtopdir}/apps/XQt2 +} + +FILES_${PN} += "${palmtopdir}/apps/XQt2 \ + ${palmtopdir}/apps/XQt2/.directory " diff --git a/packages/xqtlauncher/xqtlauncher/dot.directory b/packages/xqtlauncher/xqtlauncher/dot.directory new file mode 100644 index 0000000000..3c63f7f241 --- /dev/null +++ b/packages/xqtlauncher/xqtlauncher/dot.directory @@ -0,0 +1,3 @@ +[Desktop Entry] +Icon=Xqt.png +Name=X/Qt2 diff --git a/packages/xqtlauncher/xqtlauncher/startxqt b/packages/xqtlauncher/xqtlauncher/startxqt new file mode 100644 index 0000000000..b863c2e3ae --- /dev/null +++ b/packages/xqtlauncher/xqtlauncher/startxqt @@ -0,0 +1,15 @@ +#check if we are already running +if test -f /var/run/Xqt ;then + qcop QPE/TaskBar "message(QString)" "Xqt is already running!" +else + qcop QPE/TaskBar "message(QString)" "start Xqt server..." + #create run file + touch /var/run/Xqt + #setup environment - FIXME: check QTDIR first + export QTDIR=/usr/lib/opie + export DISPLAY=:0.0 + #start the server + Xqt -fp /usr/lib/X11/fonts/misc + #remove run file + rm /var/run/Xqt +fi diff --git a/packages/xqtlauncher/xqtlauncher/startxqt-wrapper b/packages/xqtlauncher/xqtlauncher/startxqt-wrapper new file mode 100644 index 0000000000..c0ac2ed8d0 --- /dev/null +++ b/packages/xqtlauncher/xqtlauncher/startxqt-wrapper @@ -0,0 +1,5 @@ +startxqt & +sleep 3 +#read and start defaultwm from /etc/X11/defaultwm +$(cat /etc/X11/defaultwm) & +sleep 2 diff --git a/packages/xqtlauncher/xqtlauncher/xqtlauncher b/packages/xqtlauncher/xqtlauncher/xqtlauncher new file mode 100644 index 0000000000..4f2c9f937c --- /dev/null +++ b/packages/xqtlauncher/xqtlauncher/xqtlauncher @@ -0,0 +1,45 @@ +#set DISPLAY +export DISPLAY=:0.0 +#check if the application is installed +if which $1 ; then + echo start $1 + #is Xqt running? + if test ! -f /var/run/Xqt ;then + #start Xqt + startxqt-wrapper + fi + #do we have atomate access? FIXME: make a function out of this and loop it + if test -f /var/lock/xqtlauncher; then + qcop QPE/TaskBar "message(QString)" "Was not able to lock access. Try again or remove /var/lock/xqtlauncher" + else + #lock access + touch /var/lock/xqtlauncher + if test -f /var/run/xqtlauncher; then + #atomate write nuber of applications running in xqt +1 + echo $(($(cat /var/run/xqtlauncher ) + 1)) > /var/run/xqtlauncher + else + echo 1 > /var/run/xqtlauncher + fi + #remove lock + rm /var/lock/xqtlauncher + #start application + $1 + #do we have atomate access? FIXME: make a function out of this and loop it + if test -f /var/lock/xqtlauncher; then + qcop QPE/TaskBar "message(QString)" "Was not able to lock access. Try again or remove /var/lock/xqtlauncher" + else + #lock access + touch /var/lock/xqtlauncher + COUNTXQT=$(($(cat /var/run/xqtlauncher ) -1)) + echo $COUNTXQT > /var/run/xqtlauncher + if [ $COUNTXQT -le 0 ] ; then + #kill Xqt if there is no application running. + killall Xqt + fi + #remove lock + rm /var/lock/xqtlauncher + fi + fi +else + qcop QPE/TaskBar "message(QString)" "Application not found" +fi |