Bug 467701 - Show terminal emulator doesn't work
Summary: Show terminal emulator doesn't work
Status: RESOLVED FIXED
Alias: None
Product: konqueror
Classification: Applications
Component: general (show other bugs)
Version: Git
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-22 19:42 UTC by avlas
Modified: 2023-09-13 17:37 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description avlas 2023-03-22 19:42:39 UTC
SUMMARY

Terminal emulator doen't work

STEPS TO REPRODUCE
1. Menu
2. Settings
3. Show terminal emulator

OBSERVED RESULT

An ark kpart is triggered together with an error message (translating from a different language): loading file «/tmp/arkpartzIKCVY» failed with the following error: Couldn't find the proper connector. It seems Ark does not accept this type of file.

EXPECTED RESULT

Terminal emulator should be shown

SOFTWARE/OS VERSIONS
Operating System: KDE neon 5.27
KDE Plasma Version: 5.27.3
KDE Frameworks Version: 5.104.0
Qt Version: 5.15.8
Kernel Version: 5.19.0-35-generic (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Core™ i5-8350U CPU @ 1.70GHz
Memory: 15.4 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 620
Manufacturer: LENOVO
System Version: ThinkPad X1 Carbon 6th
Comment 1 Stefano Crocco 2023-03-22 20:00:14 UTC
I think I can reproduce the issue, even if on my system I get a Dolphin part rather than an Ark part. Moreover, it seems that this part can't be closed in any way. I'll look into it as soon as I can.
Comment 2 avlas 2023-03-22 20:08:19 UTC
(In reply to Stefano Crocco from comment #1)
> I think I can reproduce the issue, even if on my system I get a Dolphin part
> rather than an Ark part. Moreover, it seems that this part can't be closed
> in any way. I'll look into it as soon as I can.

Thank you! 

The trick to make it disappear is to drag the height of the kpart panel and set it to zero by pushing it down to the very bottom. Hope you understand what I mean :)
Comment 3 Stefano Crocco 2023-03-22 20:10:42 UTC
(In reply to avlas from comment #2)
> (In reply to Stefano Crocco from comment #1)
> > I think I can reproduce the issue, even if on my system I get a Dolphin part
> > rather than an Ark part. Moreover, it seems that this part can't be closed
> > in any way. I'll look into it as soon as I can.
> 
> Thank you! 
> 
> The trick to make it disappear is to drag the height of the kpart panel and
> set it to zero by pushing it down to the very bottom. Hope you understand
> what I mean :)

Thanks for the information
Comment 4 Stefano Crocco 2023-03-22 21:02:44 UTC
I think I found the cause of the bug. Unfortunately, it seems that the problem is not caused by Konqueror itself, but by the interactions between Konsole and the KDE Frameworks. I'll investigate the matter this weekend.
Comment 5 avlas 2023-03-22 21:31:36 UTC
(In reply to Stefano Crocco from comment #4)
> I think I found the cause of the bug. Unfortunately, it seems that the
> problem is not caused by Konqueror itself, but by the interactions between
> Konsole and the KDE Frameworks. I'll investigate the matter this weekend.

I see. Thank you!
Comment 6 avlas 2023-03-26 09:09:13 UTC
Excellent, thanks Stefano for fixing the issue! 

I still see ark parts around (please see https://i.imgur.com/Ie9UQS9.png). Is there a way to close those (better than simply hide them)? Tha t would be great!

Also, would it be possible to show the terminal to the right side instead at the bottom? If you'd like me to open a new feature request for this please let me know. Thanks!
Comment 7 Stefano Crocco 2023-03-26 10:27:41 UTC
(In reply to avlas from comment #6)
> Excellent, thanks Stefano for fixing the issue! 
> 
> I still see ark parts around (please see https://i.imgur.com/Ie9UQS9.png).
> Is there a way to close those (better than simply hide them)? Tha t would be
> great!

Are they leftover from before the fix or do they keep appearing? In the first case, I think the only option is to close the Konqueror window: unfortunately since they have been created because of an error, Konqueror doesn't know how to close them. If instead they are new, it means there's something else which isn't working as it should.

> 
> Also, would it be possible to show the terminal to the right side instead at
> the bottom? If you'd like me to open a new feature request for this please
> let me know. Thanks!

It would be better to open a new feature request. Currently, the terminal is opened at the bottom because Konsole part itself specifies an horizontal orientation. From a quick look at the code, it doesn't seem too difficult to have the terminal be on the right, but I'd need to implement a GUI where the user can choose whether he wants it on the bottom, on the left or on the right, and that could be require a bit more work. As a workaround, you could try to edit the file /usr/share/kservices5/konsolepart.desktop and, in the line starting with X-KDE-BrowserView-ToggableView-Orientation, replace the part after the = with vertical. This should make Konqueror display the terminal emulator on the left (there's no way to have it on the right without editing Konqueror source code); however, this will likely affect other programs displaying a terminal emulator, such as Dolphin or Kate.
Comment 8 avlas 2023-03-27 09:55:50 UTC
(In reply to Stefano Crocco from comment #7)
> (In reply to avlas from comment #6)
> > Excellent, thanks Stefano for fixing the issue! 
> > 
> > I still see ark parts around (please see https://i.imgur.com/Ie9UQS9.png).
> > Is there a way to close those (better than simply hide them)? Tha t would be
> > great!
> 
> Are they leftover from before the fix or do they keep appearing? In the
> first case, I think the only option is to close the Konqueror window:
> unfortunately since they have been created because of an error, Konqueror
> doesn't know how to close them. If instead they are new, it means there's
> something else which isn't working as it should.

I think you're right. I don't think it happens in new sessions anymore

> > 
> > Also, would it be possible to show the terminal to the right side instead at
> > the bottom? If you'd like me to open a new feature request for this please
> > let me know. Thanks!
> 
> It would be better to open a new feature request. Currently, the terminal is
> opened at the bottom because Konsole part itself specifies an horizontal
> orientation. From a quick look at the code, it doesn't seem too difficult to
> have the terminal be on the right, but I'd need to implement a GUI where the
> user can choose whether he wants it on the bottom, on the left or on the
> right, and that could be require a bit more work. As a workaround, you could
> try to edit the file /usr/share/kservices5/konsolepart.desktop and, in the
> line starting with X-KDE-BrowserView-ToggableView-Orientation, replace the
> part after the = with vertical. This should make Konqueror display the
> terminal emulator on the left (there's no way to have it on the right
> without editing Konqueror source code); however, this will likely affect
> other programs displaying a terminal emulator, such as Dolphin or Kate.

I will open a feature request, thanks! For now the workaround is great, as I use vertical panels in Dolphin and Kate anyway
Comment 9 Thomas Wunder 2023-09-11 21:08:45 UTC
At the time of this writing, this bug is still persistent in Debian 12 Bookworm (on amd64). 

konsolepart.so  is to be found in /usr/lib/x86_64-linux-gnu/qt5/plugins/   whereas other parts such as the arkpart.so and some others reside in /usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/parts .
It seems that if a particular kpart is not found, the first kpart in that directory would be loaded instead.

I solved the issue by simply creating a symlink
ln -s /usr/lib/x86_64-linux-gnu/qt5/plugins/konsolepart.so /usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/parts/
Comment 10 Stefano Crocco 2023-09-13 17:37:11 UTC
(In reply to Thomas Wunder from comment #9)
> At the time of this writing, this bug is still persistent in Debian 12
> Bookworm (on amd64). 
> 
> konsolepart.so  is to be found in /usr/lib/x86_64-linux-gnu/qt5/plugins/  
> whereas other parts such as the arkpart.so and some others reside in
> /usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/parts .
> It seems that if a particular kpart is not found, the first kpart in that
> directory would be loaded instead.
> 
> I solved the issue by simply creating a symlink
> ln -s /usr/lib/x86_64-linux-gnu/qt5/plugins/konsolepart.so
> /usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/parts/

It shouldn't use the first part it found: I checked and it should explicitly ask for konsolepart. If konsolepart is found, it should use it. Which version of Konqueror are you using?