Bug 416558 - Displaying error information while the console program is running
Summary: Displaying error information while the console program is running
Status: RESOLVED FIXED
Alias: None
Product: konsole
Classification: Applications
Component: emulation (show other bugs)
Version: 19.12.1
Platform: Manjaro Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-01-21 23:43 UTC by BuNnEd
Modified: 2020-03-29 12:11 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 20.04.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description BuNnEd 2020-01-21 23:43:12 UTC
SUMMARY
Displaying error information while the console program is running

STEPS TO REPRODUCE
1. Have C program "prog.out" binary file with "system("konsole -e my_prog.out");" source code string (prog.out and my_prog.out are different programs)
2. Run program prog.out
3. All programs works correctly, but I see konsole errors during my program working

OBSERVED RESULT
See konsole errors during my program working

EXPECTED RESULT
I didn't see this errors in previous versions of konsole

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 

Distributor ID: ManjaroLinux
Description:    Manjaro Linux
Release:        18.1.5
Codename:       Juhraya

(available in About System)
KDE Plasma Version: X-KDE-PluginInfo-Version=5.17.5
KDE Frameworks Version: 
Qt Version: Using Qt version 5.14.0 in /usr/lib

ADDITIONAL INFORMATION
Hello, whenever I want to launch konsole from the konsole, or with system()
(for example system("konsole -e ./my_prog.out");)
throw my C program I see this thing:
QCommandLineParser: already having an option named "h"
QCommandLineParser: already having an option named "help-all"
QCommandLineParser: already having an option named "v"
Comment 1 Wolfgang Bauer 2020-01-22 07:43:28 UTC
(In reply to BuNnEd from comment #0)
> QCommandLineParser: already having an option named "h"
> QCommandLineParser: already having an option named "help-all"
> QCommandLineParser: already having an option named "v"

That warning is new in Qt 5.14, and it has been fixed already on konsole's side:
https://cgit.kde.org/konsole.git/commit/?id=ac630f7fb15506ef4a49bab519361697c30ff273

That change is only in master so far though (i.e. it will be in the 20.04 release), maybe it would make sense to backport it to the 19.12 branch as well.
The only "problem" with that is that this change practically requires KDE Frameworks 5.7.0, but konsole currently has a minimum version of 5.6.0. OTOH, it is questionable that current konsole versions actually still compile and work with KF 5.6.0 anyway I think.
Comment 2 Wolfgang Bauer 2020-01-22 18:38:06 UTC
@Nate Graham: this is not an UPSTREAM bug.

Konsole did add these options twice, and Qt just warns about that now (it didn't before 5.14).
That's fixed in konsole master already though.
Comment 3 Wolfgang Bauer 2020-03-29 12:11:04 UTC
Fixed in konsole 20.04 beta.