Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 05-10-2009, 01:34 PM   #1
Registered: Jan 2006
Distribution: Gentoo
Posts: 505

Rep: Reputation: 36
How to dock a window (kmix) to system tray on startup (solution)

I want to share the method for putting windows to system tray on KDE (3.5.x) startup. The method (solution) came when kmix didn't start with kde on my computer, not even with session restore. Session restore works, since skype for example always starts when I log in (after I logged out with skype turned on).

So I searched for solutions, and here it is:
Write a small shell script, which looks like this:
dcop kmix kmix-mainwindow#1 hide
Save the script, and make it executable. Now copy/move the script to "/home/user/.kde/Autostart" , and voila we're ready.

As you can see the script is written for kmix but I think it will work for other apps too (which start with a system tray like kmix), just replace the kmix parts.

To identify the window you want to hide (kmix-mainwindow#1 in this case), open the KDE ControlCenter --> Desktop --> Window Specific Settings.

Here click "new..." and than search for the "detect" button under the "window" tab. A cross will appear. Use Alt+Tab to roll for the opened window you want to hide at startup (you have to start it first), and than click onto this window with the cross. A new window will appear with some info. You will need the entry of the second line. This is kmix-mainwindow#1 for kmix for example.

This is all you need.
Have fun!

EDIT: This was my 400th post! WOW. Hope it's useful...

Last edited by pusrob; 05-10-2009 at 01:37 PM.
Old 05-10-2009, 09:04 PM   #2
Registered: Feb 2004
Location: Olympia, WA
Distribution: SolydK
Posts: 442
Blog Entries: 3

Rep: Reputation: 60
ksystraycmd allows any application to be kept in the system tray.


dock, tray, window

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
KMix window on startup seanr Linux - Software 8 02-26-2008 01:43 AM
LXer: Dock any application to the system tray LXer Syndicated Linux News 0 06-21-2006 01:54 AM
kmix window startup echasketch123 Linux - Software 1 01-22-2006 03:46 AM
kmix system tray volume bar teet Fedora 1 06-19-2004 05:46 PM
Kmix in System tray, "weird" Viper Linux - Software 0 06-24-2003 10:18 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:58 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration