Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use a more reliable way to split the KDE konsole #2026

Merged
merged 5 commits into from
Feb 1, 2022

Conversation

TomasGlgg
Copy link

@TomasGlgg TomasGlgg commented Jan 30, 2022

A more stable way to split KDE Konsole than in #2023.
Problems can start only after detaching the tab of KDE Konsole (the $WINDOWID environment variable remains in the detached tab), but otherwise the code works well.

@Arusekk
Copy link
Member

Arusekk commented Jan 30, 2022

You can probably get away with offloading the XML parsing to qdbus by just using qdbus $KONSOLE_DBUS_SERVICE to list all nodes:

$ qdbus $KONSOLE_DBUS_SERVICE
/
/KBookmarkManager
/KBookmarkManager/konsole
/MainApplication
/Sessions
/Sessions/1
/Windows
/Windows/1
/konsole
/konsole/MainWindow_1
/konsole/MainWindow_1/actions
/konsole/MainWindow_1/actions/open_kcommand_bar
/konsole/MainWindow_1/actions/bookmark
/konsole/MainWindow_1/actions/options_show_menubar
/konsole/MainWindow_1/actions/fullscreen
/konsole/MainWindow_1/actions/options_configure_notifications
/konsole/MainWindow_1/actions/options_configure_keybinding
/konsole/MainWindow_1/actions/options_configure
/konsole/MainWindow_1/actions/options_configure_keybinding
/konsole/MainWindow_1/actions/options_configure_toolbars
/org
/org/kde
/org/kde/konsole

Not sure whether it is strictly better, but since we already use an external process for D-Bus calls, I think we can leverage its abilities.

@Arusekk
Copy link
Member

Arusekk commented Jan 31, 2022

The changelog needs two lines added, if you decide to update it.

@TomasGlgg
Copy link
Author

Oh, right

@Arusekk Arusekk merged commit bf37947 into Gallopsled:dev Feb 1, 2022
gogo2464 pushed a commit to gogo2464/pwntools that referenced this pull request Sep 10, 2023
* Use a more reliable way to split the KDE konsole

* Changed xml parsing to pure parsing

* Update CHANGELOG.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants