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

FileChooser opens, but no on_accept! is triggered #82

Open
schlichtanders opened this issue Apr 18, 2024 · 1 comment
Open

FileChooser opens, but no on_accept! is triggered #82

schlichtanders opened this issue Apr 18, 2024 · 1 comment

Comments

@schlichtanders
Copy link

Hello, I am currently in the process of finding out how to open the system filepicker from julia. It is quite difficult unfortunately.

using Moustrap, the on_accept! just does nothing in my case

julia> using Mousetrap

(process:812411): Gtk-WARNING **: 14:23:00.435: Unknown key gtk-button-images in /home/ssahm/.config/gtk-4.0/settings.ini

(process:812411): Gtk-WARNING **: 14:23:00.435: Unknown key gtk-menu-images in /home/ssahm/.config/gtk-4.0/settings.ini

(process:812411): Gtk-WARNING **: 14:23:00.435: Unknown key gtk-toolbar-style in /home/ssahm/.config/gtk-4.0/settings.ini

(process:812411): Adwaita-WARNING **: 14:23:00.460: Using GtkSettings:gtk-application-prefer-dark-theme with libadwaita is unsupported. Please use AdwStyleManager:color-scheme instead.

julia> file_chooser = FileChooser()
FileChooser()

julia> on_accept!(file_chooser) do self::FileChooser, files
           println("selected files: $files")
       end

julia> present!(file_chooser)

If I now choose a file and click "open", then nothing happens.

Running on nixos with julia 1.10.2 installed via juliaup

@schlichtanders
Copy link
Author

@Clemapfel Do you know how to debug this further? What could be the problem ...

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

1 participant