Jekyll Wu
125e2c7bd2
Declare pointer and reference in a consistent way
...
Most code use the "const QString& text" form, instead of the "const
QString &text" form. So change the minority to be consistent with
the majority.
2011-11-06 06:13:28 +08:00
Jekyll Wu
cf92cece2b
Remove leading white spaces in blank lines to make them really empty
2011-11-05 07:29:21 +08:00
Jekyll Wu
1772401647
Rename for consistency
...
In '-p 2222', -p is the option and 2222 is its argument.
noOptionsArguments ==> noArgumentOptions
singleOptionArguments ==> singleArgumentOptions
argChar ==> optionChar
2011-09-09 23:10:13 +08:00
Jekyll Wu
c4ab3d6c6d
Make the parsing of ssh command more robust, or more complicated.
...
It now can deal with both '-p 2222' and '-p2222'.
This is a follow up of 869cdb1090
CCBUG: 281621
2011-09-09 21:23:12 +08:00
Jekyll Wu
e828def700
Reorgnazie some #include.
2011-09-06 06:53:38 +08:00
Jekyll Wu
869cdb1090
support -p port in ssh command for specifying non-default port.
2011-08-21 09:17:42 +08:00
Jekyll Wu
cc36502516
make %u work for ssh connection where '-l user' is used .
...
FEATURE: 197345
FIXED-IN: 4.8
2011-08-20 23:07:43 +08:00
Jekyll Wu
967c927b04
Disables the code for replacing the %c and %C formatter.
...
%c and %C are not implemented yet, and are unkonwn to users.
2011-08-20 19:34:35 +08:00
Jekyll Wu
20e9274943
Fix a hidden bug which makes argument list grow longer for ever.
...
The old code updates the argument list when it is asked to refresh
process info, but it calls ProcessInfo::addArgument() without ever
clearing existing arguements first. This means the argument list will
grow longer and longer for ever. For a long-running shell session in
which user has executed thousands of commands, that will waste quite
amount of memory, not to metion the logic error itself.
The reaseon why this bug keeps hidden is that the %c and %C formatter
have never been revealed to users, which are not implemented yet.
2011-08-20 19:23:17 +08:00
Kurt Hindenburg
f5feeba821
Check getpwuid_r return value.
2011-04-02 17:43:56 -04:00
Kurt Hindenburg
cacfb081bb
Use KDE::'s stat and chmod
2011-04-01 10:37:53 -04:00
Kurt Hindenburg
e865acedb8
Add cwd support for DragonFly. Patch by Alex Hornung.
...
It compiles under Linux.
BUG: 259970
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=1210984
2011-01-02 21:13:06 +00:00
Kurt Hindenburg
b216cb9daf
In the tab title, for %D change the user's home path with a ~ if it starts at the
...
beginning.
FEATURE: 206316
FIXED-IN: 4.6
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=1185589
2010-10-13 19:58:43 +00:00
Kurt Hindenburg
71a9a5d3d8
For Q_OS_MAC, obtain the current directory. There is still the issue of when it is a
...
symlink that the linked directory is given, not the symlink.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=1185298
2010-10-12 21:11:17 +00:00
Kurt Hindenburg
eef7bc702e
Dragonfly patch to build - patch by Alex Hornung
...
BUG: 247626
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=1173677
2010-09-10 03:21:07 +00:00
Kurt Hindenburg
6b2440e2c2
comment out kDebugs - change some to kWarnings
...
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=1148447
2010-07-10 17:22:28 +00:00
Kurt Hindenburg
cf2522f6e9
quite unused variables
...
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=1115193
2010-04-15 15:33:21 +00:00
Kurt Hindenburg
3138e80fd6
minor krazy fixes
...
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=1108151
2010-03-28 00:13:13 +00:00
Kurt Hindenburg
00acf5ca59
Change quotes to brackets for config-konsole.h includes
...
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=1107712
2010-03-26 15:16:51 +00:00
Benjamin Reed
459a5cda2f
merge 1099510 from 4.4: test for sys/proc_info.h and sys/proc.h
...
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=1099511
2010-03-05 17:56:08 +00:00
Kurt Hindenburg
762b0eeaaa
This time use the correct portable struct for stat
...
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=1079207
2010-01-23 20:48:46 +00:00
Kurt Hindenburg
799c55e83c
use portable struct for stat
...
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=1079177
2010-01-23 19:39:57 +00:00
Kurt Hindenburg
31aea137a8
Fix some build warning and a krazy issue.
...
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=1033923
2009-10-11 15:42:12 +00:00
Kurt Hindenburg
e6f2f19a70
Use getpwuid_r instead of getpwuid in the Linux portion.
...
Possible reports: 195265, 201119, 209544
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=1032293
2009-10-07 13:52:17 +00:00
Kurt Hindenburg
fd19e735aa
Change how /proc/%pid/status is read on Linux and add more error checking in hopes of avoiding crashes.
...
Possible reports: 195265, 201119, 209544
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=1031794
2009-10-06 05:24:31 +00:00
Raphael Kubo da Costa
f2d94b2b51
Save one pointer in FreeBSD::readCurrentDir().
...
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=1018644
2009-09-02 01:20:26 +00:00
Raphael Kubo da Costa
384792f0ea
Implement readArguments() for FreeBSDProcessInfo.
...
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=1018643
2009-09-02 01:17:44 +00:00
Raphael Kubo da Costa
f0cf4e52b5
Return false for methods not implemented in Solaris.
...
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=1017794
2009-08-31 14:32:53 +00:00
Raphael Kubo da Costa
750dc4fa90
Add support for retrieving process information for FreeBSD.
...
REVIEW: 1485
BUG: 205648
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=1017793
2009-08-31 14:31:23 +00:00
Kurt Hindenburg
a8c7c1de89
Fix an issue with my 1017187 commit and fix 1 krazy2 issue
...
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=1017606
2009-08-31 00:25:54 +00:00
Kurt Hindenburg
163df68298
Fix some code issues that krazy2 found when running on MacOS.
...
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=1017187
2009-08-29 21:55:19 +00:00
Pino Toscano
4cbb309c9b
compile the MacProcessInfo class only on macosx, as it uses macosx-specific api
...
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=995969
2009-07-13 16:18:12 +00:00
Kurt Hindenburg
5cc136ee5d
Add structure for Mac process info for tab info - curretnly only program name works.
...
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=993346
2009-07-08 14:33:26 +00:00
Kurt Hindenburg
3c15889a28
Revert Mac process info patch - doesn't compile on my Linux box.
...
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=992669
2009-07-07 14:53:08 +00:00
Kurt Hindenburg
4d9be5c330
Add MacProcessInfo to handle the info in the tabs. Currently only program %n works.
...
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=992627
2009-07-07 12:53:35 +00:00
Till Adam
530ae48f53
Fix the build on OSX and Windows by implementing all virtuals in
...
NullProcessInfo.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=952828
2009-04-12 16:36:35 +00:00
Kurt Hindenburg
89fdb61362
Allow %u (user) in tab/window title
...
BUG: 154295
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=952487
2009-04-12 00:52:42 +00:00
Robert Knight
dd9df43b44
Remove emacs mode information from the bottom of some source files.
...
If this information is put anywhere it should be in a single file instead
of duplicated for each file. In fact, it shouldn't be needed at all since
we have the same rules on tabs and tab sizes as most other parts of kdebase
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=946369
2009-03-29 11:12:57 +00:00
Robert Knight
ef3e43e11d
Initial implementation of session management in Konsole.
...
Patch from Stefan Becker <stefan.becker@nokia.com >
Thank-you very much Stefan!
CCBUG: 152761
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=867323
2008-10-03 10:38:50 +00:00
Steve Evans
ddc020b094
Move the include of <procfs.h> so that it is always included
...
on Solaris, even when _FILE_OFFSET_BITS is not 64
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=825033
2008-06-27 07:17:47 +00:00
Robert Knight
e7c489818b
* Working dynamic tab titles under Solaris. Patch by Adriaan de Groot.
...
* Re-organise CMakeLists.txt
Squashed commit of the following:
commit 7de6492753607603675729844520c89d914294eb
Author: Robert Knight <robertknight@gmail.com >
Date: Wed Jun 25 22:46:06 2008 +0100
Formatting. Clarify comments.
commit 5e419ee80316fc523d6809f0b5f7112aca565d19
Author: Robert Knight <robertknight@gmail.com >
Date: Wed Jun 25 22:35:23 2008 +0100
Fix compilation of ProcessInfo.cpp under Linux. Add missing members to dummy psinfo struct. Create instance of correct ProcessInfo sub-class depending on whether OS is Linux or Solaris.
commit 08d0ce320761bf2beedeb463a01bcb0a3e426439
Author: Robert Knight <robertknight@gmail.com >
Date: Wed Jun 25 22:34:11 2008 +0100
Re-organise the CMakeLists.txt to avoid duplicating the list of sources for the part and the application.
commit 7b84b5ebb7422f8e87dbc2e224ebc2405355e262
Author: Robert Knight <robertknight@gmail.com >
Date: Wed Jun 25 17:28:47 2008 +0100
Support for reading process information under Solaris. Patch from Adriaan de Groot.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=824517
2008-06-26 00:07:01 +00:00
Albert Astals Cid
1222b0e15b
avoid unnecessary copies by using const & in foreach
...
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=800783
2008-04-24 20:41:04 +00:00
Robert Knight
5d9997446e
Update copyright year to 2008. Remove '(C)' from copyright lines.
...
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=800631
2008-04-24 14:53:43 +00:00
Robert Knight
971a5315f9
Remove debugging messages.
...
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=800628
2008-04-24 14:52:39 +00:00
Robert Knight
46cfc108d3
* Replace all usage of qDebug() with kDebug(), since kDebug() provides information about
...
which part of the code the message came from and allows filtering of output
using kdebugdialog
* Remove explicit creation of singleton classes SessionManager,ColorSchemeManager and
KeyboardTranslatorManager and automate it with K_GLOBAL_STATIC.
This ensures that the singleton destructors are called appropriately by KPart clients
when they unload the libkonsolepart library.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=754334
2007-12-29 16:07:31 +00:00
Arto Hytönen
d0e0ca3c4f
this should clean-up kdebase of all of overkills of krazy:exclude of QString::null lines.
...
as long as C++ std clause 6.8 states (if I get it right), the diff should be OK, still can only compile with gcc-4.2...
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=701136
2007-08-17 12:14:28 +00:00
Arto Hytönen
7021299cfb
further elimination/cancellation of QString::null.
...
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=700742
2007-08-16 10:44:18 +00:00
Robert Knight
757101c615
If reading the current working directory of a process fails (eg. when running a 'sudo' command) when preparing a tab title then fall back to the parent process's current working directory. Add basic error reporting to ProcessInfo.
...
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=699000
2007-08-11 19:21:45 +00:00
Robert Knight
18de140c5d
Add a few more common dir names to abbreviate in tab titles.
...
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=696948
2007-08-06 11:22:47 +00:00
Robert Knight
c88bf4bc48
Make the directory names to abbreviate in tab titles a KConfig-based setting.
...
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=691621
2007-07-24 04:02:50 +00:00