LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 10-15-2009, 04:59 PM   #1
Dono
LQ Newbie
 
Registered: Nov 2008
Location: tx
Posts: 1

Rep: Reputation: 0
How can I have a program open with the window above all others


I have been searching all day and can not find a thing on this problem. I am writing a script (in tcsh) that is initializing a program (specifically kuickshow in the kde environment) in the background. What I want is for that program to open up on top of all other windows (IOW with the ">Advanced->Keep Above Others" flag set (Actually I would prefer that, along with the ">To Desktop->All Desktops" flag set - but I'll take what I can get). Or at least pass the focus to the new window through the script, so rises to the top layer.

the -geometry flag doesn't help, for one it's opening a specific .jpg file and the geometry command apparently gets overwritten by the file size. But even if I could change the size or even make it go full screen, it still comes up behind the other windows. It's designed to be an alarm - but it's not much good if it's hidden when it comes up.

Anyone know how to commnad the layers of the system in a command line?

Thanks
Dono
 
Old 10-15-2009, 05:39 PM   #2
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Some WM's might have a way to access the WM api from the command line. Kwin had dcop (and now supposedly dcop) for that, though I have no idea if that concrete functionality is accessible or not, but you could investigate along those lines.

Fvwm -which I use- lets you to do so without problems using the FvwmCommand module, that could be used from any scripting or programming language.

In other WM's you might want to investigate other tools, maybe wmctrl or devilspie can do this, but I am not sure at all.
 
  


Reply



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
[SOLVED] Firefox 2.0.0.20 - can't open second window/dupe a tab to a new window. Used to work. GrapefruiTgirl Linux - Desktop 4 06-24-2009 08:27 PM
Metacity: when a program spawns a new window, that window is not in foreground. why? BrianK Linux - General 1 12-18-2008 05:50 AM
!! Problem !! Minimizing ANY window EXITS the Program / Browser window NOoBuntuLinux Linux - Newbie 6 11-20-2008 02:32 PM
how do i open a session window in gnome in order to install a program. sleekmason Linux - Newbie 3 03-27-2006 03:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:20 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration