aboutsummaryrefslogtreecommitdiff
path: root/util/fbrun/FbRun.cc
AgeCommit message (Collapse)AuthorFilesLines
2015-01-02Fix corruption of fbrun-historyMathias Gumz1-42/+20
This commit fixes issues #72 (brought up + different solution by Mattias Guns; I received a similar patch by 'Nable 80' via ML and discussed the issue in #fluxbox with 'Nable 80'), patch #73 (Mattias Guns) and finally patch #162 (Ulrich Eckhardt; this commit is heavily based upon Ulrich's work). The original code was overly complex. It tried to avoid writing bytes to the disk at the expense of comprehensibility and as a result it was buggy. I looked at both patches from Mattias and 'Nable 80' which address the bug with skipping entries in the history-file (my fault: incorrect use of outfile.ignore(1, '\n')): They provided a proper fix for the problem but I decided to use Ulrich's code since it improves the whole code by making it a lot simpler. So, kudos to all of you.
2015-01-02Fix loading fbrun-historyMathias Gumz1-5/+3
Previous code add one additional entry on loading the history. This commit is one part of the patch #162 (see [1] and [2]), written by Ulrich Eckhardt <doomster@knuut.de>. [1]: https://sourceforge.net/p/fluxbox/patches/162/ [2]: https://bugs.debian.org/cgi-bin/bugreport.cgi?msg=10;filename=fbrun-bug636632.patch;att=1;bug=636632
2013-05-26build-sys: include config.h to all files using automakeSami Kerola1-4/+0
Do not try to be too smart which compilations need config.h, as most of them will simply because of the config.h has information about system capabilities.
2012-12-30Store XClassHint on stack, not in dynamic memoryVladimir A. Pavlov1-8/+5
2012-01-04Check .empty() instead of .size() == 0Ryan Pavlik1-3/+3
Found with cppcheck.
2011-10-31FbRun.cc: Fix on windows where there is no forkRyan Pavlik1-0/+25
2010-09-08introduced FbTk::BidiStringMathias Gumz1-6/+8
a 'BidiString' holds both the logical content and the visual reordered version of the content of a string. this helps to reduce the number of calls to reorder the string before drawing it (as introduced in the patch from Ken Bloom) and to be more consistent in menus and textboxes (drawing cursors and underlining text).
2009-05-25minor cosmeticsMathias Gumz1-5/+5
2008-10-04add -print option to fbrun to return result to stdout instead of executing itMark Tiefenbruck1-0/+7
2008-01-04remove old svn $Id$ tagsMark Tiefenbruck1-2/+0
2007-07-31add some decorations to torn menus, and fix restart without an argumentmarkt1-4/+4
2007-06-09small fix for the /bin/sh issue .. just using /bin/zsh nowmathias1-3/+1
2007-06-06fix for the following problem:mathias1-1/+8
on *bsd /bin/sh is not just a symlink to /bin/bash as on most linux's but a real standalone shell. and it behaves differently from "bash -c" behavior .. it doesnt exec the command given but waits till the command finishes. as a result a lot of "rogue" a flying around. solution is now ( $SHELL or /bin/sh ) -c exec <cmd>
2006-10-30Cosmetic patch from Slava Semushinmathias1-1/+7
2006-04-25Cleanup unneeded headers (thanks Slava Semushin)mathias1-32/+30
2006-04-25fbrun: Move the cursor to the end when tab completingsimonb1-10/+23
+ thanks Jonas Koelker, sf.net rfe #1333003, patch #1475578
2006-04-17fix fbrun positioning code to use hints properlysimonb1-2/+6
2006-04-17fix compiler warnings in fbrun toosimonb1-4/+4
2006-02-16updated copyright infomathias1-1/+1
2005-05-09fix from vadim for fbrun-tabcompletionmathias1-2/+2
2005-05-06Fix for #1160244, #1099704, #1094107:mathias1-5/+6
if the xkb-extension is enabled and the user switches between his/her keyboardlayouts fluxbox's keybhandling doesn't work well anymore because xkeyevent.state contains also xkb-related flags and thus we have to handle that with caution. KeyUtils now contain 'isolateModifierMask()' to really work only on the modifiers. why not as part of cleanMods() ? because the XLookupString return false results, eg TextBox's would only print chars from the first keyboardlayout.
2005-01-24copyright datemathias1-1/+1
2005-01-20applied patches from openbsd-ports, closed #1105041 (sf)mathias1-1/+1
execl needs a terminating NULL at the end, a '0' would be converted to "int 0" on 64bit-systems
2004-12-24fix the no-writing-history issue for fbrunmathias1-12/+19
2004-12-18* moved FbTk/Directory.cc/hh over to FbTk/FileUtil.cc/hh which contain now mathias1-7/+7
file and directory - helproutines. * created the FileUtil-namespace which contains file-related functions, moved those functions out of Directory - code * changes to the rest of the files to follow those changes
2004-11-18keypad-enter should work with fbrun nowmathias1-1/+2
2004-10-10fbrun switches between file-search and path-to-file-search now correctly (i ↵akir1-3/+4
think)
2004-09-29fixes #1026929 (sourceforge)akir1-2/+6
2004-08-31add autoconf check for std c++ headersrathnor1-2/+6
2004-04-22path completion, and load apps on first tab press, patch from Mathias Gumzfluxgen1-42/+91
2004-04-21add unistd include for forkrathnor1-1/+2
2004-04-19using fbtk directory, patch from Mathias Gumzfluxgen1-22/+14
2004-04-18minor fixfluxgen1-11/+10
2004-04-18tab complete on all apps in PATH, patch from Mathias Gumzfluxgen1-2/+70
2004-02-28fixed invinite loop, patch from Mathias Gumzfluxgen1-5/+6
2004-02-25cycle tabcompletion, patch from Mathias Gumzfluxgen1-3/+7
2003-12-31minor fixfluxgen1-2/+2
2003-09-16fix modifier cleaning in fbrun (was missing capslock)rathnor1-4/+3
2003-09-16portability fixrathnor1-2/+2
2003-09-06fixed scroll lock and num lock maskfluxgen1-1/+6
2003-08-27using GContext and FbPixmapfluxgen1-12/+12
2003-08-27using FbTk TextBoxfluxgen1-195/+32
2003-08-25added pixmapfluxgen1-48/+72
2003-08-24indentfluxgen1-28/+28
2003-07-25fix fbrun on multiple screensrathnor1-3/+3
2003-07-10patch that keeps the fbrun_history clean by not allowingfluxgen1-7/+30
duplicates to get placed in the history. Thanks David J Burger
2003-06-25setting class hint to fbrun, FbRunfluxgen1-1/+9
2003-06-24emacs keybindings and tab completion, thanks David J Burgerfluxgen1-58/+221
2003-04-27add missing #include <cassert>rathnor1-1/+2
2003-03-22added cursorfluxgen1-7/+38