[frameworks-kio] [Bug 421374] Service file specifiying 'Run in terminal' gives "Error code 100, Could not find the program ‘konsole’" after Plasma 5.18.5 update.

2020-06-19 Thread Wolfgang Bauer
https://bugs.kde.org/show_bug.cgi?id=421374

Wolfgang Bauer  changed:

   What|Removed |Added

 CC||574873...@qq.com

--- Comment #28 from Wolfgang Bauer  ---
*** Bug 423207 has been marked as a duplicate of this bug. ***

-- 
You are receiving this mail because:
You are watching all bug changes.

[frameworks-kio] [Bug 421374] Service file specifiying 'Run in terminal' gives "Error code 100, Could not find the program ‘konsole’" after Plasma 5.18.5 update.

2020-06-11 Thread Patrick Silva
https://bugs.kde.org/show_bug.cgi?id=421374

Patrick Silva  changed:

   What|Removed |Added

 CC||david.cortes.rivera@gmail.c
   ||om

--- Comment #27 from Patrick Silva  ---
*** Bug 422821 has been marked as a duplicate of this bug. ***

-- 
You are receiving this mail because:
You are watching all bug changes.

[frameworks-kio] [Bug 421374] Service file specifiying 'Run in terminal' gives "Error code 100, Could not find the program ‘konsole’" after Plasma 5.18.5 update.

2020-06-10 Thread Patrick Silva
https://bugs.kde.org/show_bug.cgi?id=421374

--- Comment #26 from Patrick Silva  ---
on next Saturday

https://community.kde.org/Schedules/Frameworks

-- 
You are receiving this mail because:
You are watching all bug changes.

[frameworks-kio] [Bug 421374] Service file specifiying 'Run in terminal' gives "Error code 100, Could not find the program ‘konsole’" after Plasma 5.18.5 update.

2020-06-10 Thread Alex Fliker
https://bugs.kde.org/show_bug.cgi?id=421374

--- Comment #25 from Alex Fliker  ---
Just upgraded to the latest 5.19 and the bug is still there :-| When is it
going to get pushed to the users?

-- 
You are receiving this mail because:
You are watching all bug changes.

[frameworks-kio] [Bug 421374] Service file specifiying 'Run in terminal' gives "Error code 100, Could not find the program ‘konsole’" after Plasma 5.18.5 update.

2020-06-06 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=421374

robyf...@gmail.com changed:

   What|Removed |Added

 CC||robyf...@gmail.com

--- Comment #24 from robyf...@gmail.com ---
(In reply to sahsanu from comment #20)
> (In reply to ryantg from comment #19)
> > In case this is helpful (and not inappropriate to share here)...
> > 
> > Temporary workaround that works for my situation (.desktop file): 
> > 
> > Exec=/usr/bin/konsole -e "[path to script]/hello.sh"
> 
> Besides to apply the proposed Exec change, if your desktop file contains
> Terminal=true remember to change it to false Terminal=false

I need to keep "on hold" the konsole, otherwise it closes too fast.
I use : Exec=/usr/bin/konsole --hold -e "[path to script]/hello.sh"

-- 
You are receiving this mail because:
You are watching all bug changes.

[frameworks-kio] [Bug 421374] Service file specifiying 'Run in terminal' gives "Error code 100, Could not find the program ‘konsole’" after Plasma 5.18.5 update.

2020-05-30 Thread Ahmad Samir
https://bugs.kde.org/show_bug.cgi?id=421374

Ahmad Samir  changed:

   What|Removed |Added

 CC||samoht0-bugzi...@yahoo.com

--- Comment #23 from Ahmad Samir  ---
*** Bug 422270 has been marked as a duplicate of this bug. ***

-- 
You are receiving this mail because:
You are watching all bug changes.

[frameworks-kio] [Bug 421374] Service file specifiying 'Run in terminal' gives "Error code 100, Could not find the program ‘konsole’" after Plasma 5.18.5 update.

2020-05-23 Thread Patrick Silva
https://bugs.kde.org/show_bug.cgi?id=421374

Patrick Silva  changed:

   What|Removed |Added

 CC||flike...@gmail.com

--- Comment #22 from Patrick Silva  ---
*** Bug 421991 has been marked as a duplicate of this bug. ***

-- 
You are receiving this mail because:
You are watching all bug changes.

[frameworks-kio] [Bug 421374] Service file specifiying 'Run in terminal' gives "Error code 100, Could not find the program ‘konsole’" after Plasma 5.18.5 update.

2020-05-21 Thread Ted Sadler
https://bugs.kde.org/show_bug.cgi?id=421374

Ted Sadler  changed:

   What|Removed |Added

 CC||tsad...@integral-blue.com

-- 
You are receiving this mail because:
You are watching all bug changes.

[frameworks-kio] [Bug 421374] Service file specifiying 'Run in terminal' gives "Error code 100, Could not find the program ‘konsole’" after Plasma 5.18.5 update.

2020-05-15 Thread Patrick Silva
https://bugs.kde.org/show_bug.cgi?id=421374

Patrick Silva  changed:

   What|Removed |Added

 CC||kde@callthecomputerdoctor.c
   ||om

--- Comment #21 from Patrick Silva  ---
*** Bug 421587 has been marked as a duplicate of this bug. ***

-- 
You are receiving this mail because:
You are watching all bug changes.

[frameworks-kio] [Bug 421374] Service file specifiying 'Run in terminal' gives "Error code 100, Could not find the program ‘konsole’" after Plasma 5.18.5 update.

2020-05-15 Thread Dominik Stańczak
https://bugs.kde.org/show_bug.cgi?id=421374

Dominik Stańczak  changed:

   What|Removed |Added

 CC||stanczakdomi...@gmail.com

-- 
You are receiving this mail because:
You are watching all bug changes.

[frameworks-kio] [Bug 421374] Service file specifiying 'Run in terminal' gives "Error code 100, Could not find the program ‘konsole’" after Plasma 5.18.5 update.

2020-05-14 Thread sahsanu
https://bugs.kde.org/show_bug.cgi?id=421374

--- Comment #20 from sahsanu  ---
(In reply to ryantg from comment #19)
> In case this is helpful (and not inappropriate to share here)...
> 
> Temporary workaround that works for my situation (.desktop file): 
> 
> Exec=/usr/bin/konsole -e "[path to script]/hello.sh"

Besides to apply the proposed Exec change, if your desktop file contains
Terminal=true remember to change it to false Terminal=false

-- 
You are receiving this mail because:
You are watching all bug changes.

[frameworks-kio] [Bug 421374] Service file specifiying 'Run in terminal' gives "Error code 100, Could not find the program ‘konsole’" after Plasma 5.18.5 update.

2020-05-14 Thread ryantg
https://bugs.kde.org/show_bug.cgi?id=421374

--- Comment #19 from ryantg  ---
In case this is helpful (and not inappropriate to share here)...

Temporary workaround that works for my situation (.desktop file): 

Exec=/usr/bin/konsole -e "[path to script]/hello.sh"

-- 
You are receiving this mail because:
You are watching all bug changes.

[frameworks-kio] [Bug 421374] Service file specifiying 'Run in terminal' gives "Error code 100, Could not find the program ‘konsole’" after Plasma 5.18.5 update.

2020-05-14 Thread Nate Graham
https://bugs.kde.org/show_bug.cgi?id=421374

--- Comment #18 from Nate Graham  ---
5.70 was already released and Frameworks do not have bugfix releases. It's up
to distro packagers to backport the fix at this point, if they don't want their
users to have to wait a month.

-- 
You are receiving this mail because:
You are watching all bug changes.

[frameworks-kio] [Bug 421374] Service file specifiying 'Run in terminal' gives "Error code 100, Could not find the program ‘konsole’" after Plasma 5.18.5 update.

2020-05-14 Thread Patrick Silva
https://bugs.kde.org/show_bug.cgi?id=421374

--- Comment #17 from Patrick Silva  ---
Can this fix be applied to kio 5.70?

-- 
You are receiving this mail because:
You are watching all bug changes.

[frameworks-kio] [Bug 421374] Service file specifiying 'Run in terminal' gives "Error code 100, Could not find the program ‘konsole’" after Plasma 5.18.5 update.

2020-05-14 Thread Nate Graham
https://bugs.kde.org/show_bug.cgi?id=421374

--- Comment #16 from Nate Graham  ---
Wait for KDE Frameworks 5.71 to be released and then upgrade to it.

-- 
You are receiving this mail because:
You are watching all bug changes.

[frameworks-kio] [Bug 421374] Service file specifiying 'Run in terminal' gives "Error code 100, Could not find the program ‘konsole’" after Plasma 5.18.5 update.

2020-05-14 Thread Duns
https://bugs.kde.org/show_bug.cgi?id=421374

--- Comment #15 from Duns  ---
Thank you, but I don't understand yet what I should do (if I should do
anything).

-- 
You are receiving this mail because:
You are watching all bug changes.

[frameworks-kio] [Bug 421374] Service file specifiying 'Run in terminal' gives "Error code 100, Could not find the program ‘konsole’" after Plasma 5.18.5 update.

2020-05-14 Thread Jonathan Marten
https://bugs.kde.org/show_bug.cgi?id=421374

Jonathan Marten  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED
   Version Fixed In||5.71
  Latest Commit||https://commits.kde.org/kio
   ||/6452a34cf01d03d3167b38bc28
   ||a2fe8e13569021

--- Comment #14 from Jonathan Marten  ---
Git commit 6452a34cf01d03d3167b38bc28a2fe8e13569021 by Jonathan Marten.
Committed on 14/05/2020 at 18:17.
Pushed by marten into branch 'master'.

Fix service file specifying 'Run in terminal' giving an error code 100

Happens because KIO::DesktopExecParser::resultingArguments() prepends
the terminal application to the command line.  If this is a relative path,
as it is most likely to be (and will be in the default 'konsole' case),
the "realExecutable" check in KProcessRunner::KProcessRunner() is triggered
and the job aborts with an error.

Expand the specified terminal executable into a full path in
resultingArguments(),
and return an error immediately if it cannot be found.  This full terminal path
is not relative for the KProcessRunner::KProcessRunner() check and does not
fail.

Check that resultingArguments() is not empty (an error return) before accessing
the first word of the command, so that it does not assert if the list is empty.
Also only call resultingArguments() once.
FIXED-IN: 5.71

Differential Revision: https://phabricator.kde.org/D29738

M  +9-1src/core/desktopexecparser.cpp
M  +9-8src/gui/kprocessrunner.cpp

https://commits.kde.org/kio/6452a34cf01d03d3167b38bc28a2fe8e13569021

-- 
You are receiving this mail because:
You are watching all bug changes.

[frameworks-kio] [Bug 421374] Service file specifiying 'Run in terminal' gives "Error code 100, Could not find the program ‘konsole’" after Plasma 5.18.5 update.

2020-05-14 Thread Duns
https://bugs.kde.org/show_bug.cgi?id=421374

--- Comment #13 from Duns  ---
So, we have to make some changes or to wait for KDE update?

-- 
You are receiving this mail because:
You are watching all bug changes.

[frameworks-kio] [Bug 421374] Service file specifiying 'Run in terminal' gives "Error code 100, Could not find the program ‘konsole’" after Plasma 5.18.5 update.

2020-05-14 Thread Nate Graham
https://bugs.kde.org/show_bug.cgi?id=421374

Nate Graham  changed:

   What|Removed |Added

 Status|REPORTED|ASSIGNED
   Priority|NOR |VHI
 Ever confirmed|0   |1
   Keywords||regression
   Assignee|fa...@kde.org   |j...@keelhaul.me.uk
 CC||n...@kde.org

--- Comment #12 from Nate Graham  ---
Thanks for submitting a patch!

-- 
You are receiving this mail because:
You are watching all bug changes.

[frameworks-kio] [Bug 421374] Service file specifiying 'Run in terminal' gives "Error code 100, Could not find the program ‘konsole’" after Plasma 5.18.5 update.

2020-05-14 Thread Jonathan Marten
https://bugs.kde.org/show_bug.cgi?id=421374

--- Comment #11 from Jonathan Marten  ---
https://phabricator.kde.org/D29738

-- 
You are receiving this mail because:
You are watching all bug changes.

[frameworks-kio] [Bug 421374] Service file specifiying 'Run in terminal' gives "Error code 100, Could not find the program ‘konsole’" after Plasma 5.18.5 update.

2020-05-13 Thread Christoph Feck
https://bugs.kde.org/show_bug.cgi?id=421374

Christoph Feck  changed:

   What|Removed |Added

 CC||rcburn...@gmail.com

--- Comment #10 from Christoph Feck  ---
*** Bug 421479 has been marked as a duplicate of this bug. ***

-- 
You are receiving this mail because:
You are watching all bug changes.

[frameworks-kio] [Bug 421374] Service file specifiying 'Run in terminal' gives "Error code 100, Could not find the program ‘konsole’" after Plasma 5.18.5 update.

2020-05-13 Thread sahsanu
https://bugs.kde.org/show_bug.cgi?id=421374

sahsanu  changed:

   What|Removed |Added

 CC||l...@sahsanu.com

-- 
You are receiving this mail because:
You are watching all bug changes.

[frameworks-kio] [Bug 421374] Service file specifiying 'Run in terminal' gives "Error code 100, Could not find the program ‘konsole’" after Plasma 5.18.5 update.

2020-05-13 Thread Jonathan Marten
https://bugs.kde.org/show_bug.cgi?id=421374

Jonathan Marten  changed:

   What|Removed |Added

Product|kmenuedit   |frameworks-kio
Version|5.18.5  |git master
   Assignee|plasma-b...@kde.org |fa...@kde.org
Summary|"Could not find the program |Service file specifiying
   |‘konsole’ error" after  |'Run in terminal' gives
   |Plasma 5.18.5 update.   |"Error code 100, Could not
   ||find the program ‘konsole’"
   ||after Plasma 5.18.5 update.
  Component|general |general
 CC||j...@keelhaul.me.uk,
   ||kdelibs-b...@kde.org

--- Comment #8 from Jonathan Marten  ---
(Copied from duplicate bug 421454)

SUMMARY

The desktop file:

[Desktop Entry]
Exec=ls 
Name=Terminal test
Terminal=true
TerminalOptions=--hold
Type=Application

should launch the default terminal application and execute the command. 
However, as reported on bug #421364, if the desktop file is launched with
'kioclient5 exec test.desktop' or by any other means an error box is shown:

  Unknown error code 100
  Could not find the program 'konsole'
  Please send a full bug report at https://bugs.kde.org.

with the debug message:

  kioclient(1227906) findNonExecutableProgram: Internal program error.
  QStandardPaths::findExecutable couldn't find "konsole" but our own logic
found it
  at "/usr/bin/konsole" . Please report a bug at https://bugs.kde.org

The problem seems to be in KIO::DesktopExecParser::resultingArguments() where,
if service.terminal() is true, the user's configured terminal application or
konsole as a default is prepended to the command line (with appropriate
options).  However, this is most likely to be a relative path.  This then
triggers the "nonExecutable" check in KProcessRunner::KProcessRunner().

STEPS TO REPRODUCE
1.  Execute the desktop file as above using kioclient5.

OBSERVED RESULT

Error and debug messages as above are shown, and no terminal is launched

EXPECTED RESULT

A terminal is launched and the current directory is listed

SOFTWARE/OS VERSIONS
KDE Frameworks Version: 5.71.0
Qt Version: 5.14.2

-- 
You are receiving this mail because:
You are watching all bug changes.

[frameworks-kio] [Bug 421374] Service file specifiying 'Run in terminal' gives "Error code 100, Could not find the program ‘konsole’" after Plasma 5.18.5 update.

2020-05-13 Thread Jonathan Marten
https://bugs.kde.org/show_bug.cgi?id=421374

--- Comment #9 from Jonathan Marten  ---
*** Bug 421454 has been marked as a duplicate of this bug. ***

-- 
You are receiving this mail because:
You are watching all bug changes.