Commit Graph

157 Commits

Author SHA1 Message Date
Kurt Hindenburg
8b2170bd9b add KUIT items 2017-04-26 23:53:16 -04:00
Kurt Hindenburg
1b48389e0c krazy exclude includes for config-konsole.h 2017-04-26 23:02:40 -04:00
Kurt Hindenburg
2b586e6ff8 use auto 2017-03-28 11:25:26 -04:00
Kurt Hindenburg
7d9b3c16ef Fix an issue of readability-implicit-bool-cast; adjust for readability 2017-03-26 16:23:32 -04:00
Montel Laurent
b69fef3afa We can increase copyright => waou 20 years! 2017-03-01 06:44:02 +01:00
Martin T. H. Sandsmark
cbb7448434 Fix opening of new tabs with multiple processes
Make sure we re-use the process if the user wants a new tab.

BUG: 373440
REVIEW: 129886
2017-01-27 18:13:33 +01:00
Maximiliano Curia
a779c8314a Pre process the -e custom command argument
Special case parsing of -e, to avoid parsing parameters intended for the
command to be executed.

REVIEW: 129677
2017-01-27 15:51:14 +01:00
Harald Sitter
c6ffcaff55 Add --nofork as compatibility alias for --separate
In previous incarnations of kuniqueapplication it used to inject a common
command option --nofork which is meant to bypass single-instance behavior.
Given that konsole can and is being invoked from scripts they may well want
to ensure that the fork they created is the actual instance of konsole.
i.e. to monitor return values and life time

Presently, since the options are divergent between konsole4 and konsole5,
scripts are either incompatible with older konsoles or with newer konsoles.
To make life easier for everyone add a compat alias --nofork, which
behaves exactly like separate.

(this unbreaks steam, which is a notable recent offender of falling into
 this particular trap)

REVIEW: 129647
CHANGELOG: Added compatibility command option `--nofork` for single-instance behavior
2016-12-19 09:09:03 +01:00
Martin T. H. Sandsmark
a30be88f3b Add setting for using multiple instances
Adds a setting for forcing the use of multiple instances instead of
running all instances in the same process. This way all terminals don't
go down when one instance crashes.

REVIEW: 129345
2016-11-09 13:28:17 +01:00
Martin T. H. Sandsmark
4ec9b56580 Fix reparsing of command line arguments
If a new Konsole instance is launched via DBus (e. g. single process
mode), it re-used the QCommandLineParser each time, so each new instance
would inherit all parsed options.

Most noticeably is if you have konsole running, press Shift+F4 in
Dolphin to launch a Konsole instance in the current folder (which leads
Konsole to use a temporary profile), and then try to open a new konsole
instance outside of that, it would open in the folder from Dolphin.

REVIEW: 129217
2016-10-22 22:20:16 +02:00
Kurt Hindenburg
30fe2a0b9d Add KCrash code so krkonqi crash dialog works again
BUG: 367006
2016-08-28 15:05:21 -04:00
Kurt Hindenburg
5b11fd593b Prevent 2 windows from opening upon session restore
Session management would start 2 konsole windows upon login.

Thanks John Stanley (jpsinthemix gmail com) for patch

BUG: 367447
2016-08-28 09:08:02 -04:00
Kurt Hindenburg
d73270a470 Fix issues where --tabs-from-file doesn't exist or is invalid
Cleanly exit if there are any issues with the given file for
--tabs-from-file option.

BUG: 367855
2016-08-27 11:41:51 -04:00
Albert Astals Cid
4e83f5a900 Compile with Qt < 5.6 2016-07-18 00:45:17 +02:00
Kurt Hindenburg
272c8f7fd8 Q_OS_MAC -> Q_OS_OSX
Q_OS_MAC includes OSX and iOS

Patch from rjvbertin gmail com
2016-07-07 15:53:57 -04:00
Harald Sitter
cdc43d3702 add a debian compat option
debian policy for reasons beyond my apprehension wants a -T option to
set the window title (like in xterm).
to make debian's (and derivate's) life easier let's support a no-op
-T option but hide it. this option will not appear in --help output
but be accepted by the parser all the same.

this enables Debian and friends to drop a long standing useless patch
and at the same time prevents us from introducing a conflicting -T in
the future.

REVIEW: 128299
2016-07-06 09:43:42 +02:00
Kurt Hindenburg
1ed6c8d538 Add QStringLiteral per clazy 2016-06-21 10:25:04 -04:00
Kurt Hindenburg
c87016ae49 Use new QT5 signal/slot convention 2016-06-19 19:26:43 -04:00
Kurt Hindenburg
f5418597f6 includes cleanup 2016-06-19 19:02:26 -04:00
Christoph Cullmann
377a33ee8b Don't require dbus + bundle ui files in resources
REVIEW: 128168
2016-06-18 22:35:40 +02:00
Martin T. H. Sandsmark
001478670a Remove misleading debug output in kdemain. 2016-06-11 17:28:10 +02:00
Martin T. H. Sandsmark
fe334292b5 Fix crash when KDBusService exits
KDBusService is designed in a way that is fundamentally not compatible
with Qt, where it exit()s before the QApplication is deleted, which
leads to a lot of weird crashes in various parts of Qt.

To work around this we install an atexit() handler to delete the
QApplication before we shut down.

REVIEW: 127626
2016-06-11 17:25:58 +02:00
Martin T. H. Sandsmark
27dec8d02f Port away from kdelibs4support.
Original work by Dāvis Mosāns.

REVIEW: 127625
REVIEW: 126808
2016-06-11 17:24:12 +02:00
Albert Astals Cid
740675243c Call KLocalizedString::setApplicationDomain("konsole");
konsole is using
   -DTRANSLATION_DOMAIN=\"konsole\"
that is wrong for applications, apps need to use
   KLocalizedString::setApplicationDomain
since that is needed for some things like the transltators tab in the about
dialog.

I have not removed -DTRANSLATION_DOMAIN=\"konsole\" because on the other hand
this code is also a library (i.e. the konsole kpart).

The "being pedanticly correct" fix would be using -DTRANSLATION_DOMAIN=\"konsole\"
only to compile the files that are part of the kpart but that's prone to
break at some point and using both KLocalizedString::setApplicationDomain and
-DTRANSLATION_DOMAIN does not create any problem so i went that route

CCMAIL: konsole-devel@kde.org
2015-11-29 19:39:04 +01:00
Kurt Hindenburg
7b07dd78cd s/QLatin1String/QStringLiteral/ 2015-09-12 12:35:49 -04:00
Kurt Hindenburg
064d189846 Port from K4AboutData to KAboutData
Thanks Ragnar Thomsen rthomsen6 gmail.com for patch

REVIEW: 124653
2015-08-08 12:08:05 -04:00
Kurt Hindenburg
921000d026 Migrate KDE4 apps files to new KDE5
The rc and ui files were already migrated.  This patch copies the other
files from share/apps/konsole to local/share/konsole.

CCBUG: 346762
FIXED-IN: 15.08.0
(cherry picked from commit 5c13d4641a)
2015-07-22 21:31:32 -04:00
Kurt Hindenburg
c5adcac257 Port kde_file.h KDE_open to QT_OPEN 2015-02-08 10:43:00 -10:00
Montel Laurent
38c263f4c0 Migrate config 2014-10-28 09:43:42 +01:00
Montel Laurent
dd4348d30a Fix includes 2014-10-19 09:01:52 +02:00
Montel Laurent
6c747d97d6 kdelibs4support-- 2014-10-17 23:31:29 +02:00
Kurt Hindenburg
b542df3420 Revert "No longer check for X11"
For now revert this, on non X11 systems it causes:

FAILURE (KCmdLineArgs):
Application requests for isSet("display") but the "display" option
has never been specified via addCmdLineOptions( ... )

This reverts commit d42ef186c8.
2014-09-17 08:57:55 -04:00
Kurt Hindenburg
d42ef186c8 No longer check for X11
X11 check was only for checking parameters on the command line.  X11
wasn't actually needed.
2014-09-14 12:08:21 -04:00
Kurt Hindenburg
26e2da0d6b Version-ize konsoleprivate libraries
This allows (on packaging level at least) co-existence of kdelibs4 &
KF5 konsole-part.

Patch by Hrvoje Senjan hrvoje senjan gmail com

REVIEW: 119909
2014-09-14 08:33:48 -04:00
Lukáš Tinkl
9900747e0f l10n fixes 2014-07-20 22:42:12 +02:00
Montel Laurent
efd1d0ec08 Use xi18n when markup 2014-07-16 13:23:03 +02:00
Alex Richardson
7162996e1d Port away from Q_WS_X11 2014-04-10 15:27:51 +02:00
Kurt Hindenburg
11c1de4bb7 Add --separate command line
Use a new process if --separate is used on command line.  Similiar to
--detach (from kuniqueapplication).

Patch by Jekyll Wu <adaptee@gmail.com>

BUG: 309249
REVIEW: 107127
FIXED-IN: 2.13
(cherry picked from commit 2b31d26151)
2014-02-17 09:17:30 -05:00
Kurt Hindenburg
cdfe235784 Restore --background-mode
For now restore this option that was removed for 2.11.  This option
is somewhat a hack and abnormal feature.  However, it seems a number
of people use it and I can see how it would be useful.  So instead of
spending a lot of time right now trying to correct the issues, just
restore the previous code.
Ideally for KDE 5, this portion of the code can be better handled.

35bb9cf9e7

BUG: 320783
FIXED-IN: 2.13#
(cherry picked from commit cfbfb0fd8c)

Conflicts:
	src/Application.cpp
2014-02-07 09:00:51 -05:00
Kurt Hindenburg
5639987451 Let's give this frameworks (Qt5/KF5) branch a different version 2013-08-21 10:02:51 -04:00
Alex Richardson
a83db71590 Port to KF5/Qt5
TerminalDisplayAccessible is disabled for Qt5 currently since I don't
have any experience with accessible stuff and it is more complicated
than just changing a few includes

REVIEW: 111937
2013-08-20 23:34:35 +02:00
Alex Richardson
ab5e15b1b7 Revert "Port to KF5/Qt5"
This reverts commit 4adfbe84bd.

This work will go into a new branch instead
2013-08-13 23:26:19 +02:00
Alex Richardson
4adfbe84bd Port to KF5/Qt5
To build for KF5 pass the option -DQT5_BUILD=ON to CMake

TerminalDisplayAccessible is disabled for Qt5 currently since I don't
have any experience with accessible stuff and it is more complicated
than just changing a few includes

REVIEW: 111937
2013-08-13 21:26:59 +02:00
Kurt Hindenburg
5756ba1e9d Update version # for new master 2013-07-11 09:50:47 -04:00
Kurt Hindenburg
cf1676aec1 Bump version to 2.11 for KDE SC 4.11 2013-06-09 19:10:55 -04:00
Kurt Hindenburg
cb4ca01e8b Add a --fallback-profile which uses the internal basic profile
If an user had only one profile and accidently puts a non-interactive
program (eg pwd) in the Command section it will start, run command and
then close.
The FALLBACK/ profile is the internal basic profile.

REVIEW: 109558
FIXED-IN: 4.11
2013-04-06 13:41:35 -04:00
Kurt Hindenburg
35bb9cf9e7 Remove the the immature --background-mode option
See http://lists.kde.org/?l=konsole-devel&m=135316608321148&w=2 for
details.

FIXED-IN: 4.11
BUG: 310433
2013-02-24 12:27:54 -05:00
Kurt Hindenburg
8241682b8b Add --fullscreen command line option
Add option to go into full screen mode via command line.

FEATURE: 312378
REVIEW: 109042
FIXED-IN: 4.11
2013-02-21 08:31:36 -05:00
Kurt Hindenburg
7a2a5beb00 Correct spelling errors/word usage
All these are in the comments - no code changes
2013-01-09 22:07:11 -05:00
Kurt Hindenburg
b8c7320e14 Add more i18nc context markers (@info:shell) 2012-12-23 21:53:35 -05:00