flathub / com.yubico.yubioath

https://flathub.org/apps/details/com.yubico.yubioath
9 stars 9 forks source link

Error using "Custom icons" for Authenticator: 'Unhandled Exception: PathNotFoundException: Creation of temporary directory failed, path = '/tmp/user/1000' on icon pack load #84

Open bentolor opened 9 months ago

bentolor commented 9 months ago

I'm trying to load a Custom icons pack. This failes, regardless of the pack.

~  flatpak run com.yubico.yubioath
…
ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PathNotFoundException: Creation of temporary directory failed, path = '/tmp/user/1000' (OS Error: Datei oder Verzeichnis nicht gefunden, errno = 2)
#0      _checkForErrorResponse (dart:io/common.dart:55)
#1      _Directory.createTemp.<anonymous closure> (dart:io/directory_impl.dart:152)
<asynchronous suspension>
#2      IconPackManager.importPack (package:yubico_authenticator/oath/icon_provider/icon_pack_manager.dart:112)
<asynchronous suspension>
#3      _ImportActionChip._importAction (package:yubico_authenticator/oath/icon_provider/icon_pack_dialog.dart:184)
<asynchronous suspension>
bentolor commented 9 months ago

Nota bene: Using the application "Flatseal" and manually allowing access to the aforementioned directory fixes the error.

Erick555 commented 9 months ago

App has no access to this path so manual override by user is right workaround for this.

You can put those icons in~/.var/app/com.yubico.yubioath/data so app could access them in normal way.