ImHex icon indicating copy to clipboard operation
ImHex copied to clipboard

[Bug] Main menu toolbar item `Open file` throws error in AppImage

Open raydac opened this issue 1 year ago • 3 comments

Operating System

Linux

What's the issue you encountered?

Click Open file shows error instead of dialog

How can the issue be reproduced?

Click Open file in main menu

[01:31:21] [ERROR] [libimhex | Main]           Requested file dialog returned an error: The name org.freedesktop.portal.Desktop was not provided by any .service files

image

ImHex Version

1.35.3

ImHex Build Type

  • [ ] Nightly or built from sources

Installation type

AppImage

Additional context?

  • OS Name Ubuntu 22.04.4 LTS
  • OS Type 64-bit
  • Gnome version 42.9
  • Windowing system X11

raydac avatar Jul 01 '24 22:07 raydac

Hey! The AppImage requires you to have xdg-desktop-portals installed on your system, that's the only way to properly have a file picker there. Install the right one though your package manager

WerWolv avatar Jul 02 '24 05:07 WerWolv

installation of xdg-desktop-portal and xdg-desktop-portal-gnome changes error to

[ERROR] [libimhex | Main]           Requested file dialog returned an error: No such interface “org.freedesktop.portal.FileChooser” on object at path /org/freedesktop/portal/desktop

raydac avatar Jul 02 '24 06:07 raydac

helped listed steps

  • added /usr/share/xdg-desktop-portal/portals/portals.conf
[preferred]
default=gnome
org.freedesktop.impl.portal.FileChooser=gnome
  • restart portal with systemctl --user restart xdg-desktop-portal

raydac avatar Jul 02 '24 07:07 raydac

This issue is marked stale as it has been open for 11 months without activity. Please try the latest ImHex version. (Avaiable here: https://imhex.download/ for release and https://imhex.download/#nightly for development version) If the issue persists on the latest version, please make a comment on this issue again

Without response, this issue will be closed in one month.

github-actions[bot] avatar Jun 08 '25 02:06 github-actions[bot]