Skype is only chat app that i use and its integration with any desktop environment suck.
There is nice application called Skype-Wrapper that integrates Skype in Messaging Menu, system notifications and Launcher.
To install Skype-wrapper open your terminal and type:
Skype was not visible in launcher and windows switcher ("alt-tab" menu) and because of that manipulation with multiple windows was impossible. Attention was in skype.desktop instead in skype-wrapper.desktop so i got 2 Skype icons in launcher.
I came to conclusion that problem was in skype-wrapper.desktop with default skype.desktop there was no problem but then you get problem when you close Skype and you can't "open"/show it again.
So first we are going to solve "bug" when you close Skype and you can't "open"/show it again.
Open terminal and start typing:
Now when you again start Skype in will show current running Skype and not start new one.
Also it will ask for permission for using script.
There is nice application called Skype-Wrapper that integrates Skype in Messaging Menu, system notifications and Launcher.
Skype notification integration with Skype-wrapper |
To install Skype-wrapper open your terminal and type:
sudo add-apt-repository ppa:skype-wrapper/ppaFor me integration works good but only Launcher integration was making problem.
sudo apt-get update
sudo apt-get install skype-wrapper
Skype was not visible in launcher and windows switcher ("alt-tab" menu) and because of that manipulation with multiple windows was impossible. Attention was in skype.desktop instead in skype-wrapper.desktop so i got 2 Skype icons in launcher.
I came to conclusion that problem was in skype-wrapper.desktop with default skype.desktop there was no problem but then you get problem when you close Skype and you can't "open"/show it again.
So first we are going to solve "bug" when you close Skype and you can't "open"/show it again.
Open terminal and start typing:
gedit ~/showskype.py
Text editor will open, now paste:
#!/usr/bin/env python
import dbus
# Get a D-Bus interface to Skype
bus = dbus.SessionBus()
skype_object = bus.get_object('com.Skype.API', '/com/Skype')
skype = dbus.Interface(skype_object, dbus_interface='com.Skype.API')
# Ask for permission to control Skype
response = skype.Invoke("NAME " + __file__)
response = skype.Invoke("PROTOCOL 8")
# Issue commands
response = skype.Invoke("SET WINDOWSTATE NORMAL")
print response
Save it and run this command in terminal:
chmod +x ~/showskype.py
Now type:
sudo gedit /usr/local/bin/skype
And in text editor paste:
#!/bin/bash
nbi=$(pgrep -c skype)
if [ $nbi -ge 2 ];then
~/showskype.py
else
/usr/bin/skype
fi
Save it and at end type this command:
sudo chmod +x /usr/local/bin/skype
Now when you again start Skype in will show current running Skype and not start new one.
Also it will ask for permission for using script.
Since we are going to use skype.desktop (original skype launcher) and not skype-wrapper launcher we need to edit one script in skype-wrapper so unread message counter and transfer progress on launcher works.
sudo gedit /usr/share/skype-wrapper/unitylauncher.py
and in line 14 change skype-wrapper.desktop to skype.desktop and save.
Now the final step is to set skype-wrapper to start when you log in.
In Skype go to Options > Notifications
Click on Skype Login > Advanced View and check Execute the following script
and paste:
/usr/share/skype-wrapper/skype-wrapper.py
Now when you log in to Skype skype-wrapper will start and you will get Messaging Menu, Launcher and notification integration.
Skype pop-ups will also show up, to disable theme go to Options > Notifications and click on notification that you want to disable and uncheck Display pop-up notification
0 comments:
Post a Comment