Crash with customized theme
See original GitHub issueHeya there. I followed the instructions for customizing the theme but when i put the custom theme.json inside the “themes” folder, the application crashes on start with this log:
`System.IO.FileNotFoundException: Il file ‘C:\Users\MEFISTO\Downloads\WinDynamicDesktop\Earth_From_Space.json’ non è stato trovato. Nome file: ‘C:\Users\MEFISTO\Downloads\WinDynamicDesktop\Earth_From_Space.json’ in System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) in System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) in System.IO.FileStream…ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) in System.IO.StreamReader…ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize, Boolean checkHost) in System.IO.File.InternalReadAllText(String path, Encoding encoding, Boolean checkHost) in System.IO.File.ReadAllText(String path) in WinDynamicDesktop.JsonConfig.LoadTheme(String name) in WinDynamicDesktop.ThemeManager.Initialize() in WinDynamicDesktop.AppContext…ctor() in WinDynamicDesktop.Program.Main()
UPDATE:
I’ve understand what’s going on: the program wants the json theme file in both of these locations:
- “themes” folder
- same location of the executable
With this config i have no more crash on start and the program can see the new theme in the theme manager window. ` UPDATE 2
I’ve found another bug. I will post my steps for replicate it:
- Open the application
- Right click on the icon in the system tray —> Select Theme
- The Theme manager window will show up —> select any theme and apply it clicking ok
- Right click again on the icon in the system tray—> Select Theme again
- The Theme manager window will NOT show up anymore. You need to close and reopen the program to make it works again.
Last thing: i’m always get this message whenever i run the executable (portable one)
https://i.imgur.com/bmTmRYj.png
You need to install an app for this activity. Search it in the Store?
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:5 (3 by maintainers)
Thanks for reporting these. Just released version 2.0.1 which fixes the first issue. Theme files should only need to be inside the
themes
subfolder.The second bug I have also fixed, but unfortunately that didn’t make it in version 2.0.1, I was in a hurry to release the update because of a very serious bug for new users.
The third thing you mentioned about the message you get is very odd, I have no idea what would be causing that unfortunately.
Both bugs have been fixed, unfortunately I don’t know that I can do much about the Windows Store message since I can’t reproduce it and no one else has reported it. If you would like to investigate it further, feel free to create a separate issue for it.