kekekeks / skypetab-ng

A program that adds tabs to Skype™ for Linux
skypetab-ng
GNU Lesser General Public License v3.0
76 stars 4 forks source link

Two instances of skypetab-ng #69

Open FelikZ opened 9 years ago

FelikZ commented 9 years ago

Is it possible? For example I can run:

skype --dbpath=~/.Skype2 &

In order to run two instances of skype, but looks like this doesn't work with skypetab.

Thanks

kekekeks commented 9 years ago

/usr/bin/skypetab-2:

#!/bin/sh
mkdir -p $HOME/.Skype2
cd $HOME/.Skype2
if test -e shared.xml
then
        find|grep config.xml|while read line;
        do
                sed -i "s/.UseUniqueConversationsWindow.*//" $line
                sed -i "s/<UI>/<UI>\n    <UseUniqueConversationsWindow>0<\/UseUniqueConversationsWindow>/" $line
                #cat $line
        done
fi
LD_PRELOAD=libskypetab-ng.so exec skype --skypetab-class=SecondarySkypeTab --dbpath=$HOME/.Skype2

/usr/share/applications/skypetab-2.desktop:

[Desktop Entry]
Name=Secondary SkypeTab
Comment=Secondary SkypeTab
Exec=skypetab-2
Icon=skypetab-2
Terminal=0
Type=Application
Encoding=UTF-8
Categories=Network;Application;
StartupWMClass=SecondarySkypeTab

And place something in /usr/share/pixmaps/skypetab-2.png