Ubuntu Remove File Association

Removing file association in Ubuntu drove me crazy for a while. Although I already removed the Bluefish editor from my desktop, the file associations were still there. Right-clicking a file and removing the file association didn’t work for me. I even deleted the .bluefish directory in my home directory hoping that it would remove the file associations, but the associations were still lingering.

As it turns out, the file associations can be removed by accessing the ~/.local/share/applications directory and removing the files that needed deletion. In my case, there were 3 Bluefish files that needed to be deleted. Credits to Long Term Storage for the tip.

Remove File Associations

From the Terminal, type the following:

cd ~/.local/share/applications

View the file associations

ls -al

Remove the file association that you want deleted. In my case, I had to delete the Bluefish associations.

rm bluefish.desktop bluefish-project.desktop Bluefish Editor.desktop

As it turned out, removing file associations in Ubuntu is way easier than I thought it would be. That is it.

Bluefish Blank Document Workaround

Since switching back to Ubuntu 10.04.3 LTS, I had one annoying issue with the Bluefish editor. When I double click on a PHP document, the Bluefish editor should automatically display the file. Instead, Bluefish launches a blank document.

Opening a file inside Bluefish, once it has launched, however, is not a problem. Blaming everything on Bluefish is unfair. The bug may be due to Nautilus. See discussion here. I call it a workaround because it fixes the issue, but it also creates another one. It disables opening up project files when launched.

If you don’t use project files, then by all means, use this workaround. This fix involves editing the command line options for Bluefish. Go to System > Preferences > Main Menu. You will find two Bluefish icons under Programming and Other.

Edit the command line option for the Bluefish icon under Other. Change it from bluefish -n -p %f to bluefish %F. See snapshot below. The two Bluefish icons should now have the same command line options, which is, bluefish %F.

I can now open files in Bluefish by double clicking a PHP file from within Nautilus. It’s no longer a blank document. Once again, this is workaround. It will disable opening up project files. I don’t use it, which is fine by me.

Driving My Ubuntu Desktop

Pictured above is how I drive my Ubuntu Desktop. It’s clean, fast and it’s brown all over. That’s Ubuntu for sure. Some people don’t really care for the earthy tones, but I don’t mind. My screen resolution is set to 1280 x 1024 pixels. I’ve decided to use this background for a bit of a change. By the way, the Compiz Fusion Desktop Effects are super. I love the applications: OpenOffice, Gimp, MoviePlayer, Rythymbox Music Player and the Bluefish Editor are just a few. The only thing I miss in Windows are the games. It may be time for some virtualization using VMWare. That’s my next project.


I’ve learned something new today, Sudo. Sudo is a Unix command that allows system administrators to give certain users the ability to run some or all commands as root. Why? Well, I have this program called Bluefish which I use as a HTML editor. I have to run Bluefish as root to modify my webroot directory. I could have ran Bluefish as a regular user, but I didn’t want to use my home directory to shuttle back and forth the modified web pages.

Continue reading “Sudo”