Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Applications > Mac Applications and Mac App Store

Reply
 
Thread Tools Search this Thread Display Modes
Old Feb 15, 2008, 09:54 PM   #1
iCeFuSiOn
macrumors 6502a
 
Join Date: Jul 2007
HOW-TO: Remove VLC as Default Web Browser option

Hello all,

If you're running Mac OS X and you have a copy of VLC installed for playing all of those Windows file-types, you may have noticed under Safari's preferences that the default web browser can be set to "VLC (0.8.6d)".

You're probably wondering why this happens. I was curious so I decided to dig through the files in VLC.app and inside of info.plist I found some useful information.

Info.plist contains information regarding the application, what it can do, and what types of files it can open. This also applies to links (such as url, http, etc) -- you can see this in the below code:

Code:
	<key>CFBundleURLTypes</key>
	<array>
		<dict>
			<key>CFBundleURLIconFile</key>
			<string>generic</string>
			<key>CFBundleURLName</key>
			<string>http url</string>
			<key>CFBundleURLSchemes</key>
			<array>
				<string>http</string>
			</array>
		</dict>
		<dict>
			<key>CFBundleURLIconFile</key>
			<string>generic</string>
			<key>CFBundleURLName</key>
			<string>Secure HTTP</string>
			<key>CFBundleURLSchemes</key>
			<array>
				<string>https</string>
			</array>
		</dict>
		<dict>
			<key>CFBundleURLIconFile</key>
			<string>generic</string>
			<key>CFBundleURLName</key>
			<string>ftp url</string>
			<key>CFBundleURLSchemes</key>
			<array>
				<string>ftp</string>
			</array>
		</dict>
		<dict>
			<key>CFBundleURLIconFile</key>
			<string>generic</string>
			<key>CFBundleURLName</key>
			<string>Multimedia Stream URL</string>
			<key>CFBundleURLSchemes</key>
			<array>
				<string>mms</string>
			</array>
		</dict>
		<dict>
			<key>CFBundleURLIconFile</key>
			<string>generic</string>
			<key>CFBundleURLName</key>
			<string>RTSP</string>
			<key>CFBundleURLSchemes</key>
			<array>
				<string>rtsp</string>
			</array>
		</dict>
		<dict>
			<key>CFBundleURLIconFile</key>
			<string>generic</string>
			<key>CFBundleURLName</key>
			<string>udp url</string>
			<key>CFBundleURLSchemes</key>
			<array>
				<string>udp</string>
			</array>
		</dict>
	</array>
If you're fine with axing a little bit of functionality (I don't use VLC to launch http links anyways, and I can't really imagine why it would really be wanted) then you can remove the above section of code from Info.plist.

A quick guide on doing so follows:
  1. Locate VLC (usually in /Applications)
  2. Right click on VLC and click on "Show Package Contents"
  3. Navigate to the Contents folder.
  4. Make a copy of Info.plist somewhere on your Desktop to be safe.
  5. Open Info.plist in your favorite text editor (mine's TextWrangler, you can use TextEdit if you'd like).
  6. Locate the code mentioned above and remove it from the file.
  7. Save Info.plist, make sure it's located inside of /VLC.app/Contents/.
  8. Open a new Terminal (/Applications/Utilities)
  9. Run this command: sudo update_prebinding -root / -force
  10. Close Safari if you have it open.
  11. Close the Terminal.
  12. Now go ahead and open Safari, and check the preferences. "VLC" should have been removed from the list.

If you're wondering what "sudo update_prebinding -root / -force" does, here's a run-down:

sudo: runs the command as a super user or "root".

update_prebinding: Updates the cache which stores information on installed programs and helps them load slightly faster (this is required for the new Info.plist information to take effect. You could probably reboot if you're really worried about running this command but I haven't tried it).
-root : Specifies the OS installation disk (/ is the boot volume).

/ : Boot volume

-force : This option will regenerate the shared cache files even if they appear to be already up-to-date.

If you've lost your default .plist, you'll find it in the .ZIP I've attached to this post. I've also included the modified .plist for the sake of keeping it simple.

NOTE: Info.plist includes the version number as well. If you update VLC on a regular basis you may want to manually remove the information specified above instead of using one of the attached files. I cannot be held responsible if VLC somehow breaks.

Tested with VLC 0.8.6d on Mac OS X 10.5.2. Enjoy!
Attached Files
File Type: zip VLC0.8.6d_Info.plist.zip (4.1 KB, 22 views)
__________________
iCeFuSiOn
Switched to Apple on 01/15/2008!
15" MacBook Pro 2.2 GHz
8 GB iPod touch
iCeFuSiOn is offline   0 Reply With Quote
Old Feb 17, 2008, 09:55 PM   #2
isus
macrumors regular
 
Join Date: Jan 2004
Didn't work. The only difference in my setup is that I'm running WebKit 30153.
isus is offline   0 Reply With Quote
Old Feb 18, 2008, 04:55 PM   #3
iCeFuSiOn
Thread Starter
macrumors 6502a
 
Join Date: Jul 2007
Quote:
Originally Posted by isus View Post
Didn't work. The only difference in my setup is that I'm running WebKit 30153.
Hmm, strange. Does it show in the actual Safari application vs. Webkit? (I know they're the same thing, but just asking for the sake of figuring out what happened here).
__________________
iCeFuSiOn
Switched to Apple on 01/15/2008!
15" MacBook Pro 2.2 GHz
8 GB iPod touch
iCeFuSiOn is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Applications > Mac Applications and Mac App Store

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
weird problem on web browser for Macbook Pro jianadmu Mac Applications and Mac App Store 0 Feb 10, 2011 05:07 AM
Can't set VLC as default player kuato Mac Basics and Help 4 Sep 12, 2009 01:34 AM
How do I set Opera as my default web browser? burningrave101 Mac Applications and Mac App Store 2 Jun 15, 2008 12:49 PM
Use Safari as Default Web Browser mikebatho Mac Applications and Mac App Store 2 Jan 24, 2006 02:34 AM
Default Web Browser XnavxeMiyyep General Mac Discussion 4 Nov 30, 2003 09:06 AM


All times are GMT -5. The time now is 10:13 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC