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

edb can not show save file dialog in ubuntu 21.10 #809

Open
TheZ4ro opened this issue Oct 21, 2021 · 7 comments
Open

edb can not show save file dialog in ubuntu 21.10 #809

TheZ4ro opened this issue Oct 21, 2021 · 7 comments

Comments

@TheZ4ro
Copy link

TheZ4ro commented Oct 21, 2021

when use edb in ubuntu 21.10
from dump windows, choose save to file, the dialog failed to display.

maybe this is a qt5 wayland bug?

@10110111
Copy link
Contributor

  • Are you using the default Ubuntu 21.10 install, with its default desktop environment?
  • Is EDB installed from Ubuntu repositories or from other source?
  • What exactly does "failed to display" mean? Do you get a message box, an error message in the terminal, or does EDB seem to ignore the command?

@TheZ4ro
Copy link
Author

TheZ4ro commented Oct 23, 2021

problem fixed, patch file:

Date: Sat, 23 Oct 2021 14:14:02 +0800
Subject: [PATCH] fix save file dialog


 src/Debugger.cpp | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/Debugger.cpp b/src/Debugger.cpp
index 68972b5b..05e96249 100644
--- a/src/Debugger.cpp
+++ b/src/Debugger.cpp
@@ -1905,7 +1905,10 @@ void Debugger::mnuDumpSaveToFile() {
 	const QString filename = QFileDialog::getSaveFileName(
		this,
 		tr("Save File"),
-		lastOpenDirectory_);
+		lastOpenDirectory_,
+		0,
+		NULL,
+		QFileDialog::DontUseNativeDialog);
 
 	if (!filename.isEmpty()) {
 		QFile file(filename);
-- 
2.32.0

@10110111
Copy link
Contributor

This doesn't look like a fix, more like a workaround. Native dialog is supposed to work fine too.

@TheZ4ro
Copy link
Author

TheZ4ro commented Oct 24, 2021

No, if you install ubuntu 21.10 default desktop, and edb dump window -> save to file will always hung even stop the whole destop.
but the ubuntu 18.x works well.

@10110111
Copy link
Contributor

I get a transparent window, rather than hung desktop, but yeah, Qt integration with Ubuntu desktop seems broken. A less intrusive "fix" may be to run EDB with XDG_CURRENT_DESKTOP=kde environment variable:

XDG_CURRENT_DESKTOP=kde edb

This will work even if you don't have any part of KDE installed, the effect will just be to avoid desktop integration.

@EGQM
Copy link

EGQM commented Feb 13, 2022

@TheZ4ro,my computer system is ubuntu21.10 (gnome, 5.15.7-051507-generic),and it works well.

@yerodin
Copy link

yerodin commented Apr 2, 2023

Its not working for me on latest kali rolling, it's transparent even with XDG_CURRENT_DESKTOP=kde env set.

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

No branches or pull requests

4 participants