skeezix [Mon, 15 Feb 2010 19:29:48 +0000 (14:29 -0500)]
Merge branch 'master' of ssh://skeezixgit@git.openpandora.org/srv/git/pandora-libraries
skeezix [Mon, 15 Feb 2010 19:28:52 +0000 (14:28 -0500)]
Added a param to inotify flags; seems to detect removal of SDs much better now
vimacs [Mon, 15 Feb 2010 18:52:03 +0000 (19:52 +0100)]
Merge branch 'master' of git://git.openpandora.org/pandora-libraries
vimacs [Mon, 15 Feb 2010 18:51:31 +0000 (19:51 +0100)]
modified: testdata/scripts/op_menu.sh
skeezix [Mon, 15 Feb 2010 18:49:18 +0000 (13:49 -0500)]
Added 'seconds since first log line' to pnd_logger
pndnotifyd should now ignore a rediscover request within 2s of past one, maybe avoid a few 'redraws'
skeezix [Mon, 15 Feb 2010 14:54:55 +0000 (09:54 -0500)]
Added pnd_info.c since I'm an idiot
skeezix [Mon, 15 Feb 2010 14:45:05 +0000 (09:45 -0500)]
Makefile rule, copy pnd_info into deployment tree
skeezix [Mon, 15 Feb 2010 14:41:47 +0000 (09:41 -0500)]
Minor fixes for a couple 'uninitialized vars' that gcc here wasn't informing me of :)
skeezix [Mon, 15 Feb 2010 04:19:38 +0000 (23:19 -0500)]
Added -l option to pndevmapperd, same as in pndnotifyd
Previous push, added pnd_info for userland inspection of PXML.xml -- say user wants to know how to install an app or something
skeezix [Mon, 15 Feb 2010 03:31:02 +0000 (22:31 -0500)]
pndnotifyd logging was already available (just drop the -d on command line, and redirect to file; log level was in conf file..)
-- but now you can just add -l to command line to cause it to go go debuglevel and spit out to /tmp/pndnotifyd.log
-- can actualyl do -l#, where # is log level, default is 0 (all)
pnd_logger now has set_buried_logging() which lets you turn on logging in libpnd API that doesn't normally log, such as
the discovery code; this way we can log some deep-shit, if we really want to
skeezix [Sun, 14 Feb 2010 05:05:47 +0000 (00:05 -0500)]
Added <mkdir> to PXML.xml wherein pndnotifyd will attempt to create some directories on the SD card hosting the pnd-file, when directed to.
Shoudl be used sparingly, bt coudl be handy for guiding user to a needed path, or implying canonicle paths
vimacs [Sat, 13 Feb 2010 12:26:03 +0000 (13:26 +0100)]
fixed x restarting, last commit fixed a bug that didnt exist in that way...
modified: testdata/scripts/pnd_run.sh
vimacs [Sat, 13 Feb 2010 12:19:58 +0000 (13:19 +0100)]
detaching and killing x should work now, maybe
modified: testdata/scripts/pnd_run.sh
vimacs [Tue, 9 Feb 2010 21:10:01 +0000 (22:10 +0100)]
added -j, join | mounts aditional folder into the union
modified: testdata/scripts/pnd_run.sh
vimacs [Sun, 10 Jan 2010 15:03:33 +0000 (16:03 +0100)]
op_lidtoggle.sh > op_lid.sh
modified: deployment/etc/pandora/conf/eventmap
vimacs [Fri, 8 Jan 2010 07:19:15 +0000 (08:19 +0100)]
modified: testdata/scripts/op_menu.sh
vimacs [Thu, 31 Dec 2009 03:13:31 +0000 (04:13 +0100)]
fixed sudoers?
modified: testdata/sh/sudoers
vimacs [Thu, 31 Dec 2009 02:32:13 +0000 (03:32 +0100)]
modified: testdata/scripts/op_power.sh
vimacs [Thu, 31 Dec 2009 02:02:05 +0000 (03:02 +0100)]
modified: testdata/scripts/op_lid.sh
vimacs [Thu, 31 Dec 2009 01:59:34 +0000 (02:59 +0100)]
new file: testdata/scripts/op_lid.sh
vimacs [Sat, 26 Dec 2009 21:28:02 +0000 (22:28 +0100)]
Fixed op_menu if no x is running and added screen poweroff and cpu slowdown to power button script
modified: testdata/scripts/op_menu.sh
modified: testdata/scripts/op_power.sh
vimacs [Sat, 26 Dec 2009 21:14:48 +0000 (22:14 +0100)]
added op_power, untested!
new file: testdata/scripts/op_power.sh
vimacs [Sat, 26 Dec 2009 10:45:10 +0000 (11:45 +0100)]
Fixed sudoers so exec on aufs doesnt fail.
modified: testdata/sh/sudoers
vimacs [Fri, 25 Dec 2009 16:47:07 +0000 (17:47 +0100)]
Merge branch 'master' of git://git.openpandora.org/pandora-libraries
vimacs [Fri, 25 Dec 2009 16:46:03 +0000 (17:46 +0100)]
Fixed sudoers, i think
modified: testdata/sh/sudoers
skeezix [Wed, 23 Dec 2009 01:47:18 +0000 (20:47 -0500)]
Added .sh
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