projects
/
browser-switch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make sure a running browserd is detected correctly on all devices
[browser-switch]
/
launcher.c
diff --git
a/launcher.c
b/launcher.c
index
9c7893b
..
02bc3eb
100644
(file)
--- a/
launcher.c
+++ b/
launcher.c
@@
-1,7
+1,7
@@
/*
* launcher.c -- functions for launching web browsers for browser-switchboard
*
/*
* launcher.c -- functions for launching web browsers for browser-switchboard
*
- * Copyright (C) 2009 Steven Luo
+ * Copyright (C) 2009-2010 Steven Luo
* Derived from a Python implementation by Jason Simpson and Steven Luo
*
* This program is free software; you can redistribute it and/or
* Derived from a Python implementation by Jason Simpson and Steven Luo
*
* This program is free software; you can redistribute it and/or
@@
-190,7
+190,7
@@
void launch_microb(struct swb_context *ctx, char *uri) {
printf("launch_microb with uri '%s'\n", uri);
/* Launch browserd if it's not running */
printf("launch_microb with uri '%s'\n", uri);
/* Launch browserd if it's not running */
- status = system("pidof /usr/sbin/browserd > /dev/null");
+ status = system("pidof browserd > /dev/null");
if (WIFEXITED(status) && WEXITSTATUS(status)) {
kill_browserd = 1;
#ifdef FREMANTLE
if (WIFEXITED(status) && WEXITSTATUS(status)) {
kill_browserd = 1;
#ifdef FREMANTLE
@@
-419,7
+419,7
@@
void launch_microb(struct swb_context *ctx, char *uri) {
/* Kill off browserd if we started it */
if (kill_browserd)
/* Kill off browserd if we started it */
if (kill_browserd)
- system("kill `pidof /usr/sbin/browserd`");
+ system("kill `pidof browserd`");
if (!ctx || !ctx->continuous_mode)
exit(0);
if (!ctx || !ctx->continuous_mode)
exit(0);