aboutsummaryrefslogtreecommitdiff
path: root/src/main.cc
AgeCommit message (Collapse)AuthorFilesLines
2012-01-04Exceptions should be caught by reference.Ryan Pavlik1-1/+1
Found using cppcheck.
2011-10-31main.cc,FbTk/StringUtil.cc: On windows, use USERPROFILE instead of HOMERyan Pavlik1-1/+4
2011-10-31main.cc: Add a wrapper for two-argument mkdir on WindowsRyan Pavlik1-0/+8
2011-10-31Merge branches 'fix-out-of-range-memory', 'obey-configure' and ↵Ryan Pavlik1-9/+13
'other-improvements' into windows-mingw
2011-10-31main.cc: Use expandFilename for default pathsRyan Pavlik1-6/+7
2011-10-31main.cc: Check getenv output better.Ryan Pavlik1-2/+2
Windows returns pointers to empty strings for non-existent env vars.
2011-10-31main.cc: Only sync() if we can.Ryan Pavlik1-1/+4
2011-10-17removed obsolete handler for the gnome-window manager hintsMathias Gumz1-5/+0
nowadays every app should use the extended window manager hints exclusively.
2011-09-10sync the copied config files to disk before continuingMathias Gumz1-0/+11
otherwise a race condition might appear between copying the default config files to .fluxbox/ and executing 'fluxbox-update_configs'. under macosx this lead to 'fluxbox hangs'.
2011-02-23updated year and copyright infoMathias Gumz1-2/+2
2011-02-23almost 10 years of fluxboxMathias Gumz1-1/+1
2010-10-13bugfix: std::string() does not like NULL on constructionMathias Gumz1-6/+19
not having DISPLAY set (eg: on a headless system) caused fluxbox to crash.
2010-09-20use 'system()' to run 'fluxbox-update_configs'Mathias Gumz1-3/+1
by using FbCommands::ExecureCmd() we run 'fluxbox-update_configs' in the bacground while booting a new fluxbox instance already. 'system()' waits until 'fluxbox-update_configs' is done and then gives the control back to fluxbox.
2010-09-18changed the way we create the '~/.fluxbox' directory to avoid race conditionsMathias Gumz1-9/+115
before bringing up the first instance of Fluxbox we prepare the directory and the files it needs. if the config version of exiting files is lower than what we expect, we upgrade the config files. after that we bring up Fluxbox. the old way was problematic because setupConfigFiles() calls 'fluxbox-update_configs' which does its job in the background while fluxbox continues to boot. 'fluxbox-update_configs' sends a USR2 signal to the booting fluxbox (it might even be finished, no one knows) which triggers 'load_rc()' which triggered 'setupConfigFiles()' again which might trigger 'fluxbox-update_configs' again (on my machine 'fluxbox-update_configs' was called 3 times and left a pretty crippled 'keys' file when it was done). bootstrapping before bringing up fluxbox resolves the issue. as a bonus: no need to send USR2 to fluxbox to reload the config file because fluxbox has not even tried to read it yet.
2010-09-18cosmeticMathias Gumz1-55/+106
2010-09-17bugfix: avoid naive use of 'putenv' by providing 'FbTk::App::setenv()'Mathias Gumz1-2/+1
to quote from 'man putenv': The string pointed to by string becomes part of the environment, so altering the string changes the environment. so, using putenv like { std::string foo("FOO=bar"); putenv(foo.c_str()); } is wrong and leads to a potentially corrupted environment. valgrind complaint correctly. FbTk::App seems to be the appropriate place to hold '::seten()' because it alters the environment of the application.
2010-09-17missing initializationsMathias Gumz1-0/+1
'valgrind' reported a lot of code branches based upon uninitialized variables. some are not identified yet.
2010-09-17moved commandline parsing to its own functionMathias Gumz1-20/+36
2010-09-05added info about 'BIDI' support to 'fluxbox -info'Mathias Gumz1-1/+5
2009-03-04Renamed function svnversion() to gitrevision() because now we uses GIT.Slava Semushin1-2/+2
No functional change. Signed-off-by: Slava Semushin <php-coder@altlinux.ru>
2008-10-04recognize --option in addition to -option for most thingsMark Tiefenbruck1-9/+9
2008-08-22add -sync command line option for debugging X issuesMark Tiefenbruck1-1/+6
2008-06-11updated the copyright where it's easily visible: `fluxbox -v` and COPYRIGHT.skiidoo1-2/+2
nls/translators: typo, plus Translation.m.desc never existed. Never. more consistent keys file comments in fluxbox-update_config.
2008-06-03add new command line option -list-commandsMark Tiefenbruck1-1/+9
2008-01-25std::string.c_str() is never NULLMathias Gumz1-5/+2
2008-01-04remove old svn $Id$ tagsMark Tiefenbruck1-2/+0
2007-12-25removed KDE configure optionMark Tiefenbruck1-5/+0
2007-12-20replace svn stuff with gitMark Tiefenbruck1-1/+1
2007-12-14fix compile issue with gcc 4.3Mark Tiefenbruck1-0/+6
2007-08-11Changed to Fluxbox Teamfluxgen1-1/+1
2007-07-31add some decorations to torn menus, and fix restart without an argumentmarkt1-8/+10
2007-07-24fix ToggleDecor for fullscreen and decorationless windows, plus some other ↵markt1-1/+5
cleanup
2007-04-24fixed a bug in parsing cli, thanks to steven kah hien wong <steven at ↵mathias1-5/+6
zensaki dot com>
2007-04-17basicly cosmetic changes, patch by slava semushinmathias1-25/+17
2007-03-22small update for the copyright datemathias1-2/+2
2006-10-27cosmetic patch from slava semushin, removes whitespaces andmathias1-19/+32
uses only those things from "namespace std" what we really need.
2006-06-21fix nls... notably classify text on conversion whether its for X or simonb1-53/+63
console, plus handle catalogs better.
2006-05-22fix parentrelative background, and some tidyingsimonb1-0/+2
2006-05-20improve native language handling, move messages and menu labels to simonb1-1/+1
FbTk::FbString
2006-04-25Output the error message on fallback restart execs (sf.net patch simonb1-1/+5
#1475213). Thanks Jonas Koelker, jonaskoelker at users.sourceforge.net.
2006-04-24Use -Wall when --enable-debug and some warning fixes simonb1-3/+4
+ thanks Jonas Koelker
2006-04-22minor cosmetic tweaks, thanks Semushin Slavak, php-coder AT ngs rusimonb1-1/+1
2006-03-18removed tabs in help textfluxgen1-9/+9
2006-02-16updated copyright infomathias1-1/+1
2005-08-31added svn revision number output, thanks php-coderfluxgen1-1/+1
2005-07-07info about locale path, patch from php-coderfluxgen1-1/+4
2005-06-04added -screen to -helpmathias1-0/+1
2005-05-18updatefluxgen1-0/+1
2005-02-03fixes the year for fluxbox -versionmathias1-1/+4
added a way to display the svn-revision-number in fluxbox -info
2005-01-24copyright datemathias1-1/+1