projects
/
browser-switch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update webpage
[browser-switch]
/
dbus-server-bindings.c
diff --git
a/dbus-server-bindings.c
b/dbus-server-bindings.c
index
b29b1ab
..
939056b
100644
(file)
--- a/
dbus-server-bindings.c
+++ b/
dbus-server-bindings.c
@@
-51,7
+51,10
@@
static void open_address(const char *uri) {
/* Not much to do in this case ... */
return;
/* Not much to do in this case ... */
return;
+ printf("open_address '%s'\n", uri);
if (uri[0] == '/') {
if (uri[0] == '/') {
+ /* URI begins with a '/' -- assume it points to a local file
+ and prefix with "file://" */
new_uri_len = strlen("file://") + strlen(uri) + 1;
if (!(new_uri = calloc(new_uri_len, sizeof(char))))
exit(1);
new_uri_len = strlen("file://") + strlen(uri) + 1;
if (!(new_uri = calloc(new_uri_len, sizeof(char))))
exit(1);
@@
-62,7
+65,6
@@
static void open_address(const char *uri) {
we need to clean up after ourselves */
free(new_uri);
} else {
we need to clean up after ourselves */
free(new_uri);
} else {
- printf("open_address '%s'\n", uri);
launch_browser(&ctx, (char *)uri);
}
}
launch_browser(&ctx, (char *)uri);
}
}