mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 17:40:13 +01:00
🎨 Support opening assets through other apps on the Android https://github.com/siyuan-note/siyuan/issues/10657
This commit is contained in:
parent
755d27c5da
commit
76b2036eed
1 changed files with 10 additions and 0 deletions
|
|
@ -24,6 +24,7 @@ import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/siyuan-note/filelock"
|
"github.com/siyuan-note/filelock"
|
||||||
|
"github.com/siyuan-note/logging"
|
||||||
"github.com/siyuan-note/siyuan/kernel/cache"
|
"github.com/siyuan-note/siyuan/kernel/cache"
|
||||||
"github.com/siyuan-note/siyuan/kernel/job"
|
"github.com/siyuan-note/siyuan/kernel/job"
|
||||||
"github.com/siyuan-note/siyuan/kernel/model"
|
"github.com/siyuan-note/siyuan/kernel/model"
|
||||||
|
|
@ -89,6 +90,15 @@ func GetCurrentWorkspacePath() string {
|
||||||
return util.WorkspaceDir
|
return util.WorkspaceDir
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func GetAssetAbsPath(asset string) (ret string) {
|
||||||
|
ret, err := model.GetAssetAbsPath(asset)
|
||||||
|
if nil != err {
|
||||||
|
logging.LogErrorf("get asset [%s] abs path failed: %s", asset, err)
|
||||||
|
ret = asset
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
func SetTimezone(container, appDir, timezoneID string) {
|
func SetTimezone(container, appDir, timezoneID string) {
|
||||||
if "ios" == container {
|
if "ios" == container {
|
||||||
os.Setenv("ZONEINFO", filepath.Join(appDir, "app", "zoneinfo.zip"))
|
os.Setenv("ZONEINFO", filepath.Join(appDir, "app", "zoneinfo.zip"))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue