Force Adobe Air to open urls in default browser on gnome-linux
I noticed that Twhril and Tweetdeck are opening links in firefox, however my default browser is set to Chromium.
This is because, Air runtime (Twhirl and Tweetdeck run in Adobe Air ) does something wrong when looking to Gnome environment variables, you can read more from here: here
So as explained, we have to set environment variable again as Air likes, to make it see the default browser. I’d like to do this more ‘globally’ so any air app could do so.
go to Terminal, type:
[CC lang="bash"]cd Scripts
gedit setDefaultBrowserForAdobeAirAndLaunch[/CC]
copy and paste following:
[CC lang="bash"]#!/bin/sh
export GNOME_DESKTOP_SESSION_ID=Default
$1[/CC]
Save it, than back to terminal and make script executable[CC lang="bash"]sudo chmod a+x setDefaultBrowserForAdobeAirAndLaunch[/CC]
next we configure twhirl and tweetdeck launchers, find them in gnome Main menu configuration window (under ‘Applications>Accesories’ by default).
click properties and edit the commands to:
for Tweetdeck.
[CC lang="bash"]/home/[your username here]/scripts/setDefaultBrowserForAdobeAirAndLaunch ‘/opt/TweetDeck/bin/TweetDeck’[/CC]
for Twhirl ( check path! i use custom path to twhirl )
[CC lang="bash"]//home/[your username here]/scripts/setDefaultBrowserForAdobeAirAndLaunch ‘/opt/twhirl/twhirl/bin/twhirl’[/CC]
Done! when you launch by lunchers we just configured, these two will open any link in your default browser. You can use same sript to launch all your air apllications to make them work with the browser you want.
Note: I use a /Scripts folder in my home folder, you can place script wherever you like.
[...] http://blog.godstroke.com/force-adobe-air-to-open-urls-in-default-browser-on-gnome-linux/ a few seconds ago from api [...]