LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 05-10-2009, 01:34 PM   #1
pusrob
Member
 
Registered: Jan 2006
Distribution: Debian
Posts: 463

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


Hi.
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:
Code:
#!/bin/sh
kmix
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
penguiniator
Member
 
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.
 
  


Reply

Tags
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


All times are GMT -5. The time now is 11:11 AM.

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