Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

How to start Empathy in hidden mode in 13.04? This was possible in previous versions of Ubuntu using empathy -h or empathy --start-hidden. But, in 13.04, if you auto-start Empathy in hidden mode, you can not open the Contacts window, even though Empathy is running in the background. (See Bug 1179180).

share|improve this question
add comment

1 Answer 1

up vote 3 down vote accepted

Here is a workaround for this problem...

Step 1

Install xdotool...

$ sudo apt-get install xdotool

Step 2

To start empathy in hidden mode just for yourself...

$ mkdir -p ~/.config/autostart
$ cp /usr/share/applications/empathy.desktop ~/.config/autostart
$ gedit ~/.config/autostart/empathy.desktop

...OR....

To start empathy in hidden mode for all users...

$ cp /usr/share/applications/empathy.desktop /etc/xdg/autostart
$ sudo gedit /etc/xdg/autostart/empathy.desktop

Step 3

In section [Desktop Entry]

Replace...

Exec=empathy

With...

Exec=sh -c 'empathy & xdotool search --sync --onlyvisible --class "empathy" windowunmap'

Finally, save your changes; log out and log back in. You will see the Empathy window "flash" for split-second and then it will disappear. Empathy will continue to run in the background, and you will be able to open the Empathy contacts window (from the unity indicator) whenever you want.

Note: If you don't like the command line, install xdotool using the Software Center. Then use the Startup Applications GUI from the Dash to to create a new launcher called "Empathy," and enter the following as the command: sh -c 'empathy & xdotool search --sync --onlyvisible --class "empathy" windowunmap'.

share|improve this answer
    
You can fix those code tags in your answer by putting an blank line before each one. –  DaboRoss Jun 15 '13 at 1:11
    
Your workaround is FANTASTIC. I included the command in my custom startup script that also launches Skype and it works perfectly. :) –  Andrea Lazzarotto Jul 11 '13 at 13:25
    
Andrea, Skype has a "Start Skype minimized in the system tray" option that works fine in Ubuntu, in case you didn't already know. –  PJ Singh Aug 6 '13 at 22:08
    
Yes, I didn't mean that I also use xdotool for Skype, just that I launch both of them at the same time. :P Sorry for not being clear. ;) –  Andrea Lazzarotto Oct 20 '13 at 18:15
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.