Search the web with Google

Android install

Android installation weblog


Enter your email address:


Jeroen´s weblog

Ubuntu install

Ubuntu installation weblog


Thursday, April 21, 2011

How to control Skype from the Gnome message menu

On OMG Ubuntu I  read this article:
How to control Skype from the Gnome message menu
This approach integrated your Skype contacts into your Empathy or Pidgin buddy list, but also told you how to 'hide' the lurid green icon from the system tray.
Whilst many of you found this a neat tip a number of you weren't so keen to give up easy access to Skype itself and sought something a little less final – such as adding Skype to the Ubuntu Messaging Menu.
Selection_003One reader, Bennett, preferred this solution too. He had a look around at current solutions but found many of them buggy or lacking integration. So after cloning some code by Andreas Happe, who no longer had an interest in maintaining his code,  he bettered it, added some new functions and sent in his resulting guide to us to share with OMG! Ubuntu! readers.
He says:
"Currently all this program does is put Skype into the messaging menu (mono icon included). But, just that I find to be a big improvement because for the most part it now works exactly like any other messenger.
In writing [it] I learned that a part of the problem why I found other solutions to be so buggy was that the Skype API is terrible on a 64-bit system and constantly crashes (this is a known bug according to the Skype4Py mailing list). The program I wrote handles the API crashes without the user noticing.
Since i threw this together last night I used the Python Recipe to build the .deb.
It's easy to build a deb like this, but causes errors on install. The errors/warnings can be safely ignored."

How to add Skype to the Ubuntu Messaging Menu

0. Install Skype @ skype.com/intl/en-us/get-skype/on-your-computer/linux/
1. Download and install the .deb package* @ ubuntuone.com/p/nl1/
2. Run the commands below in a Terminal to place a shortcut to Skype in the Messaging even when its not running (just like 'Chat' or 'Broadcast':

  • mkdir -p ~/.config/indicators/messages/applications/
  • cp /usr/share/skype-wrapper/skype ~/.config/indicators/messages/applications/skype
Should you wish to later remove Skype from the menu use the following command CAREFULLY:
  • rm ~/.config/indicators/messages/applications/skype
3. Remove Skype from the systray whitelist by entering the following command into a Terminal or Alt-F2 dialog: -
  • gsettings set com.canonical.Unity.Panel systray-whitelist "['JavaEmbeddedFrame', 'Mumble', 'Wine', 'hp-systray']"
4. Log out/Log in
5. Click the Messaging Menu icon, Click Skype.
You will be promoted to 'allow' permission for the menu entry to work as intended.
Skype API Authorisation Request_002
Click yes and you're done: you can now close/minimize the Contact list and restore it using the messaging menu.
This is a work in progress, but since it has some utility and it's fresh in eveyone's mind, I thought I'd get this out. I definitely plan on making the envelope go blue when messages appear and using osd-notify for everything else. It would be great if you could post this!
A hearty thanks to Bennett
*.deb packages "found" online should always be installed with caution

3 comments:

koffeehaus said...

Hi,
there is a syntax error in the command on step 2, someone posted the right command in the comment section at Omgubuntu.

Cheers

Jeroen said...

The command was OK, the &amp &amp didn't work. I made two lines of it. Thanx anyway. Its better to read te original. I place it only here so I can find it easier.

Shawn said...

Hi, after following your instruction, the skype could be seen in the message menu, but it also shows in the system tray. How can I ´remove´ this little green icon from system tray ?

Post a Comment