diff --git a/src/langs/en.json b/src/langs/en.json
index b28114b..4c31f10 100644
--- a/src/langs/en.json
+++ b/src/langs/en.json
@@ -93,6 +93,7 @@
"modal_dropboxauth_maualinput_conn_succ_revoke": "You've connected as user {{username}}. If you want to disconnect, click this button.",
"modal_dropboxauth_maualinput_conn_fail": "Something goes wrong while connecting to Dropbox.",
"modal_onedriveauth_shortdesc": "Currently only OneDrive for personal is supported. OneDrive for Business is NOT supported (yet).\nVisit the address in a browser, and follow the steps.\nFinally you should be redirected to Obsidian.",
+ "modal_onedriveauth_shortdesc_linux": "It seems that you are using Obsidian on Linux, and you might not be able to jump back here properly. Please consider using the flatpack version of Obsidian, or creating an obsidian.desktop
file.",
"modal_onedriveauth_copybutton": "Click to copy the auth url",
"modal_onedriveauth_copynotice": "The auth url is copied to the clipboard!",
"modal_onedriverevokeauth_step1": "Step 1: Go to the following address, click the \"Edit\" button for the plugin, then click \"Remove these permissions\" button on the page.",
diff --git a/src/langs/zh_cn.json b/src/langs/zh_cn.json
index 3447ba3..f6dd71f 100644
--- a/src/langs/zh_cn.json
+++ b/src/langs/zh_cn.json
@@ -93,6 +93,7 @@
"modal_dropboxauth_maualinput_conn_succ_revoke": "您已作为用户 {{username}} 连接到 Dropbox。如果您想断开连接,点击此按钮。",
"modal_dropboxauth_maualinput_conn_fail": "连接 Dropbox 途中出错了。",
"modal_onedriveauth_shortdesc": "现在只支持个人版 OneDrive,(暂)不支持企业版。\n在浏览器中访问以下地址,然后按照网页提示操作。\n到了最后,您应该会被自动重定向回来 Obsidian。",
+ "modal_onedriveauth_shortdesc_linux": "您正在用 Linux,有可能无法跳转回来。请考虑使用 flatpack 版本的 Obsidian,或创建 obsidian.desktop
文件。",
"modal_onedriveauth_copybutton": "点击此按钮从而复制鉴权 url",
"modal_onedriveauth_copynotice": "鉴权 url 已复制到剪贴板!",
"modal_onedriverevokeauth_step1": "第 1 步:用浏览器打开以下地址,点击本插件对应的“Edit”按钮,点击“Remove these permissions”按钮。",
diff --git a/src/langs/zh_tw.json b/src/langs/zh_tw.json
index 219bb65..1d1f9c0 100644
--- a/src/langs/zh_tw.json
+++ b/src/langs/zh_tw.json
@@ -92,6 +92,7 @@
"modal_dropboxauth_maualinput_conn_succ_revoke": "您已作為使用者 {{username}} 連線到 Dropbox。如果您想斷開連線,點選此按鈕。",
"modal_dropboxauth_maualinput_conn_fail": "連線 Dropbox 途中出錯了。",
"modal_onedriveauth_shortdesc": "現在只支援個人版 OneDrive,(暫)不支援企業版。\n在瀏覽器中訪問以下地址,然後按照網頁提示操作。\n到了最後,您應該會被自動重定向回來 Obsidian。",
+ "modal_onedriveauth_shortdesc_linux": "您正在用 Linux,有可能無法跳轉回來。請考慮使用 flatpack 版本的 Obsidian,或建立 obsidian.desktop
檔案。",
"modal_onedriveauth_copybutton": "點選此按鈕從而複製鑑權 url",
"modal_onedriveauth_copynotice": "鑑權 url 已複製到剪貼簿!",
"modal_onedriverevokeauth_step1": "第 1 步:用瀏覽器開啟以下地址,點選本外掛對應的“Edit”按鈕,點選“Remove these permissions”按鈕。",
diff --git a/src/settings.ts b/src/settings.ts
index 7b82bb7..5d83ea1 100644
--- a/src/settings.ts
+++ b/src/settings.ts
@@ -550,6 +550,15 @@ export class OnedriveAuthModal extends Modal {
text: val,
});
});
+ if (Platform.isLinux) {
+ t("modal_onedriveauth_shortdesc_linux")
+ .split("\n")
+ .forEach((val) => {
+ contentEl.createEl("p", {
+ text: stringToFragment(val),
+ });
+ });
+ }
const div2 = contentEl.createDiv();
div2.createEl(
"button",