LinuxQuestions.org
Have you heard the LinuxQuestions.org Podcast?
Go Back   LinuxQuestions.org > Forums > Linux > 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

Tags used in this thread
Popular LQ Tags , ,

Reply
 
Thread Tools
Old 05-10-2009, 02:34 PM   #1
pusrob
Member
 
Registered: Jan 2006
Location: Hungary
Distribution: Debian Lenny
Posts: 447
Thanked: 9
How to dock a window (kmix) to system tray on startup (solution)


[Log in to get rid of this advertisement]
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 02:37 PM..
pusrob is offline  
Tag This Post , ,
Reply With Quote
Old 05-10-2009, 10:04 PM   #2
penguiniator
Member
 
Registered: Feb 2004
Location: Las Vegas, NV
Distribution: Kubuntu 8.04 until KDE4 no longer sucks
Posts: 223
Blog Entries: 2
Thanked: 9
ksystraycmd allows any application to be kept in the system tray.
penguiniator is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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 02:43 AM
LXer: Dock any application to the system tray LXer Syndicated Linux News 0 06-21-2006 02:54 AM
kmix window startup echasketch123 Linux - Software 1 01-22-2006 04:46 AM
kmix system tray volume bar teet Fedora 1 06-19-2004 06:46 PM
Kmix in System tray, "weird" Viper Linux - Software 0 06-24-2003 11:18 PM


All times are GMT -5. The time now is 05:39 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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration