Menu "saving revocation document" + mime type !?
Created by: galuel
Concerning Sakia menu it is not easy to find the "save revocation document entry" because the menu doesn't show it, and there is no general menu bar... In thunderbird (which can be a model), you can have the right button menu, but also activate by default the general classical menu bar where you can find all necessary actions. So the "saving revocation document" should also be accessible thru the general menu bar (same as upright menu button, but in the top horizontal classical bar).
When saving the revocation document, there is no extension by default for the text file. I checked it and it seems to be a "text/plain" file mime type, so it should propose ".txt" extension.
After that I suppose that this text document will be transformed in a JSON file to be sent to a duniter node isn't it !? There is such an entry in the menu (but when clicking on "load from file" sakia freezes and I have a "dump" in the terminal, see the last lines :
7f94ac5c8000-7f94ac5c9000 rw-s 00000000 00:05 14909445 /SYSVff010022 (deleted) 7f94ac5c9000-7f94ac5cf000 r--p 00000000 08:01 25037129 /home/galuel/.config/dconf/user 7f94ac5cf000-7f94ac5d0000 r--s 00000000 00:2b 58 /run/user/1000/dconf/user 7f94ac5d0000-7f94ac5d3000 r--p 00000000 08:01 24383005 /usr/share/locale-langpack/fr/LC_MESSAGES/atk10.mo 7f94ac5d3000-7f94ac5d4000 rwxp 00000000 00:00 0 7f94ac5d4000-7f94ac5db000 r--s 00000000 08:01 22810944 /usr/lib/x86_64-linux-gnu/gconv/gconv-modules.cache 7f94ac5db000-7f94ac5de000 rw-p 00000000 00:00 0 7f94ac5de000-7f94ac5df000 r--p 00024000 08:01 8126480 /lib/x86_64-linux-gnu/ld-2.24.so 7f94ac5df000-7f94ac5e0000 rw-p 00025000 08:01 8126480 /lib/x86_64-linux-gnu/ld-2.24.so 7f94ac5e0000-7f94ac5e1000 rw-p 00000000 00:00 0 7fff7e3b1000-7fff7e3d2000 rw-p 00000000 00:00 0 [stack] 7fff7e3fc000-7fff7e3fe000 r--p 00000000 00:00 0 [vvar] 7fff7e3fe000-7fff7e400000 r-xp 00000000 00:00 0 [vdso] ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall] Abandon (core dumped)
What I propose : 1 menu entry : "revocation import/export" containing 1 window with 2 buttons "export revocation" and "import revocation" that will propose "text/plain" save / load file operation.
When loading the revocation .txt file, information about revocation will be listed in the window in order to check all, + "what's left in this account : x Ğ1 available" and a "publish" button at the bottom right.
When publishing it, a red alert window will say "Be aware that this action will revoke your Ğ1 member account, and you will loose what is in, and no longer produce a DU, are you sure to do that !?", showing the money left in the account : x Ğ1 left. And then asking a sakia 4-8 pin code to confirm the action.
- add a menu entry to protect sakia operations with a 4-8 pin code.