LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
Search this Thread
Old 03-13-2014, 08:22 AM   #1
ThomasRonshof
Member
 
Registered: Aug 2006
Posts: 115

Rep: Reputation: 0
Auto maximize a program


Hi,

After login on a Gnome desktop, I start a putty session.

How can i tell the windowmanager to maximize it automatically?

In Windows one can set it up in properties for the icon.

But how in Gnome ?

Maybe there is a way to send the keyboard shortcut <ALT>+<F10>, which is "toggle maximization state" ? From a shell og C-program.. ?

Regards
 
Old 03-13-2014, 08:51 AM   #2
pan64
Senior Member
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 4,838

Rep: Reputation: 1287Reputation: 1287Reputation: 1287Reputation: 1287Reputation: 1287Reputation: 1287Reputation: 1287Reputation: 1287Reputation: 1287
I do not really understand. putty runs on windows, so you need to set that property.
 
Old 03-13-2014, 08:53 AM   #3
ThomasRonshof
Member
 
Registered: Aug 2006
Posts: 115

Original Poster
Rep: Reputation: 0
No, I run putty on Gnome ;-) NOT Windows !
 
Old 03-13-2014, 09:06 AM   #4
pan64
Senior Member
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 4,838

Rep: Reputation: 1287Reputation: 1287Reputation: 1287Reputation: 1287Reputation: 1287Reputation: 1287Reputation: 1287Reputation: 1287Reputation: 1287
hm I do not think putty exists on unix at all, can you please specify what have you started exactly?
 
Old 03-13-2014, 10:09 AM   #5
ThomasRonshof
Member
 
Registered: Aug 2006
Posts: 115

Original Poster
Rep: Reputation: 0
Of-course it does, I've compiled the sources myself.... works fine. But this is not a putty issue.

How can i tell the windowmanager to maximize a program it automatically after startup?

In Windows one can set it up in properties for the icon.

But how in Gnome ?

Maybe there is a way to send the keyboard shortcut <ALT>+<F10>, which is "toggle maximization state" ? From a shell og C-program.. ?

;-)
 
Old 03-14-2014, 02:16 AM   #6
pan64
Senior Member
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 4,838

Rep: Reputation: 1287Reputation: 1287Reputation: 1287Reputation: 1287Reputation: 1287Reputation: 1287Reputation: 1287Reputation: 1287Reputation: 1287
if you have a shortcut or similar, there will be a property somewhere, and you will find the real command executed. You need to add -maximize, --maximize, --maximized or something similar to start that given app maximized. But actually I have no idea how putty (compiled by you) was created and what kind of flags it has.

here you can find some additional tips:
http://superuser.com/questions/49446...minal-on-linux
 
1 members found this post helpful.
Old 03-14-2014, 02:25 AM   #7
evo2
Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,370

Rep: Reputation: 1173Reputation: 1173Reputation: 1173Reputation: 1173Reputation: 1173Reputation: 1173Reputation: 1173Reputation: 1173Reputation: 1173
Hi,
Quote:
Originally Posted by pan64 View Post
But actually I have no idea how putty (compiled by you) was created and what kind of flags it has.
It's packaged in many distributions, including yours:

http://packages.ubuntu.com/search?ke...cy&section=all

Why anyone would want to use it is separate question.

From the man page (on Debian) it takes a "-geometry" flag. Alternatively you can configure your window manger... (not sure under gnome), or use something like wmctrl.

Evo2.
 
1 members found this post helpful.
Old 03-14-2014, 02:49 AM   #8
ThomasRonshof
Member
 
Registered: Aug 2006
Posts: 115

Original Poster
Rep: Reputation: 0
THANK YOU BOTH !

wmctrl is the solution :-)))
 
  


Reply


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
How to configure auto login & after login auto startup some program. hocheetiong Linux - Newbie 1 02-18-2008 12:49 AM
auto renice program landroni Linux - Security 2 02-07-2006 06:23 AM
auto starting program as root? marsques Slackware 6 09-06-2005 01:40 AM
Bash to Auto Launch a Program???? embsupafly Linux - Software 1 07-27-2004 12:25 AM
auto start a program jrockey Linux - Newbie 1 05-26-2001 07:12 AM


All times are GMT -5. The time now is 05:37 PM.

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