Robert-Stackflow / CloudOTP

An awesome two-factor authenticator based on Flutter, supports Android, Windows and Linux platforms, and supports multiple cloud backup methods such as Onedrive, Dropbox, WebDAV, S3Cloud, etc.基于 Flutter 的双因素验证器,支持Android、Windows和Linux平台,支持Onedrive、Dropbox、WebDAV、S3Cloud等多种云备份方式。
https://apps.cloudchewie.com/cloudotp
GNU General Public License v3.0
62 stars 3 forks source link

Linux下数据存放的路径应修改 #20

Closed pugaizai closed 1 month ago

pugaizai commented 1 month ago

现在是 $HOME/cloudotp 然而最好的做法应该是 $XDG_DATA_HOME/cloudotp

Robert-Stackflow commented 1 month ago

我在Ubuntu里是存储在Documents目录,你用的是什么发行版?

pugaizai commented 1 month ago

我在Ubuntu里是存储在Documents目录,你用的是什么发行版?

我自己构建的flatpak版 这是构建清单

https://github.com/pugaizai/flatpak/tree/main/manifests%2Fcom.cloudchewie.cloudotp

如果我把documents权限打开应该也会放到里面

Robert-Stackflow commented 1 month ago

ok,我不是很清楚Linux目录规范,放在$XDG_DATA_DIR是最好的吗

pugaizai commented 1 month ago

是的,这个位置放的都是各种应用的数据

在path_provider这个包应该有提供

pugaizai commented 1 month ago

getApplicationSupportDirectory()

pugaizai commented 1 month ago

https://wiki.archlinuxcn.org/wiki/XDG_%E5%9F%BA%E6%9C%AC%E7%9B%AE%E5%BD%95 linux目录规范wiki

Robert-Stackflow commented 1 month ago

感谢,之后会改进这点

pugaizai commented 1 month ago

我在Ubuntu里是存储在Documents目录,你用的是什么发行版?

~想问下在windows的目录结构是怎样的? 是 Documents/CloudOTP/cloudotp/ 这样的吗?~ 没事了

Robert-Stackflow commented 1 month ago

Windows下是documents/CloudOTP