LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-21-2013, 12:47 PM   #1
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6, CentOS 7 (with Mate), Ubuntu 16.04 Mate
Posts: 2,127

Rep: Reputation: 174Reputation: 174
How to cause an application to open maximized?


I am using CentOS 6.4 (Gnome desktop). I have a launcher for Thunderbird on the panel. For the entire time I have been running this configuration (about a year now) Thunderbird has always launched maximized. Today I added a new email account which uses an IMAP server. The other accounts use POP servers.

I am noticing that about 2 out of 3 times when I launch Thunderbird from the panel it opens in a small (resized) window. I maximize the window, close Thunderbird again and sometimes it is maximized but usually not. What a pain.

Never one to subtle in resolving computer issues I shoved the Thunderbird profile aside and replaced it with a copy from my backup taken last evening. I re-added the new account and Thunderbird launches maximized as it has always done.

The issue now seems fixed. However, I am wondering if there is any way in Gnome to control the window size upon launch? Windows used to have a "maximize on start" sort of setting on shortcuts. I do not see anything similar in Gnome.

TIA,

Ken
 
Old 06-22-2013, 11:19 AM   #2
eklavya
Member
 
Registered: Mar 2013
Posts: 636

Rep: Reputation: 142Reputation: 142
You can install maximus or devilspie.
I hope it will help.

There is a option in compiz of ubuntu(dont know if it can be installed on centos) so you can set default opening condition of window.
 
Old 06-22-2013, 11:33 AM   #3
minty33
Member
 
Registered: Aug 2012
Location: earth
Distribution: Mint Xfce, Korora Gnome3, Ubuntu Server NoGui,
Posts: 136

Rep: Reputation: 1
some desktops at least unity use a rule that if the window being opened takes less than 75% of the screen it will launch as minimized. not sure if gnome does this but it may. one way i think your goal can be accomplished is to edit the thunderbird.desktop file. this works in gnome for ubuntu but i don't know where these files are in CentOS. below is how to do it on gnome ubuntu. it should be the same steps but the files may be in diff location so just check that part.

find thunderbird.desktop file and edit the "EXEC" line to Exec=thunderbird --window --maximize
then log out and back in

***i think this file is in ~/.local/share/applications
***i never did this on CentOS or with Thunderbird specifically but this does work to launch the gnome-terminal in full screen on ubuntu
***also if you can create a launcher in gnome like XFCE you may be able to just add --window --maximize after the aplications command

Last edited by minty33; 06-22-2013 at 11:38 AM.
 
Old 06-22-2013, 11:34 AM   #4
Madhu Desai
Member
 
Registered: Mar 2013
Distribution: Rocky, Fedora, Ubuntu
Posts: 541

Rep: Reputation: 153Reputation: 153
Usually when you close any application, it remembers the size, and next time, when it opens again, it will open in same size as it was. So if you close any app while maximized, it will again open in maximum size (full screen).

However, try --maximize option to open in full screen. I use it for gnome-terminal, cant say it works for others.

In launcher properties:
command: gnome-terminal --maximize
 
1 members found this post helpful.
Old 05-20-2018, 04:07 AM   #5
anon073
LQ Newbie
 
Registered: Jan 2015
Posts: 5

Rep: Reputation: Disabled
Quote:
Usually when you close any application, it remembers the size, and next time, when it opens again
Thanks, man! you helped me a lot. This works on latest Gnome.
 
Old 05-20-2018, 03:41 PM   #6
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
You can use wmctrl to toggle the attribute. I use cwm which has hot keys for window actions. So Control+Alt+F to toggle fullscreen. Most older things respect the -geometry attribute which can get is "near" full screen. And of course -fs or --fullscreen type flags for "some" things. Some things remember their state at the last closing. And some of those things forget when they have updates.
 
Old 05-20-2018, 07:14 PM   #7
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
In many cases the app will open with the last window state. So if you close it maximized, it will open maximized.
 
Old 05-20-2018, 08:21 PM   #8
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6, CentOS 7 (with Mate), Ubuntu 16.04 Mate
Posts: 2,127

Original Poster
Rep: Reputation: 174Reputation: 174
This is an old thread come back from the dead! One item I might add... I have a Windows program (Visual FoxPro 6) which runs under Wine. I have two monitors, one is set to landscape and the other to portrait. FoxPro would always open to the width of the portrait monitor although I always ran it on the landscape monitor. It would not remember that it had been maximized. It WOULD remember that it had been stretched to fill essentially the whole display. This also worked with Vivaldi on Ubuntu Mate 16.04 running on a Raspberry Pi 3B and accessed with vnc.

Ken
 
Old 05-24-2018, 05:43 AM   #9
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
I've had issues like that for my 1366x768 laptop with a 1920x1080 display attached to the HDMI. Using xrandr with the --primary option for the larger display made it so videos would scale to the larger screen resolution. Although I mostly --off the laptops display. Clamshell mode without actually closing the lid. Better thermals, plus access to the power button with it open.
 
  


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] How to open Emacs in maximized window? cola Linux - Newbie 4 10-19-2010 08:46 PM
How do I set an application to always start maximized? zahadumy Linux - Software 5 11-26-2006 05:09 PM
Maximized windows stay maximized forever dreamtheater Linux - Software 0 01-23-2005 02:38 PM
firefox won't open in maximized screen 1madstork Linux - Software 3 10-24-2004 10:57 AM
Starting application maximized (OpenOffice.org)? quill18 Linux - Software 2 05-04-2004 04:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:42 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