uzbl-mobile
14 years agoGeneral code and comment cleanups in cookie_daemon.py
Mason Larobina [Mon, 10 Aug 2009 09:00:15 +0000 (17:00 +0800)]
General code and comment cleanups in cookie_daemon.py

14 years agoFix docstring
Mason Larobina [Sun, 9 Aug 2009 07:42:06 +0000 (15:42 +0800)]
Fix docstring

14 years agoFix wording in docstring.
Mason Larobina [Sun, 9 Aug 2009 07:14:21 +0000 (15:14 +0800)]
Fix wording in docstring.

14 years agocookie_daemon.py now has a 9.78/10 pylint rating.
Mason Larobina [Sun, 9 Aug 2009 07:08:09 +0000 (15:08 +0800)]
cookie_daemon.py now has a 9.78/10 pylint rating.

14 years agoMerge branch 'cookie_daemon' into experimental
Mason Larobina [Sat, 8 Aug 2009 18:05:36 +0000 (02:05 +0800)]
Merge branch 'cookie_daemon' into experimental

14 years agoMinor changes to cookie_daemon.py
Mason Larobina [Sat, 8 Aug 2009 18:05:10 +0000 (02:05 +0800)]
Minor changes to cookie_daemon.py

14 years agoCleaned up trailing whitespace.
Mason Larobina [Sat, 8 Aug 2009 17:18:24 +0000 (01:18 +0800)]
Cleaned up trailing whitespace.

14 years agoAdd option to cookie_daemon.py to not write cookies to disk.
Tom Adams [Sat, 8 Aug 2009 16:57:48 +0000 (17:57 +0100)]
Add option to cookie_daemon.py to not write cookies to disk.

14 years agoAdded link to cookie_daemon.py wiki page.
Mason Larobina [Sat, 8 Aug 2009 16:58:40 +0000 (00:58 +0800)]
Added link to cookie_daemon.py wiki page.

14 years agoRemoved redundant --daemon-mode command & fixed broken socket errors
Mason Larobina [Sat, 8 Aug 2009 16:50:45 +0000 (00:50 +0800)]
Removed redundant --daemon-mode command & fixed broken socket errors

14 years agoMerge branch 'experimental' into cookie_daemon
Mason Larobina [Sat, 8 Aug 2009 15:14:42 +0000 (23:14 +0800)]
Merge branch 'experimental' into cookie_daemon

14 years agoMerge branch 'experimental' of git://github.com/Dieterbe/uzbl into experimental
Mason Larobina [Sat, 8 Aug 2009 15:13:52 +0000 (23:13 +0800)]
Merge branch 'experimental' of git://github.com/Dieterbe/uzbl into experimental

14 years agoAdded command line options to cookie_daemon.py
Mason Larobina [Sat, 8 Aug 2009 12:54:31 +0000 (20:54 +0800)]
Added command line options to cookie_daemon.py

14 years agoremoved unused prototype
Robert Manea [Fri, 7 Aug 2009 21:18:21 +0000 (23:18 +0200)]
removed unused prototype

14 years agoremove base_url
Robert Manea [Fri, 7 Aug 2009 21:12:35 +0000 (23:12 +0200)]
remove base_url

14 years agoremoved html_mode in favour of "data URI scheme"
Robert Manea [Fri, 7 Aug 2009 21:11:54 +0000 (23:11 +0200)]
removed html_mode in favour of "data URI scheme"

14 years agoRemoved trailing whitespace from cookie_daemon.py
Mason Larobina [Sat, 1 Aug 2009 16:11:38 +0000 (00:11 +0800)]
Removed trailing whitespace from cookie_daemon.py

14 years agoMerge branch 'experimental' into cookie_daemon
Mason Larobina [Sat, 1 Aug 2009 16:00:07 +0000 (00:00 +0800)]
Merge branch 'experimental' into cookie_daemon

14 years agoFix code comment.
Mason Larobina [Sat, 1 Aug 2009 15:59:41 +0000 (23:59 +0800)]
Fix code comment.

14 years agoMerge branch 'experimental' of git://github.com/Dieterbe/uzbl into experimental
Mason Larobina [Thu, 30 Jul 2009 22:36:29 +0000 (06:36 +0800)]
Merge branch 'experimental' of git://github.com/Dieterbe/uzbl into experimental

14 years agoRemoved trailing whitespace from uzbl_tabbed.py
Mason Larobina [Thu, 30 Jul 2009 16:51:59 +0000 (00:51 +0800)]
Removed trailing whitespace from uzbl_tabbed.py

14 years agoImprovements made to the uzbl_tabbed.py fifo init and fifo cleanup code.
Mason Larobina [Thu, 30 Jul 2009 16:44:09 +0000 (00:44 +0800)]
Improvements made to the uzbl_tabbed.py fifo init and fifo cleanup code.

14 years agofix conflicts
Robert Manea [Thu, 30 Jul 2009 13:24:00 +0000 (15:24 +0200)]
fix conflicts

14 years agoMerge branch 'experimental' into cookie_daemon
Mason Larobina [Thu, 30 Jul 2009 13:15:04 +0000 (21:15 +0800)]
Merge branch 'experimental' into cookie_daemon

14 years agoMerge branch 'experimental' of git://github.com/Dieterbe/uzbl into experimental
Mason Larobina [Thu, 30 Jul 2009 13:00:06 +0000 (21:00 +0800)]
Merge branch 'experimental' of git://github.com/Dieterbe/uzbl into experimental

Conflicts:
uzbl.c

14 years agoalignment
Robert Manea [Thu, 30 Jul 2009 11:54:47 +0000 (13:54 +0200)]
alignment

14 years agodocument custom variables and the update_gui command
Robert Manea [Wed, 29 Jul 2009 20:59:26 +0000 (22:59 +0200)]
document custom variables and the update_gui command

14 years agoremoved obsolete comment
Robert Manea [Wed, 29 Jul 2009 20:54:13 +0000 (22:54 +0200)]
removed obsolete comment

14 years agoAdded helmut to AUTHORS
Robert Manea [Wed, 29 Jul 2009 20:52:02 +0000 (22:52 +0200)]
Added helmut to AUTHORS

14 years agoMerge branch 'robhelmut' of http://gnarfk.homelinux.org/~helmut/uzbl
Robert Manea [Wed, 29 Jul 2009 20:44:01 +0000 (22:44 +0200)]
Merge branch 'robhelmut' of gnarfk.homelinux.org/~helmut/uzbl

14 years agoMerge branch 'helmutexp' into robhelmut
Helmut Grohne [Wed, 29 Jul 2009 20:46:32 +0000 (22:46 +0200)]
Merge branch 'helmutexp' into robhelmut

14 years agoMerge branch 'helmut' into helmutexp
Helmut Grohne [Wed, 29 Jul 2009 20:46:14 +0000 (22:46 +0200)]
Merge branch 'helmut' into helmutexp

14 years agofixed wrong n2v_p local variable conversion
Helmut Grohne [Wed, 29 Jul 2009 20:45:53 +0000 (22:45 +0200)]
fixed wrong n2v_p local variable conversion

14 years agocast fixes
Robert Manea [Wed, 29 Jul 2009 20:43:59 +0000 (22:43 +0200)]
cast fixes

14 years agoconverted further void**ptr usages to union
Helmut Grohne [Wed, 29 Jul 2009 20:36:45 +0000 (22:36 +0200)]
converted further void**ptr usages to union

14 years agoMerge branch 'helmutexp' into rob
Helmut Grohne [Wed, 29 Jul 2009 20:25:15 +0000 (22:25 +0200)]
Merge branch 'helmutexp' into rob

Conflicts:
uzbl.c
uzbl.h

14 years agoMerge branch 'helmut' into helmutexp
Helmut Grohne [Wed, 29 Jul 2009 20:14:26 +0000 (22:14 +0200)]
Merge branch 'helmut' into helmutexp

Conflicts:
uzbl.c

14 years agoadded more /*@null@*/ and const annotations
Helmut Grohne [Wed, 29 Jul 2009 20:11:21 +0000 (22:11 +0200)]
added more /*@null@*/ and const annotations

14 years agofixed possible memory leak in find_xdg_file
Helmut Grohne [Wed, 29 Jul 2009 20:10:55 +0000 (22:10 +0200)]
fixed possible memory leak in find_xdg_file

14 years agofixed possible null pointer dereference
Helmut Grohne [Wed, 29 Jul 2009 19:30:41 +0000 (21:30 +0200)]
fixed possible null pointer dereference

14 years agomade get_exp_type return an enum as it should
Helmut Grohne [Wed, 29 Jul 2009 19:06:01 +0000 (21:06 +0200)]
made get_exp_type return an enum as it should

14 years agomade global variable n2v_p be local
Helmut Grohne [Wed, 29 Jul 2009 19:03:25 +0000 (21:03 +0200)]
made global variable n2v_p be local

14 years agoMerge branch 'helmut' into helmutexp
Helmut Grohne [Wed, 29 Jul 2009 13:05:32 +0000 (15:05 +0200)]
Merge branch 'helmut' into helmutexp

Conflicts:
uzbl.c

14 years agofixed strndup -> g_strndup using free -> g_free
Helmut Grohne [Wed, 29 Jul 2009 11:53:09 +0000 (13:53 +0200)]
fixed strndup -> g_strndup using free -> g_free

14 years agomade this void **ptr; a union to remove magic
Helmut Grohne [Wed, 29 Jul 2009 11:45:31 +0000 (13:45 +0200)]
made this void **ptr; a union to remove magic

14 years agoadded a gsize -> int cast for gcc
Helmut Grohne [Wed, 29 Jul 2009 11:45:03 +0000 (13:45 +0200)]
added a gsize -> int cast for gcc

14 years agouse g_strndup instead of strndup
Helmut Grohne [Wed, 29 Jul 2009 10:28:59 +0000 (12:28 +0200)]
use g_strndup instead of strndup

14 years agoremoved useless MAX_BINDINGS macro
Helmut Grohne [Wed, 29 Jul 2009 10:28:01 +0000 (12:28 +0200)]
removed useless MAX_BINDINGS macro

14 years agoapplied helmut's expand() patch
Robert Manea [Tue, 28 Jul 2009 18:19:28 +0000 (20:19 +0200)]
applied helmut's expand() patch

14 years agoAdded simple command line option parsing to uzbl_tabbed.py
Mason Larobina [Tue, 28 Jul 2009 16:56:35 +0000 (00:56 +0800)]
Added simple command line option parsing to uzbl_tabbed.py

14 years agoChecks uzbl in window mode before setting/getting window geometry.
Mason Larobina [Tue, 28 Jul 2009 15:32:08 +0000 (23:32 +0800)]
Checks uzbl in window mode before setting/getting window geometry.

14 years agoadded some splint comments
Helmut Grohne [Tue, 28 Jul 2009 12:29:07 +0000 (14:29 +0200)]
added some splint comments

14 years agoimproved expand function
Helmut Grohne [Tue, 28 Jul 2009 12:22:31 +0000 (14:22 +0200)]
improved expand function

 * removed unneeded variables
 * put an end to fixed length buffer ret
 * fixed a bug where string[-1] could be accessed

14 years agouse EXIT_* macros instead of numerical values
Helmut Grohne [Tue, 28 Jul 2009 12:19:14 +0000 (14:19 +0200)]
use EXIT_* macros instead of numerical values

14 years agopass char* as const char * where possible
Helmut Grohne [Tue, 28 Jul 2009 12:18:36 +0000 (14:18 +0200)]
pass char* as const char * where possible

14 years agoClose socket after the handle_request function not inside handle_request
Mason Larobina [Mon, 27 Jul 2009 16:17:12 +0000 (00:17 +0800)]
Close socket after the handle_request function not inside handle_request

14 years agocookie_daemon.py now deletes abandoned cookie daemon sockets.
Mason Larobina [Mon, 27 Jul 2009 15:36:52 +0000 (23:36 +0800)]
cookie_daemon.py now deletes abandoned cookie daemon sockets.

14 years agoAlso chmod(cookie_jar, 0600) in cookie_daemon.py
Mason Larobina [Sun, 26 Jul 2009 15:15:39 +0000 (23:15 +0800)]
Also chmod(cookie_jar, 0600) in cookie_daemon.py

14 years agoremove obsolete code
Robert Manea [Sun, 26 Jul 2009 15:08:49 +0000 (17:08 +0200)]
remove obsolete code

14 years agoFix comment, minor update.
Mason Larobina [Sun, 26 Jul 2009 14:58:11 +0000 (22:58 +0800)]
Fix comment, minor update.

14 years agoSeveral bug fixes to cookie_daemon.py
Mason Larobina [Sun, 26 Jul 2009 14:44:31 +0000 (22:44 +0800)]
Several bug fixes to cookie_daemon.py

14 years agoVerbosify cookie_daemon.py
Mason Larobina [Sun, 26 Jul 2009 09:45:22 +0000 (17:45 +0800)]
Verbosify cookie_daemon.py

14 years agoMerge branch 'experimental' of git://github.com/Dieterbe/uzbl
Robert Manea [Sun, 26 Jul 2009 07:04:43 +0000 (09:04 +0200)]
Merge branch 'experimental' of git://github.com/Dieterbe/uzbl

14 years agosanity fix
Robert Manea [Sun, 26 Jul 2009 07:03:51 +0000 (09:03 +0200)]
sanity fix

14 years agoUpdate docstring.
Mason Larobina [Sat, 25 Jul 2009 23:01:14 +0000 (07:01 +0800)]
Update docstring.

14 years agoTypo fix.
Mason Larobina [Sat, 25 Jul 2009 22:58:41 +0000 (06:58 +0800)]
Typo fix.

14 years agoInitial commit of cookie_daemon.py
Mason Larobina [Sat, 25 Jul 2009 22:52:28 +0000 (06:52 +0800)]
Initial commit of cookie_daemon.py

14 years agoindentation fix
Mason Larobina [Sat, 25 Jul 2009 22:51:06 +0000 (06:51 +0800)]
indentation fix

14 years agoMerge branch 'experimental' of git://github.com/Dieterbe/uzbl into experimental
Mason Larobina [Sat, 25 Jul 2009 21:20:01 +0000 (05:20 +0800)]
Merge branch 'experimental' of git://github.com/Dieterbe/uzbl into experimental

14 years agovar_name_to_ptr should have const names
Helmut Grohne [Sat, 25 Jul 2009 20:44:58 +0000 (22:44 +0200)]
var_name_to_ptr should have const names

14 years agomade type field for uzbl_cmdprop an enum
Helmut Grohne [Sat, 25 Jul 2009 20:44:38 +0000 (22:44 +0200)]
made type field for uzbl_cmdprop an enum

14 years agofix declaration for initialize()
Helmut Grohne [Sat, 25 Jul 2009 20:43:27 +0000 (22:43 +0200)]
fix declaration for initialize()

14 years agocmd_load_uri doesn't take parameters
Helmut Grohne [Sat, 25 Jul 2009 20:43:01 +0000 (22:43 +0200)]
cmd_load_uri doesn't take parameters

14 years agofixed buffer overrun
Helmut Grohne [Sat, 25 Jul 2009 20:42:32 +0000 (22:42 +0200)]
fixed buffer overrun

14 years agoextended CFLAGS to get debugging and warnings
Helmut Grohne [Sat, 25 Jul 2009 20:41:15 +0000 (22:41 +0200)]
extended CFLAGS to get debugging and warnings

14 years agogit should ignore examples/config/enchant
Helmut Grohne [Sat, 25 Jul 2009 20:40:11 +0000 (22:40 +0200)]
git should ignore examples/config/enchant

14 years agomerge in ruskies font family patch
Dieter Plaetinck [Sat, 25 Jul 2009 20:34:25 +0000 (22:34 +0200)]
merge in ruskies font family patch

14 years agoadd lwithers to authors file
Dieter Plaetinck [Sat, 25 Jul 2009 19:48:55 +0000 (21:48 +0200)]
add lwithers to authors file

14 years agodocument talk_to_socket
Dieter Plaetinck [Sat, 25 Jul 2009 19:47:29 +0000 (21:47 +0200)]
document talk_to_socket

14 years agouzbl.c, uzbl.h: added _font_family variables
ruskie [Sat, 25 Jul 2009 19:03:53 +0000 (21:03 +0200)]
uzbl.c, uzbl.h: added _font_family variables

14 years agotalk_to_socket: split arguments in packet with \0
Laurence Withers [Sat, 25 Jul 2009 18:11:40 +0000 (18:11 +0000)]
talk_to_socket: split arguments in packet with \0

In the packet that is written to the daemon via talk_to_socket(), we were
previously using a space to separate each argument, and asking uzbl to quote
the arguments as though for the shell. This just makes life complicated since
we have to undo this in the daemon.

This commit changes the behaviour so that arguments are delimited by ASCII
nul (\0) in the packet. The daemon can thus unambiguously determine where
each argument ends and the next begins.

14 years agofix overrun in expand()
Robert Manea [Sat, 25 Jul 2009 15:34:39 +0000 (17:34 +0200)]
fix overrun in expand()

14 years agoadded update_gui command
Robert Manea [Sat, 25 Jul 2009 09:48:57 +0000 (11:48 +0200)]
added update_gui command

14 years agoMerge branch 'custom-vars'
Robert Manea [Sat, 25 Jul 2009 09:33:54 +0000 (11:33 +0200)]
Merge branch 'custom-vars'

14 years agoremove unnecessary check
Robert Manea [Sat, 25 Jul 2009 09:32:42 +0000 (11:32 +0200)]
remove unnecessary check

14 years agoremove unnecessary g_strdup()
Robert Manea [Fri, 24 Jul 2009 15:26:54 +0000 (17:26 +0200)]
remove unnecessary g_strdup()

14 years agofix malloc() bug
Robert Manea [Fri, 24 Jul 2009 15:21:54 +0000 (17:21 +0200)]
fix malloc() bug

14 years agoUse #!/usr/bin/env python instead of #!/usr/bin/python
Mason Larobina [Fri, 24 Jul 2009 13:04:08 +0000 (21:04 +0800)]
Use #!/usr/bin/env python instead of #!/usr/bin/python

14 years agotrying fix
Robert Manea [Fri, 24 Jul 2009 12:41:47 +0000 (14:41 +0200)]
trying fix

14 years agore-fix typo
Robert Manea [Fri, 24 Jul 2009 11:53:46 +0000 (13:53 +0200)]
re-fix typo

14 years agoadded custom vars, currently somewhat broken
Robert Manea [Fri, 24 Jul 2009 11:37:48 +0000 (13:37 +0200)]
added custom vars, currently somewhat broken

14 years agoMerge branch 'experimental' of git://github.com/Dieterbe/uzbl
Robert Manea [Fri, 24 Jul 2009 11:11:06 +0000 (13:11 +0200)]
Merge branch 'experimental' of git://github.com/Dieterbe/uzbl

Conflicts:
uzbl.c
uzbl.h

14 years agostatusbar fix
Robert Manea [Fri, 24 Jul 2009 11:10:00 +0000 (13:10 +0200)]
statusbar fix

14 years agoAdd talk_to_socket handler
Laurence Withers [Wed, 22 Jul 2009 19:46:43 +0000 (19:46 +0000)]
Add talk_to_socket handler

This handler talks directly to a daemon using a Unix SOCK_SEQPACKET socket,
allowing e.g. cookie handlers to be implemented without having to fork and
and execute an external program or script interpreter.

A little explanation of the functioning of talk_to_socket():

 1. We receive our argument as a string in the format of "HANDLER EXTRA_ARGS".
 2. Copy "HANDLER" into our Unix socket address structure and connect to that
    address (blocking). Error out if connection fails.
 3. Write "EXTRA_ARGS" to the socket. Error out if writing fails.
 4. Use poll() to wait for a response, timing out after 500ms of inactivity.
 5. Use ioctl(FIONREAD) to find out how long the pending datagram is.
 6. Allocate an appropriately sized buffer (len+1) and write a null at the
    end, so our output is always null-terminated no matter what.
 7. Read from socket into buffer. Error out if read fails.
 8. Close socket.

14 years agoBugfix: Accidentally broke non-json session loading.
Mason Larobina [Wed, 22 Jul 2009 09:35:29 +0000 (17:35 +0800)]
Bugfix: Accidentally broke non-json session loading.

14 years agoAdded dependencies section to the top of uzbl_tabbed.py
Mason Larobina [Wed, 22 Jul 2009 09:03:49 +0000 (17:03 +0800)]
Added dependencies section to the top of uzbl_tabbed.py

14 years agoMade json_session false by default.
Mason Larobina [Wed, 22 Jul 2009 08:50:14 +0000 (16:50 +0800)]
Made json_session false by default.

14 years agobugfix: uzbl_tabbed.py crashed when loading old format session file
Mason Larobina [Wed, 22 Jul 2009 05:48:51 +0000 (13:48 +0800)]
bugfix: uzbl_tabbed.py crashed when loading old format session file

14 years agoAdded session preset adding/saving/listing/deleting.
Mason Larobina [Wed, 22 Jul 2009 04:25:42 +0000 (12:25 +0800)]
Added session preset adding/saving/listing/deleting.

14 years agoHuge refactorisation of session handling in uzbl_tabbed.py
Mason Larobina [Tue, 21 Jul 2009 13:38:58 +0000 (21:38 +0800)]
Huge refactorisation of session handling in uzbl_tabbed.py