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

Sniffnet cannot open the file dialog #503

Closed
1 task done
Digitalone1 opened this issue Apr 12, 2024 · 15 comments
Closed
1 task done

Sniffnet cannot open the file dialog #503

Digitalone1 opened this issue Apr 12, 2024 · 15 comments
Labels
bug Something isn't working Linux Something related to Linux operating system

Comments

@Digitalone1
Copy link
Contributor

Is there an existing issue for this?

  • I have searched the existing issues.

What's the problem?

Sniffnet is not able to open a file dialog to select a destination for the capture file, or the ASN/County database.

How did you install the app?

downloaded one of the provided packages

Operating System

Linux

Additional context

Installed from Arch upstream: https://archlinux.org/packages/extra/x86_64/sniffnet/

@GyulyVGC GyulyVGC added bug Something isn't working Linux Something related to Linux operating system labels Apr 12, 2024
@GyulyVGC
Copy link
Owner

Not a good news.

This has almost for sure to do with rfd.

I tested it on Windows, macOS, and DEB/GNOME and it works smoothly.

Could you verify from their docs that your backend is supported? They recommend to install gtk3 on Arch, but it should only be required for the build and not for normal usage.

@GyulyVGC
Copy link
Owner

GyulyVGC commented Apr 12, 2024

Note that I think their docs aren't updated, since they should use XDG by default since 0.14.

So please refer to the doc section talking about the XDG backend.

@Digitalone1
Copy link
Contributor Author

DEB/GNOME and it works smoothly.

Where did it work smoothly? Did you test it in a Wayland environment?

@GyulyVGC
Copy link
Owner

X11 actually.

IIRC you are on Wayland, but in theory it should work even there.

@Digitalone1
Copy link
Contributor Author

I have those installed:

$ pacman -Qs portal
local/libportal 0.7.1-2
    GIO-style async APIs for most Flatpak portals
local/libportal-gtk3 0.7.1-2
    GIO-style async APIs for most Flatpak portals - GTK 3 backend
local/libportal-gtk4 0.7.1-2
    GIO-style async APIs for most Flatpak portals - GTK 4 backend
local/xdg-desktop-portal 1.18.3-1
    Desktop integration portals for sandboxed apps
local/xdg-desktop-portal-gnome 46.0-1 (gnome)
    A backend implementation for xdg-desktop-portal for the GNOME desktop environment
local/xdg-desktop-portal-gtk 1.15.1-1
    A backend implementation for xdg-desktop-portal using GTK

@GyulyVGC
Copy link
Owner

Can you open Sniffnet from a terminal and see if there's any output when you try to open the file dialog?

@Digitalone1
Copy link
Contributor Author

Can you open Sniffnet from a terminal and see if there's any output when you try to open the file dialog?

No, there's no output.

I added the custom databases in the text config. Are the followings compatible?

They're shown in red color. Maybe not supported?

image

@GyulyVGC
Copy link
Owner

GeoLite databases are supported, but you have to select the MMDB file format (which is also the only one that the file dialog will allow to select for those two fields).

@Digitalone1
Copy link
Contributor Author

Never mind, I don't have those formats.

Is there maybe any particular thing to do for dialogs to work? I mean, maybe specifying where portal files are located...

Here I don't see any portal package as dependency.

As reported here, the app is built with:

cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
cargo build --frozen --release
cargo test --frozen

@GyulyVGC
Copy link
Owner

Honestly I don't know.
Maybe it's better to ask @PolyMeilex or open an issue in the rfd repo.

@PolyMeilex
Copy link

Perhaps try to install zenity it is used in case portal backend fails.

@Digitalone1
Copy link
Contributor Author

Perhaps try to install zenity it is used in case portal backend fails.

Yes, it's working. Thanks.

But I suppose the issue still exists since the portal fails...

@GyulyVGC
Copy link
Owner

I'm happy you found a workaround.
Thanks @PolyMeilex for the help.

Closing the issue here since it's been partially solved and it's not directly related with Sniffnet.

@Digitalone1
Copy link
Contributor Author

@orhun I suggest to add xdg-desktop-portal and zenity as sniffnet package dependency.

@orhun
Copy link
Sponsor Contributor

orhun commented Apr 13, 2024

Done o7 thanks for the ping! 🐻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Linux Something related to Linux operating system
Projects
None yet
Development

No branches or pull requests

4 participants