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
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
It's apparently not possible to set WA_TranslucentBackground after
show(). The MainWindow constructor calls applyKonsoleSettings() which
calls KMainWindow::setAutoSaveSettings() which in turn calls
setVisible(true), which makes any calls to setTransparency() from the
Application::newMainWindow() irrelevant, even if updateUseTransparency()
is called from it.
REVIEW: 128669
BUG: 366368
(cherry picked from commit a28902e912)
It's apparently not possible to set WA_TranslucentBackground after
show(). The MainWindow constructor calls applyKonsoleSettings() which
calls KMainWindow::setAutoSaveSettings() which in turn calls
setVisible(true), which makes any calls to setTransparency() from the
Application::newMainWindow() irrelevant, even if updateUseTransparency()
is called from it.
REVIEW: 128669
BUG: 366368
When Konsole Settings -> 'Use current window size on next startup' is
disabled, use the Profile's terminal size for new windows.
Many thanks to Roman Gilg (subdiff gmail com) for research and patch.
If there are no further issues, I'll commit to 15.12 branch (should go
.2 release).
REVIEW: 126924
CCBUG: 345403
This allows both these lines to work:
konsole -e man ls
konsole -e "man ls"
Thanks to Mark Raymond markr raymonds org uk for patch/testing.
CCBUG: 295648
REVIEW: 120001
FIXED-IN: 4.14.2
(cherry picked from commit bd56dba1a9e52180a88e8fbd0c6adaf216a852d5)
This fixes multiple monitor issues - dnd window will be moved to where
user dropped the window.
BUG: 324760
FIXED-IN: 2.13
(cherry picked from commit e6dcc8d6b8)
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
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#
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
Although that looks like a nice feature, it makes the code more
complicated and causes problems when that command is an absolute path
containing spaces.
So for now the only supported way is:
konsole -e command arguments
CCBUG: 295648
This reverts commit aa75fc8fee
Since the menubar and tarbar settings are now global instead of per
profile , those cmdline options are useful to allow users to override
the defautl behavior.
The --hide-menubar and --hide-tabbar options can be used together
to simulate the miminal interface of xterm. I'm not sure whether
--show-menubar and --show-tabbar will be widely used , but add them at
the moment for the sake of completeness.