-
-
Notifications
You must be signed in to change notification settings - Fork 169
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
Importing keys: cannot select keys to import #1863
Comments
@micah Thank you for reporting. My system does not run Ubuntu, but AFAIK not the key(s) is/are to be selected, but the folder in which the key(s) is/are stored. Could you check if your problem is solved by selecting the folder, and report back, please? Thanks in advance. |
@gerryfrancis indeed, that looks like it is the issue. If I select the folder where the keys are, then I get what #1792 is to solve. |
@Jikstra Yeah, but as I said in the original message, I am using a tiling window manager (awesome), that does not have 'drag and drop', nor does it have an icon system where you can copy and paste images. It seems the only way to do this is to host the image elsewhere, and link to it here. After an absurd amount of time, I found I could do this:
|
@micah just click on the section jikstra showed. it should open the file select dialog. |
Wow, ok, yeah that does work. Great user interface github :D |
Have the same issue on PopOS. I can only try to import a directory, which has no sense. I should be able to import a text file. Maybe the problem is with an import type. I tried to find functions that import files. I found const ImportButton = function ImportButton(_props: any) {
const tx = useTranslationFunction()
async function onClickImportBackup() {
const file = await runtime.showOpenFileDialog({
title: tx('import_backup_title'),
properties: ['openFile'],
filters: [{ name: '.tar or .bak', extensions: ['tar', 'bak'] }],
defaultPath: runtime.getAppPath('downloads'),
}) If my assumption correct, then the function that imports keys should have the same argument with the same attribute. async function onKeysImport() {
const tx = window.static_translate
const opts: OpenDialogOptions = {
title: tx('pref_managekeys_import_secret_keys'),
defaultPath: runtime.getAppPath('downloads'),
properties: ['openDirectory'],
} |
The api expects a specific format in this folder which is hella annoying but currently how it is. So having a directory makes sense (to some degree). But yes it's confusing and not good ux. |
I made a core PR that will make it possible to select a file instead: deltachat/deltachat-core-rust#4737 Once it is merged I suggest we change the UI to a file selection dialog for UPD: core 1.123.0 has this API update. |
The text was updated successfully, but these errors were encountered: