Commit Graph

216 Commits

Author SHA1 Message Date
Nicolas Fella
1960a0f9c8 Use default DEFAULT_SEVERITY for logging
The default value (Info) is fine.
2026-05-09 19:17:31 +00:00
Kurt Hindenburg
5f4250b3cf Add nullptr checks to handle derefs (coverity) 2025-12-15 23:28:52 +00:00
l10n daemon script
0bc61e7859 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2025-11-09 01:38:17 +00:00
l10n daemon script
0c943db0f7 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2025-09-09 02:13:48 +00:00
Christoph Cullmann
80785a9c0f allow all hostnames and more ports
skip bogus host name validation, the most common error
is a wrong one, not an invalid one

allow full port range, people can setup ssh servers on
any ports

fixes IPv6 addresses as hostnames

BUG: 469474
2025-06-01 22:17:47 +02:00
Luca Carlon
0ce309e66b Avoid detaching Qt containers in range-based for loops
Using temporaries or non-const containers directly in range-based
loops can cause containers to detach, leading to unnecessary copies.
This commit ensures all range-based loops iterate over named,
const-qualified containers to prevent detachment and improve performance.
2025-05-18 16:48:32 +02:00
lzwind lzwind
70452321ce Return early when SSH config file cannot be opened
When attempting to import SSH configurations, the code previously continued
execution even when the config file could not be opened. This could lead
to undefined behavior or crashes when trying to read from an invalid file
handle.

The fix adds an early return statement when file opening fails, ensuring
proper error handling and preventing potential issues downstream.
2025-03-03 13:21:37 +00:00
Jan-Florian Hilgenberg
f8c3d51437 fix calling hosts that are defined in ~/.ssh/config
This shall fix a minor bug calling hosts that are defined in ~/.ssh/config by their identifier name rather than its HostName.

> Definition:
> "identifier" is called Host in .ssh/config.

Example config in ~/.ssh/config:

> Host core
> 
> HostName core.company.com
> 
> User sshadmin

You want Konsole to run "ssh core", since calling ssh with a
config identifier makes ssh pull all config from .ssh/config.

Currently Konsole runs "ssh core.company.com" so it takes the hostname
instead of the config identifier.

In the end it does not match any entity in ssh's config and Konsole
would need to establish a correct set of parameters in the call to the
ssh binary.

That error I think is laying in sshmanagerplugin.cpp:205-216
where we need to evolve the if statement.

There was already a merge request for this issue report:

> BUG: https://bugs.kde.org/show_bug.cgi?id=450891

> MR: https://invent.kde.org/utilities/konsole/-/merge_requests/1055

But I think that MR is a bit of a shortcoming and does not take full
advantage of having the ssh binary do its job.

Let me know in case something needs to be aligned with your requirements.

I am new to sw dev and this is my very first patch to a KDE or any cpp/Qt project.
2025-01-12 21:03:46 +00:00
Yaron Shahrabani
fac9b8e347 Inverted wrong boolean condition 2024-12-30 11:25:41 +00:00
Yaron Shahrabani
c80d2f44b7 Revert "Inverted this boolean in order to use additional ssh parameters"
This reverts commit b0181be891
2024-12-30 11:24:03 +00:00
Yaron Shahrabani
b0181be891 Inverted this boolean in order to use additional ssh parameters 2024-12-30 10:13:05 +00:00
l10n daemon script
be9b5f7204 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2024-12-15 01:45:15 +00:00
l10n daemon script
b9969c350f SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2024-08-28 01:33:12 +00:00
ivan tkachenko
ac936bfd12 SSH Manager: Install its logging category and raise default severity
Removes lots of noise when simply switching tabs:

> org.kde.konsole.plugin.sshmanager: Controller changed to
Konsole::SessionController
2024-08-13 17:33:42 +00:00
Kurt Hindenburg
d822d163b9 Use separate category so not to spam Konsole's debug 2024-07-23 14:25:36 -04:00
l10n daemon script
9780f6e890 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2024-06-28 01:28:05 +00:00
l10n daemon script
2433851cc3 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2024-06-06 01:19:48 +00:00
Laurent Montel
47e617e474 Remove unused includes 2024-05-13 06:53:34 +02:00
Kurt Hindenburg
7c91805e96 Run all .ui files through designer6
designer changes a lot of items so commit them now so when someone
does a MR they don't get a lot of extra non-related changes.
2024-04-26 16:41:34 -04:00
Kurt Hindenburg
e3d0bed154 Fix strings to allow translations
BUG: 482364
2024-03-22 20:00:52 -04:00
l10n daemon script
695ce22ac7 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2024-03-01 01:16:05 +00:00
l10n daemon script
50723fcba3 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2024-02-16 01:16:19 +00:00
l10n daemon script
ad481ce2a7 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2023-12-24 02:33:13 +00:00
Waqar Ahmed
c34a16146a Fix KCommandBar integeration 2023-12-03 20:00:07 +05:00
Christoph Cullmann
7f109b7f82 adapt to api change 2023-12-02 15:36:49 +01:00
Christoph Cullmann
a660c80078 adapt to api change 2023-12-02 15:28:31 +01:00
Méven Car
f73e3bccb9 quickcommandswidget: better inform user about shellcheck, check for its presence more often 2023-11-24 10:55:12 +01:00
l10n daemon script
d18f4a266a SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2023-11-05 01:38:18 +00:00
l10n daemon script
5bc5b6e9b2 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2023-10-26 02:20:37 +00:00
Waqar Ahmed
1e136d63f2 move konsole to kf6 2023-10-25 22:13:53 +05:00
Friedrich W. H. Kossebau
451ed33d63 Add explicit moc includes to sources for moc-covered headers
* speeds up incremental builds as changes to a header will not always
  need the full mocs_compilation.cpp for all the target's headers rebuild,
  while having a moc file sourced into a source file only adds minor
  extra costs, due to small own code and the used headers usually
  already covered by the source file, being for the same class/struct
* seems to not slow down clean builds, due to empty mocs_compilation.cpp
  resulting in those quickly processed, while the minor extra cost of the
  sourced moc files does not outweigh that in summary.
  Measured times actually improved by some percent points.
  (ideally CMake would just skip empty mocs_compilation.cpp & its object
  file one day)
* enables compiler to see all methods of a class in same compilation unit
  to do some sanity checks
* potentially more inlining in general, due to more in the compilation unit
* allows to keep using more forward declarations in the header, as with the
  moc code being sourced into the cpp file there definitions can be ensured
  and often are already for the needs of the normal class methods
2023-07-28 12:17:12 +00:00
Laurent Montel
e097910eeb Remove Designer's "." normaloff file data from icon properties in .ui files
Qt Designer (accidentally) injected "." file names as fallback when
setting theme icon names, which then results in generated code like:
    QIcon icon;
    QString iconThemeName = QString::fromUtf8("list-add");
    if (QIcon::hasThemeIcon(iconThemeName)) {
        icon = QIcon::fromTheme(iconThemeName);
    } else {
        icon.addFile(QString::fromUtf8("."), QSize(), QIcon::Normal, QIcon::Off);
    }
Such a "." file name is not documented to serve any purpose, just results
in failing icon lookup.
2023-07-19 19:37:49 +02:00
Laurent Montel
125b81654f Fix compile warning about QString::count() 2023-07-16 08:34:33 +00:00
Theodore Wang
c80d012773 Eliminate compilation warnings for plugins from using QAction::setShortcut(s)
Replaced QAction::setShortcut(s) with KActionCollection::setDefaultShortcut(s)
to eliminate compilation warnings

BUG: 462615
2023-06-06 21:28:27 +00:00
Alexander Lohnau
2b5832a7e3 Check KPluginMetaData version before loading plugins
This will only load plugins that match the RELEASE_SERVICE_VERSION set by
the release team.

See !429
2023-05-15 06:49:11 +00:00
Kurt Hindenburg
63616e8497 Revert "Check KPluginMetaData version before loading plugins"
This reverts commit cf312f42cc.
2023-05-07 15:55:37 -04:00
Alexander Lohnau
cf312f42cc Check KPluginMetaData version before loading plugins
This will only load plugins that match the RELEASE_SERVICE_VERSION set by
the release team.

See !429
2023-05-07 14:03:35 -04:00
l10n daemon script
f841e79655 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2023-04-19 01:45:57 +00:00
Laurent Montel
956493dcbe Use Qt camel case includes 2023-04-04 14:37:29 +00:00
l10n daemon script
ea764ed7c0 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2023-03-26 01:46:37 +00:00
Kurt Hindenburg
9a13e5810b Minor cleanup - remove extra semi-colons 2023-03-18 19:39:57 -04:00
Biswapriyo Nath
9b53d55db0 SSHManager: Disable checking current process name in Windows
This allows to use ssh plugin in Windows by skipping the check
if the running process is shell or not. If the running process
is not a known shell, creating any new ssh connection will fail
without any error message. It is possible to run different shell
under cmd.exe or powershell.exe. So, it is not enough to check
only the child process of conpty's conhost.exe.
2023-03-19 00:21:07 +05:30
Kurt Hindenburg
6961e4c1a6 Give layout unique name 2023-02-23 20:22:06 -05:00
arti amilots
b138d1ec7c Add a more useful error popup to hint user when no quick commands or ssh config is available.
Fixes BUG: 464995
2023-02-20 19:56:45 +00:00
l10n daemon script
32517acb16 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2023-02-15 02:07:20 +00:00
l10n daemon script
6e734d4fdc SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2023-02-07 02:05:36 +00:00
l10n daemon script
0649cbea2c SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2023-01-08 02:04:27 +00:00
l10n daemon script
bc555af4f7 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2023-01-04 02:07:23 +00:00
l10n daemon script
ae361fc5c0 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2022-12-11 01:57:00 +00:00
Carlos De Maine
678e632ecd Update sshmanagerplugin.cpp to allow kcrash support
Patch from Neon https://invent.kde.org/neon/kde/konsole/-/blob/Neon/unstable/debian/patches/konsole_plugin_kcrash_init.diff
2022-12-10 08:09:42 +00:00