Commit graph

27 commits

Author SHA1 Message Date
Jack251970
f756b71207 Catch all exceptions 2026-02-21 20:34:57 +08:00
Jack251970
04a56b556b Use Path.IsPathFullyQualified for absolute path check
Replaced Path.IsPathRooted with Path.IsPathFullyQualified to more accurately determine if a path is truly absolute, preventing misclassification of certain relative paths.
2026-02-21 20:25:10 +08:00
Jack251970
9b0a50376c Clarify exception type in path resolution catch block
Updated the catch block in DataLocation.cs to explicitly use System.Exception instead of Exception when handling path resolution errors. This improves code clarity while maintaining the same error handling logic for ArgumentException, NotSupportedException, and PathTooLongException.
2026-02-21 20:18:09 +08:00
Jack Ye
34a984cd86
Improve code comments
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-02-21 20:12:49 +08:00
Jack Ye
001101bb81
Improve error handling
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-02-21 20:11:49 +08:00
Jack251970
9fa4c37109 Remove relative path conversion for plugin settings files
Removed logic that converted absolute paths to relative paths within the ProgramDirectory. Now, plugin settings file paths are always stored as absolute paths. Deleted the ConvertToRelativePathIfPossible method and updated usages accordingly.
2026-01-24 16:07:04 +08:00
Jack251970
d16e43de8a Refactor path utilities to DataLocation from Constant
Move ResolveAbsolutePath and ConvertToRelativePathIfPossible from Constant to DataLocation for better organization. Update all references accordingly; implementations remain unchanged. This improves code clarity around file path management.
2026-01-24 16:03:26 +08:00
Jack251970
df1a272090 Fix argument null exception 2025-09-21 16:45:25 +08:00
Jack251970
99b7bdab27 Fix build issue 2025-09-21 16:21:38 +08:00
Jack251970
fbb9e09237 Improve code quality 2025-09-21 16:19:13 +08:00
Jack251970
21a6fdd100 Fix issue in PortableDataLocationInUse 2025-09-21 16:17:41 +08:00
Jack251970
81dcadb959 Use getter to fix data location issue 2025-09-21 14:57:50 +08:00
Jack251970
89d726de2a Use getter to fix data location issue 2025-09-21 14:03:43 +08:00
Jack251970
66228151ae Fix typos 2025-02-24 16:08:06 +08:00
Jack251970
47adfd1286 Improve code quality 2025-02-24 15:15:02 +08:00
Jack251970
012ef494e1 Fix log directory fetch issue 2025-02-24 14:11:45 +08:00
Jack251970
601211173c Add log directory & version log directory & themes directory in data location 2025-02-24 13:17:02 +08:00
Jack251970
1aaba46b8f Use constants & data location for code quality 2025-02-23 21:06:21 +08:00
Jack251970
89bca3b6a9 Add plugin cache path 2025-02-23 21:00:57 +08:00
Jeremy
5975b6e5c8 plugin env paths correction after update or mode change 2022-12-01 14:40:24 +11:00
Jeremy Wu
9eb5489863 update setting's environment file paths after app update 2022-11-28 08:44:42 +11:00
Jeremy Wu
eac5c4c47c update per comment 2020-08-16 21:49:22 +10:00
Jeremy Wu
48557aec06 change to dynamically loading of icon images for WebSearch 2020-08-12 07:08:24 +10:00
Jeremy Wu
7775837c49 Update roaming directory name to be consistent with parent 2020-04-24 12:15:49 +10:00
Jeremy Wu
b63719af5c Update Roaming folder name to Flow Launcher from Flow.Launcher 2020-04-23 22:12:20 +10:00
Jeremy Wu
f5ed0291a0 Fix rename errors 2020-04-21 22:16:10 +10:00
Jeremy Wu
3c7f067770 rename all project file name 2020-04-21 21:27:02 +10:00
Renamed from Wox.Infrastructure/UserSettings/DataLocation.cs (Browse further)