Page 1 of 1
GUI howto disable the geometry remember
Posted: Wed Apr 27, 2016 5:04 pm
by cochedelaferte
Hi all,
(Debian stable with corresponding Audacity)
Assuming that Audacity can be used as a tool in music composition, and the geometry a lot of times modified, it can be interessant to get it with the standard (the first) geometry at each launch. Is there a way to disable the remember of geometry, to get it new at each time ?
Cheers,
Sergio
Re: GUI howto disable the geometry remember
Posted: Wed Apr 27, 2016 8:32 pm
by steve
What do you mean by "geometry"?
Re: GUI howto disable the rgeometry remember
Posted: Wed Apr 27, 2016 9:30 pm
by cochedelaferte
Hi Steve,
The "normal", e.g. standard as fresh installed, size of the main (and ever unique as i think) window of Audacity, the native size.
Normal Width = 780
Normal Hight = 600
After usage, if this size was manually (mouse) changed, reopening Audacity we get the new size, the changed size, instead the native size. And that i'm searching to avoid, i like the native in all cases.
Also if possible the whole configuration inside the Audaacity window i prefer to find each time the native, the fresh, the "normal" aspect.
Sorry for "rgeometry", it was really "geometry" i meaned.
Cheers,
Sergio
Re: GUI howto disable the rgeometry remember
Posted: Wed Apr 27, 2016 9:42 pm
by steve
There is no built-in way to make Audacity "forget" the window size. Most people want Audacity to open with the previous window size, so that is how it is designed to work (as are most other applications). However, the window size is stored in the "audacity.cfg" file (by default that file is in ~/audacity.data), so you could write a script to delete those settings. Look for the section in audacity.cfg below "[Window]".
Re: GUI howto disable the geometry remember
Posted: Wed Apr 27, 2016 10:31 pm
by cochedelaferte
Many thank's, Steve.
I tried setting audacity.cfg in mode 444 (write protect), but that helped nothing ; Audacity won't forget...
A script ? Yes, but howto, and where place it, etc. If you have only one basic example, of course regarding anything, just to indicate me howto begin, it would be great...
Cheers,
Sergio
Re: GUI howto disable the geometry remember
Posted: Thu Apr 28, 2016 12:50 am
by steve
If you've not done any scripting before then it's probably not worth the effort.
However, with a "bash script" you could perhaps overwrite the audacity.cfg file with one of your choosing using the "cp" command (
http://ss64.com/bash/cp.html)
Of course, you would need to decide how to run the bash script - the easiest way would be to make the script executable and run it from a launcher on your Desktop or in a panel (depending on what Desktop environment you use), or you could set it to run each time you log in.
Re: GUI howto disable the geometry remember
Posted: Thu Apr 28, 2016 12:23 pm
by cochedelaferte
Yes, you are right : just a copy, is the easiest way ; and for the launch, there is also no problem : to launch Audacity itself within a script, but this containing first a copy line for audacity.cfg.
Okay, question solved. Many thank's, Steve,
greatings,
Sergio