Skip to content

[BUG] Themes are not loaded when coming from UNC Path #6220

@Uffi64

Description

@Uffi64
  • Searched existing issues to avoid creating duplicates.

  • Confirmed that it can be reproduced in built-in themes without customized css.

    If it only exists in 3rd party themes or css, you can still report it, but please attach the theme target or the css file. We may not "fix" it, if it is caused by 3rd party themes or css styles that we cannot support.

  • Searched http://support.typora.io/


Usind Typora for Windows
When the APPDATA folder is located on an UNC path the themes cannot be loaded, because of a missing backslash in the path typora uses.
Opening the folder from the preferences panel works fine.

Log file entry on the theme file:

reject access to path \vwprds-spez\RedirectedFolders$\uj\AppData\Roaming\Typora\themes\compact-night.css
ERROR 24.1.2025, 12:21:27  Error: net::ERR_FILE_NOT_FOUND
    at SimpleURLLoaderWrapper.<anonymous> (node:electron/js2c/browser_init:2:114393)
    at SimpleURLLoaderWrapper.emit (node:events:518:28)
    at SimpleURLLoaderWrapper.emit (node:domain:488:12)

And it's confirmed that the access rights are all ok.
But you can see in the log entry that the second backslash in front of the servername (vwprds-spez) is missing.

In another log entry you can see a successful access:
INFO 24.1.2025, 12:21:27 [RenderProcess 3][Log] readContentFrom \\vwprds-spez\RedirectedFolders$\uj\AppData\Roaming\Typora\themes\Readme.md
And here you can see the second backslash in front of the servername.

To Reproduce
Steps to reproduce the behavior:

  1. Chang theme when themes are stored on UNC path
  2. realize that nothing happens
  3. Look into the log file

Expected behavior

  1. Change theme
  2. Get the theme

Desktop (please complete the following information):

  • OS: Windows Server 2022 64bit

Typora Version
1.9.5 licensed

Additional context
I tried to change the theme path by configuration to a local path. But I couln't find a possibility to do that.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions