summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
616b97c)
The check-for-Tear-and-use-MicroB-otherwise hack was only until we got a
config UI. Now that we have one, it's easiest just to keep MicroB as
the default until the user configures browser-switchboard.
#include "launcher.h"
#include "dbus-server-bindings.h"
#include "launcher.h"
#include "dbus-server-bindings.h"
-#define DEFAULT_BROWSER "/usr/bin/tear"
-#define LAUNCH_DEFAULT_BROWSER launch_tear
+#define LAUNCH_DEFAULT_BROWSER launch_microb
static void launch_tear(struct swb_context *ctx, char *uri) {
int status;
static void launch_tear(struct swb_context *ctx, char *uri) {
int status;
return;
if (!default_browser) {
return;
if (!default_browser) {
- /* No default_browser configured -- use DEFAULT_BROWSER if
- installed, otherwise launch MicroB */
- if (!access(DEFAULT_BROWSER, X_OK))
- ctx->default_browser_launcher = LAUNCH_DEFAULT_BROWSER;
- else
- ctx->default_browser_launcher = launch_microb;
+ /* No default_browser configured -- use built-in default */
+ ctx->default_browser_launcher = LAUNCH_DEFAULT_BROWSER;