Thursday, July 1, 2010

Idiots crash course in solving Tweetdeck link open problem

Hi there my imaginary green fellas!

I feel quite mad right now as everytime I browse the web there's a noobuntu related post on how to do things the wrong way.

Be mature and don't get touchy with that comment. I don't hate newbies, I hate n00bs because they mislead newbies.

You, my little green newbie, will enjoy this post.

OK! Lets get our hands dirty:

PROBLEM:

Tweetdeck doesn't open links in our preferred browser.

BREAK IT DOWN:

  1. It is not Tweetdeck's problem but Adobe Air instead
  2. libCore.so has a hardcoded call which doesn't work
  3. The call is made to kfmclient, an Adobe Air imaginary friend.
  4. Most people, except Adobe Air engineers doesn't have that client program installed.

SOLUTION:

Let's cheat Mr. Air and create the client he wants so hard.

Create a file in your text editor of choice named -guess what- kfmclient, whose contents are

#!/bin/sh

shift 1

mybrowser=/usr/bin/chromium

test -x $mybrowser && exec $mybrowser $@

Notice #!/bin/sh "shabang" must start from the first character. Also, you should replace chromium with your browser of choice, perhaps firefox 3.6 or alpha 4 ;)

Done! Save that file, copy to /usr/local/bin and then give it permission to be executed as a normal system program.

sudo cp kfmclient /usr/local/bin

sudo chmod +x /usr/local/bin/kfmclient

Done! enjoy! I'll try to update this post with a link pointing to a new script I'm gonna write for automatic discovery of your default browser in KDE and Gnome too if I've not lost my skills.

For those butchering libCore.so file ¡SHAME ON YOU!

1 comment: