From owner-freebsd-questions@FreeBSD.ORG Sun Jul 27 16:19:17 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B53FBEB0 for ; Sun, 27 Jul 2014 16:19:17 +0000 (UTC) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 77CF429EC for ; Sun, 27 Jul 2014 16:19:17 +0000 (UTC) Received: from r56.edvax.de (port-92-195-69-249.dynamic.qsc.de [92.195.69.249]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx01.qsc.de (Postfix) with ESMTPS id 07B3D3CBE0; Sun, 27 Jul 2014 18:10:22 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id s6RGAMhQ002060; Sun, 27 Jul 2014 18:10:22 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Sun, 27 Jul 2014 18:10:22 +0200 From: Polytropon To: Charlie Subject: Re: How to set default browser without DE Message-Id: <20140727181022.87496966.freebsd@edvax.de> In-Reply-To: References: Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Jul 2014 16:19:17 -0000 On Sun, 27 Jul 2014 14:05:38 +0000 (UTC), Charlie wrote: > Hi all, > > I'm running the 'cwm' window manager without a desktop environment. > Firefox acts as my default browser; however, I'd like to switch to > Chromium. I had the same problem here: Default was Firefox, but I wanted Opera. Many programs defaultet to Firefox even though I tried to change the default. I ended up renaming the binary. ;-) > I've searched DuckDuckGo and Google high and low, and I can't seem to > figure out how I can set the default browser since I'm not using a desktop > environment. There are basically two mechanisms involved. The first one is that some programs seem to query $BROWSER, for example to display their help pages (HTML). The second one is that they call xdg-open with the file name and have that program choose the required program to open the file depending on MIME type. You'll probably have to configure this part. By trying to do so, you're entering the realm of despair. As I have to admit, I didn't get this working as desired, so I went the way described above (renamed undesired browser binary). But maybe those pointers can help you: https://wiki.archlinux.org/index.php/xdg-open#Set_the_default_browser https://wiki.archlinux.org/index.php/Default_applications If this does _not_ apply, you need to find out where the default browser is anchored within the cwm configuration, or _if_ it is related to cwm, or just handled somehow different. Good luck. :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...