Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 12-09-2014, 08:08 AM   #1
LQ Newbie
Registered: Mar 2014
Posts: 18

Rep: Reputation: Disabled
fluxbox does not remember app window configutation

I am running Debian Wheezy without any desktop environment. I want fluxbox to start two instances of emacs when X is started. Each instance should be full screen and they should be located in the first and third workspaces.

To do this I put into .fluxbox/startup:

emacs-a &
emacs-b &

These refer to executable scripts located in ~/scripts and symlinked to /usr/local/bin/emacs-a and emacs-b. The scripts call emacs and define the location of their configuration files.

The problem is that when X is started, both instances of emacs both show up on the first workspace and are not full screen. I move them to where I want them and make them full screen and then have them Remember the workspace, being full screen and Save on close. This is not remembered when X is started again. I also edited .flubox/apps by hand to specify workspace and full screen:

[app] (name=emacs-a) (class=Emacs)
[Workspace] {0}
[Fullscreen] {Yes}
[Close] {Yes}
[app] (name=emacs-b} (class=Emacs)
[Workspace] {2}
[Fullscreen] {Yes]
[Close] {Yes}

but this had no effect.

Old 12-09-2014, 09:01 PM   #2
LQ Guru
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,088
Blog Entries: 28

Rep: Reputation: 6087Reputation: 6087Reputation: 6087Reputation: 6087Reputation: 6087Reputation: 6087Reputation: 6087Reputation: 6087Reputation: 6087Reputation: 6087Reputation: 6087
Fluxbox has a method for doing that using ~/.fluxbox/apps. I've never tried it, but you can read about it here or open man fluxbox-apps:
Old 12-09-2014, 11:10 PM   #3
Registered: Mar 2011
Distribution: Slackware 64 -current,
Posts: 550

Rep: Reputation: 196Reputation: 196
Im not sure how fluxbox reads that file, but my apps file works perfectly, note the case differences between mine and yours re yes vs Yes.

[app] (name=fbrun)
  [Position]	(CENTER)	{0 0}
  [Layer]	{2}
[app] (name=timer) (class=Timer)
  [Position]	(UPPERLEFT)	{4% 25%}
  [Layer]	{6}
  [Close]	{yes}
[app] (name=Download) (class=Firefox) (role=Manager)
  [Position]	(UPPERLEFT)	{14% 61%}
  [Close]	{yes}
[app] (name=quake2) (class=quake2)
  [Deco]	{NONE}
[app] (name=skype) (class=Skype)
  [Dimensions]	{240 267}
[app] (name=timer #2) (class=Timer)
  [Position]	(UPPERLEFT)	{6% 22%}
  [Layer]	{6}
  [Close]	{yes}
1 members found this post helpful.
Old 12-09-2014, 11:33 PM   #4
MX Linux
Registered: Dec 2013
Posts: 402

Rep: Reputation: Disabled
is the app that makes the window called emacs-a and emacs-b? fluxbox doesn't need to remember the window position of scripts unless they actually open a window. I suspect what is opening is two instances of emacs (name=emacs, class= Emacs), with different configurations. so in effect, your name=critera is not being met in the app file.

what you need to do is make 2 symlinks, unique, to emacs. then launch emacs with the symlinks. fluxbox will treat the symlink names as different.

here's a simple example apps file using leafpad. in the example, leafpad2 is simply a symlink back to leafpad.

[app] (name=leafpad) (class=Leafpad)
  [Workspace]	{0}
  [Jump]	{yes}
  [Close]	{yes}
[app] (name=leafpad2) (class=Leafpad2)
  [Workspace]	{1}
  [Jump]	{yes}
  [Close]	{yes}
the first starts opens on workspace 0 (alpha). the second to workspace 1 (beta). I set mine to jump to the workspace when opened but it isn't necessary.

Last edited by dolphin_oracle; 12-09-2014 at 11:34 PM.
2 members found this post helpful.
Old 12-10-2014, 09:12 AM   #5
LQ Newbie
Registered: Mar 2014
Posts: 18

Original Poster
Rep: Reputation: Disabled
I had clicked on SOLVED after writing a note with some information about my
success, but the SOLVED flag omitted my note. Let me just say, Thanks.



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
fluxbox remember styles Four Linux - Newbie 2 02-23-2007 09:27 AM
Fluxbox Switch Window Replacement App? Aeiri Linux - Software 5 04-11-2005 07:10 PM
fluxbox remember feature doesn't work jtiger Linux - Software 1 05-28-2004 12:26 AM
Galeon doesn't remember window size on FluxBox? mifrai Linux - Software 1 01-19-2004 05:21 AM
Fluxbox & remember patch => instant death Tinkster Linux - Software 7 03-02-2003 05:53 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:03 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration