skeezix [Wed, 23 Dec 2009 01:46:50 +0000 (20:46 -0500)]
Added .sh :)
vimacs [Tue, 22 Dec 2009 23:54:11 +0000 (00:54 +0100)]
renamed: pnd_button.sh -> op_menu.sh
vimacs [Tue, 22 Dec 2009 23:52:07 +0000 (00:52 +0100)]
Fixed pnd_button to work as root
modified: pnd_button.sh
skeezix [Tue, 22 Dec 2009 16:26:57 +0000 (11:26 -0500)]
Added X-Pandora-UID to .desktop
Changed _Source to X-Pandora-Source
Cleaned up a header collision from old copy/paste
Fixed discotest to use correct header
skeezix [Tue, 22 Dec 2009 15:33:38 +0000 (10:33 -0500)]
More with the debug
skeezix [Tue, 22 Dec 2009 15:31:24 +0000 (10:31 -0500)]
Added a bit more debug, check_login() will ignore root as a candidate, and set default $HOME to path found in filesystem as its sometimes inaccurate too early
vimacs [Mon, 21 Dec 2009 22:39:28 +0000 (23:39 +0100)]
Merge branch 'master' of git://git.openpandora.org/pandora-libraries
vimacs [Mon, 21 Dec 2009 22:38:53 +0000 (23:38 +0100)]
check if squashfs version is > 4
modified: testdata/scripts/pnd_make.sh
skeezix [Mon, 21 Dec 2009 20:41:13 +0000 (15:41 -0500)]
DEbugging :/
skeezix [Mon, 21 Dec 2009 18:13:50 +0000 (13:13 -0500)]
Added a flush option to pnd_log, which makes log-to-stdout useful
skeezix [Mon, 21 Dec 2009 17:33:28 +0000 (12:33 -0500)]
Added Comment= to .desktop emitted files, if description_en is present
Switched up category handling code, so it just blindly copies categories from PXML.xml to .desktop
skeezix [Mon, 21 Dec 2009 16:58:47 +0000 (11:58 -0500)]
UNTESTED
pndevmapperd -
- added power button option
- through in a naive try at catching the lid open/close
vimacs [Sat, 19 Dec 2009 02:53:15 +0000 (03:53 +0100)]
doh..
modified: testdata/scripts/pnd_make.sh
vimacs [Sat, 19 Dec 2009 02:43:21 +0000 (03:43 +0100)]
Merge branch 'master' of git://git.openpandora.org/pandora-libraries
skeezix [Sat, 19 Dec 2009 03:27:35 +0000 (22:27 -0500)]
Added a spin-delay at start of pndnotifyd so in theory it will wait until a user logs in; this possibly could solve the problem where sometimes pndnotifyd doesn't emit .desktops
extended evmapperd to not spam-execute script (configurable minimum separation time between runs)
extended evmapperd to pass the hold-time of key to script as first argument (argv[1], since argv[0] is job name)
vimacs [Sat, 19 Dec 2009 02:42:49 +0000 (03:42 +0100)]
forgot to add c to getopt
modified: testdata/scripts/pnd_make.sh
vimacs [Thu, 17 Dec 2009 02:35:11 +0000 (03:35 +0100)]
Merge branch 'master' of git://git.openpandora.org/pandora-libraries
skeezix [Thu, 17 Dec 2009 19:53:29 +0000 (14:53 -0500)]
Fix; introduced a core-dump that will occur when SD is not in place.
skeezix [Thu, 17 Dec 2009 18:58:08 +0000 (13:58 -0500)]
Forgot to add a deployment conf
skeezix [Thu, 17 Dec 2009 18:54:48 +0000 (13:54 -0500)]
Added basic and UNTESTED pndevmapperd to catch key events and invoke scripts
TODO:
- handle lid open/close events (toggle screen)
- get it added to init scripts and image
- handle keys .. menu -> popmenu script, key lock (?) -> toggle power mode
- does it work at all?
skeezix [Thu, 17 Dec 2009 04:12:42 +0000 (23:12 -0500)]
Added an extra log line; could be useful if you're sitting around watching logs
skeezix [Thu, 17 Dec 2009 04:11:01 +0000 (23:11 -0500)]
UNTESTED on device!
Put in a workaround for the inotify being out in space issue, maybe. At least,
pndnotifyd will try inotify and see if it notices anything; if so, continues,
otherwise bitches.
skeezix [Thu, 17 Dec 2009 03:27:39 +0000 (22:27 -0500)]
In the last couple checkins, introduced a bug where when a SD is popped out
the icons are not removed from desktop. That'll teach me to out-clever myself.
vimacs [Thu, 17 Dec 2009 02:34:18 +0000 (03:34 +0100)]
slim > slim-init
modified: testdata/scripts/pnd_run.sh
modified: testdata/sh/sudoers
skeezix [Tue, 15 Dec 2009 20:49:59 +0000 (15:49 -0500)]
Fixed a bad desktop conf for deployment
skeezix [Tue, 15 Dec 2009 16:05:48 +0000 (11:05 -0500)]
Add a couple things to TODO list so I don't forget (TODO.txt)
Remove some inaccurate comments from pndnotifyd
skeezix [Tue, 15 Dec 2009 15:50:59 +0000 (10:50 -0500)]
Added basic emit_icon_to_buffer() routine for cpasjuste; you must free its return on your own
vimacs [Sat, 12 Dec 2009 14:19:59 +0000 (15:19 +0100)]
Fixed mounting of .pnd on /
Changed gdm to slim
Updated sudoers
modified: testdata/scripts/pnd_run.sh
modified: testdata/sh/sudoers
vimacs [Fri, 11 Dec 2009 20:25:05 +0000 (21:25 +0100)]
Now detects fs appdata is on and only uses noplink aufs option if its vfat
modified: testdata/scripts/pnd_run.sh
vimacs [Fri, 11 Dec 2009 19:44:30 +0000 (20:44 +0100)]
Added noplink option to aufs, changed losetup to /sbin/losetup
Should check fs where appdata folder is on and only use noplink if apropiate
modified: testdata/scripts/pnd_run.sh
vimacs [Sun, 15 Nov 2009 05:33:00 +0000 (06:33 +0100)]
Merge branch 'master' of git://git.openpandora.org/pandora-libraries
skeezix [Wed, 9 Dec 2009 04:29:19 +0000 (23:29 -0500)]
Least interesting change ever (testdata/conf/apps so notify path includes testdata/menuapps)
skeezix [Wed, 9 Dec 2009 04:21:42 +0000 (23:21 -0500)]
Misc little fixes of last commits; ie: change interval to 5s default instead of 10
- change 'apps.autodiscovery.searchpath' to be 'everything' (desktop/menu and apps from prior to recent changes), just to make sure pmenu gets it all
- point deployment menu to correct folder
skeezix [Tue, 8 Dec 2009 21:54:23 +0000 (16:54 -0500)]
Fix path for desktop-conf; ie: icons for menu can cache in the same place as .desktop
skeezix [Tue, 8 Dec 2009 21:35:19 +0000 (16:35 -0500)]
Hacked around pndnotifyd so it supports two sets of paths now -- menu path and desktop path
ie: apps are now in SD /pandora/desktop and /pandora/menu and go to their configured .desktop emit paths
TODO: fix up discotest and conftest to not look for apps.autodiscovery.searchpath but left it in for now
vimacs [Sun, 15 Nov 2009 05:30:59 +0000 (06:30 +0100)]
Removed a c&p error
modified: pnd_make.sh
vimacs [Sun, 15 Nov 2009 02:05:08 +0000 (03:05 +0100)]
Fixed proper umounting
changed the way the loop device is determined
Some cleanup
sometimes a loop device remains active, got to find out why still
modified: testdata/scripts/pnd_run.sh
vimacs [Sun, 15 Nov 2009 00:02:53 +0000 (01:02 +0100)]
Merge branch 'master' of git://git.openpandora.org/pandora-libraries
skeezix [Fri, 20 Nov 2009 18:59:04 +0000 (13:59 -0500)]
Anothe rminor typo; damn, I must've had a bad day when I refactored this :)
skeezix [Fri, 20 Nov 2009 18:19:24 +0000 (13:19 -0500)]
Fixed typo in pnd_device.h; thanks cpas :)
skeezix [Mon, 16 Nov 2009 17:11:35 +0000 (12:11 -0500)]
Added pnd_run to 'make deploy' target
Added an error comment to pnd_run
skeezix [Mon, 16 Nov 2009 16:51:22 +0000 (11:51 -0500)]
Added pnd_run binary app for invoking a pndfile by path; the app will figure out the PXML.xml and launch params and such just as if run via pndnotidyd etc, so handy for command line launches.
App also runs from arbitrary path, pndfile does not need to be in a searchpath.
vimacs [Sun, 15 Nov 2009 00:00:40 +0000 (01:00 +0100)]
new file: testdata/scripts/pnd_button.sh
take care of menu button
Added -c to create squashfs pnd
Now also eats squashfs
vimacs [Sat, 14 Nov 2009 23:10:33 +0000 (00:10 +0100)]
modified: genpxml.sh
skeezix [Thu, 12 Nov 2009 20:06:55 +0000 (15:06 -0500)]
pndnotifyd now uses pnd_logger to do its printf madness; cleans up the code nicely.
pndnotifyd now will look in 'apps' config for pndnotifyd.loglevel to set logging level, which
is otherwise default to '1' now. (0 includes debug info as well.)
Also added a couple things to pnd_logger
skeezix [Thu, 12 Nov 2009 18:56:55 +0000 (13:56 -0500)]
Added a rudimentary yet very easy to use logger; can log to one or more targets at once, and honours level filtering
skeezix [Wed, 11 Nov 2009 15:20:13 +0000 (10:20 -0500)]
Added desc-en and preview-pic[12] to the discovery struct; man, we need to improve that whole disco-t thing someday :)
vimacs [Wed, 11 Nov 2009 12:45:58 +0000 (13:45 +0100)]
spit out PXML.xml into pnd folder
modified: pnd_make.sh
vimacs [Mon, 9 Nov 2009 21:36:19 +0000 (22:36 +0100)]
Merge branch 'master' of git://git.openpandora.org/pandora-libraries
vimacs [Mon, 9 Nov 2009 21:34:15 +0000 (22:34 +0100)]
Fixed stupid error that prevented -m and -u to work without -e
modified: pnd_run.sh
vimacs [Mon, 2 Nov 2009 23:33:28 +0000 (00:33 +0100)]
Some more cleaning and commenting, "check" some params.
modified: pnd_run.sh
vimacs [Mon, 2 Nov 2009 01:52:50 +0000 (02:52 +0100)]
Some cleanup in pnd_run, removed zip support and mounting without union
also added some comments
modified: pnd_run.sh
vimacs [Sun, 1 Nov 2009 16:49:27 +0000 (17:49 +0100)]
Set permissions for appdata folder
modified: pnd_run.sh
modified: ../sh/sudoers
vimacs [Sun, 1 Nov 2009 16:27:38 +0000 (17:27 +0100)]
Some more cleanup after closing a pnd, /pandora/appdata now gets removed as well if empty
modified: pnd_run.sh
modified: sudoers
vimacs [Sun, 1 Nov 2009 14:47:53 +0000 (15:47 +0100)]
Cleaned up the init script a bit
modified: pndnotifyd
vimacs [Sat, 31 Oct 2009 21:09:03 +0000 (22:09 +0100)]
Edited sudoers once more, duh
modified: sudoers
vimacs [Sat, 31 Oct 2009 21:01:17 +0000 (22:01 +0100)]
Updated sudoers to work with latest scripts
modified: sudoers
user [Sat, 31 Oct 2009 20:49:05 +0000 (21:49 +0100)]
Updated support scripts
modified: genpxml.sh
modified: pnd_make.sh
modified: pnd_run.sh
skeezix [Sun, 11 Oct 2009 12:45:31 +0000 (08:45 -0400)]
Fixed a memleak I recently added
skeezix [Sat, 10 Oct 2009 23:32:37 +0000 (19:32 -0400)]
Remove dependancy on pnd_keytype.h since it stinks :)
skeezix [Sat, 10 Oct 2009 22:51:08 +0000 (18:51 -0400)]
Turn bitmask into discrete array refs; thats how code was before I cleaned it up and bugged it.
Really would love to remove those global vars and convert it to a bitmask, but another day
skeezix [Sat, 10 Oct 2009 22:44:25 +0000 (18:44 -0400)]
Added pnd_io_gpio.[ch] and pnd_keytype_h and updated Makefile -- inhale some cpasjuste raw IO code
-- should save peopel writing their own code, or perhaps they can model code after this.
-- its a little goofy, but what can you say .. clean it up later
skeezix [Sat, 10 Oct 2009 16:49:09 +0000 (12:49 -0400)]
Updating to vimacs current pair of scripts - genpxml and pnd_make
skeezix [Sat, 10 Oct 2009 15:45:38 +0000 (11:45 -0400)]
Numerous fixes and changes
- a fix to invokers of the pnd_locate_filename function; you must strdup() the result .. otherwise multiple invocations will
return the same buffer, and thus all references will change simultaneously
- nohup is only put into Exec= line .desktop if it is also a no-x11 app (most apps should be x11 I imagine, using SDL?)
- Icons for .desktops can be placed anywhere; path is configured .. 'iconpath' key; nolonger assumed to be same location
as .desktop's go to
- updated config files to include iconpath (test goes to testdata/dotdesktop for now); production goes to /tmp for now
- updated config files so .desktop goes to ~/Desktop for production
- updated config files to comment out pnd_hup script, as xfce appears not to need it. (it may be re-enabled should we switch WMs)
skeezix [Sat, 10 Oct 2009 14:30:46 +0000 (10:30 -0400)]
expand_tilde in pnd_utility now understands that ~ actually maps to the logged in users homedir --
ie: In the event pndnotifyd is run as root from init/etc, and finds ~ in the dot-desktop emit path,
it should figure out tha actual user's homedir, not roots.
NOTE: This is for expand-tilde and not functions that depend on wordexp() -- ie: searchpaths, where
~ would be a standard shell expansion for the user who ran the job
skeezix [Sat, 10 Oct 2009 08:50:37 +0000 (04:50 -0400)]
Added in rudimentary category support for dotdesktop file emitting; ie: PXML's category will pass through a new config file that attempts to map them to a freedesktop standard category
Also included some possibly sensible defaults for categories
Fixed a hard to spot parsing bug in pnd_tinyxml (& instead of |, bad dflem ;) so categories are pulled in correctly now
- really, we should fix up the pxml struct (and disco struct) to have trees instead of fixedcount fields
- really really, we should fix disco-t to be derived from pxml-t to avoid the duplication; when it was simpler I thought it was a good idea to separate disco and pxml structures, but they're too fat now :/
skeezix [Fri, 9 Oct 2009 18:49:04 +0000 (14:49 -0400)]
Bringing in patches from cpasjuste
skeezix [Wed, 10 Jun 2009 09:25:02 +0000 (05:25 -0400)]
Moved path determination to pnd_apps (more likely people will see it, and makes sense.) Could also be
pnd_utility maybe, but meh.
Made get_ro_mountpoint and get_appdata_path for clarifying the two mountpoints.. 99% will want
get_appdata_path
skeezix [Wed, 10 Jun 2009 05:44:42 +0000 (01:44 -0400)]
Refreshed pnd_run and sudoers scripts from wiki
Added support for 'no_x11' option in PXML.xml (and subsequently in emit_dotdesktop and pnd_apps_exec)
-> untested
Added pnd_pnd_mount and pnd_pnd_unmount in pnd_pndfiles, so apps can mount and find screenshots and such
-> untested
Added basic validator app (doesn't do anything, we need to add some regexp's in there!)
Added some new element names in pnd_pxml_names etc for the tinyxml parser
skeezix [Wed, 10 Jun 2009 03:16:21 +0000 (23:16 -0400)]
Added basic pndvalidator app, though it doesn't actually validate anyone. <- fill me in please ;)
Added <package name="foo" released="bar"/> to PXML parser
David-John Willis [Wed, 20 May 2009 13:01:41 +0000 (14:01 +0100)]
Initial import of the Matchbox/GTK theme for the GUI elements.
David-John Willis [Mon, 18 May 2009 15:19:31 +0000 (16:19 +0100)]
Edit Makefile
skeezix [Wed, 1 Apr 2009 13:57:28 +0000 (09:57 -0400)]
Removed -n (no union) from .desktop Exec
skeezix [Wed, 1 Apr 2009 13:55:10 +0000 (09:55 -0400)]
Added -b UNIQUEID to both .desktop and to pnd_app_exec() -- why don't these two things share common code?
Added /usr/bin/nohup to .desktop
Need to figure out when to use -x to pnd_run to kill X11
skeezix [Wed, 1 Apr 2009 13:23:45 +0000 (09:23 -0400)]
And again
skeezix [Wed, 1 Apr 2009 13:23:19 +0000 (09:23 -0400)]
Added CXX to Makefile to crosscompile should work right
skeezix [Wed, 25 Mar 2009 01:47:19 +0000 (21:47 -0400)]
Merged in changes from dflemstr (thanks!)
Fixed a couple NULLs in there (well fixed, or a quick hack to cover 'em up, whichever :)
Redid sample apps to use new PXML format so they actually provide info to discotest
skeezix [Fri, 13 Mar 2009 13:50:45 +0000 (09:50 -0400)]
revert change to deployment conf (where .desktop files go)
skeezix [Sat, 7 Mar 2009 13:02:28 +0000 (08:02 -0500)]
Added crosscompile env var to ar and ranlib too
skeezix [Sat, 7 Mar 2009 11:19:35 +0000 (06:19 -0500)]
Fixed the init script to start/stop pndnotifyd for release
skeezix [Sat, 7 Mar 2009 10:33:47 +0000 (05:33 -0500)]
Brought over pnd_hup.sh
Added CROSSCOMPILE env to gcc in hopes of making djw's life easier
skeezix [Sat, 7 Mar 2009 07:00:37 +0000 (02:00 -0500)]
added very basic docs for pndnotifyd
skeezix [Sat, 7 Mar 2009 06:47:49 +0000 (01:47 -0500)]
Slight config change
skeezix [Sat, 7 Mar 2009 06:43:14 +0000 (01:43 -0500)]
Created pnd_desktop.[ch] pair, to contain relocated dotdesktop and icon stuff
Relocated hup-script config key/default to pnd_desktop
Figured that app searchpath was being misused -- using for both app searchpath and notify searchpath, so
created new config entry for notify searchpath; ie: you might wish to notify on /media so that dirs
created by automount will be detected, but you may not wish to find .pnd files in that path (since it
recurses and would thus find apps on the entire SD card.)
skeezix [Sat, 7 Mar 2009 06:09:00 +0000 (01:09 -0500)]
Added support for a hup script; if the pnd.hupscript key is within the 'apps' config, then after emitting .desktop files pndnotifyd will attempt to invoke the
hupscript, which could in turn hup the launcher application (to let it know to rescan)
Fiddled with re-setting-up-notifiers after autodiscovery (to handle newly mounted directories, in case user downloads an app on-device, or uses the shell, etc),
but led to some odd situations. (ie: shutting down and reopening the inotify fd seemed to cause it to immediately need a rescan, so could repeat 2 or 3 times..)
skeezix [Sat, 7 Mar 2009 04:59:14 +0000 (23:59 -0500)]
Mostly changes to pndnotify, to facilitate HUP to reload conf, and to add watches to newly found directories (and their subdirs)
Added backlight control to pnd_device as well as clock-get (all untested)
Added a free to pnd_notify to avoid leakage
skeezix [Sat, 7 Mar 2009 03:36:08 +0000 (22:36 -0500)]
Fix to support arg change in pnd_run.sh; applied previously to pnd_apps_exec(), but forgot to do it here :(
skeezix [Sat, 7 Mar 2009 03:22:56 +0000 (22:22 -0500)]
Added globbing support for all searchpaths! (can now search /media/*/pandora/apps say)
Altered Makefile to create media/mmcblk0p1 type dirs in the deployment directory; makes pndnotifyd life easier
Changed configs to allow for wildcards
Added second testdata appdir, to prove ./testdata/app? will pick up both dirs
skeezix [Fri, 6 Mar 2009 05:18:06 +0000 (00:18 -0500)]
Fix for utility
skeezix [Fri, 6 Mar 2009 04:37:03 +0000 (23:37 -0500)]
Changed deployment desktop conf to point to ~/.applications for .desktop
skeezix [Fri, 6 Mar 2009 04:35:28 +0000 (23:35 -0500)]
Added support for "~" expansion in the dotdesktop-path (and only in that place, in pndnotifyd)
skeezix [Fri, 6 Mar 2009 03:40:07 +0000 (22:40 -0500)]
Fix default paths for conf location
skeezix [Fri, 6 Mar 2009 00:58:22 +0000 (19:58 -0500)]
Fixed bug where would crash during merge override PXML if no unique-id
skeezix [Fri, 6 Mar 2009 00:40:20 +0000 (19:40 -0500)]
Merged updated scripts from vimacs, updated Makefile with some deployment rules
skeezix [Wed, 25 Feb 2009 18:17:45 +0000 (13:17 -0500)]
Switched -u to -n for pnd_run
Made -u optional, now requires a flag ORed in to get it
Made rel_startdir optional
Made a few args required
skeezix [Wed, 25 Feb 2009 18:06:49 +0000 (13:06 -0500)]
Added a 'flags' arg to pnd_apps_exec
Added option PND_EXEC_OPTION_BLOCK to require libpnd to hang until child process completes.
skeezix [Wed, 25 Feb 2009 17:23:08 +0000 (12:23 -0500)]
For fun, adding basic default Categories line to .desktop
skeezix [Wed, 25 Feb 2009 17:16:18 +0000 (12:16 -0500)]
Fix for dotdesktop to match spec; need the proper [header] line
skeezix [Tue, 24 Feb 2009 05:27:23 +0000 (00:27 -0500)]
updated todo list
skeezix [Tue, 24 Feb 2009 05:15:52 +0000 (00:15 -0500)]
Some fixes for startdir in .desktop