[GH-ISSUE #2195] [Bug] Workspace folder location in settings menu does not use consistent path separators. #892

Closed
opened 2026-03-23 20:42:39 +00:00 by mirror · 1 comment
Owner

Originally created by @a-wallen on GitHub (Apr 5, 2023).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/2195

Originally assigned to: @hmncube on GitHub.

Bug Description

Under Settings > Files.

The list tile that shows the location of the current AppFlowy workspace has inconsistent path separators on Windows (shows / and \ in the same path).

How to Reproduce

I don't know how to reproduce it, but this fix is easy. The SettingsLocationCubit from settings_location_cubit.dart has the following path getter on :24 that parses the file system path.

  String? get path {
    if (Platform.isMacOS) {
      // remove the prefix `/Volumes/*`
      return _path?.replaceFirst(RegExp(r'^/Volumes/[^/]+'), '');
    }
   /*
   if Platform.isWindows, replace all instances of '/' with '\'
   */
    return _path;
  }

Expected Behavior

AppFlowy should show the path with \ separators instead of '/' separators on Windows.

Operating System

Windows 10

AppFlowy Version(s)

main

Screenshots

image

Additional Context

No response

Originally created by @a-wallen on GitHub (Apr 5, 2023). Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/2195 Originally assigned to: @hmncube on GitHub. ### Bug Description Under Settings > Files. The list tile that shows the location of the current AppFlowy workspace has inconsistent path separators on Windows (shows `/` and `\` in the same path). ### How to Reproduce I don't know how to reproduce it, but this fix is easy. The `SettingsLocationCubit` from `settings_location_cubit.dart` has the following `path` getter on `:24` that parses the file system path. ```dart String? get path { if (Platform.isMacOS) { // remove the prefix `/Volumes/*` return _path?.replaceFirst(RegExp(r'^/Volumes/[^/]+'), ''); } /* if Platform.isWindows, replace all instances of '/' with '\' */ return _path; } ``` ### Expected Behavior AppFlowy should show the path with `\` separators instead of '/' separators on Windows. ### Operating System Windows 10 ### AppFlowy Version(s) main ### Screenshots ![image](https://user-images.githubusercontent.com/44445638/229987907-85c7c41a-0759-4917-ab81-122018cb88f4.png) ### Additional Context _No response_
mirror 2026-03-23 20:42:39 +00:00
Author
Owner

@hmncube commented on GitHub (Apr 5, 2023):

@a-wallen I would like to work on this issue

<!-- gh-comment-id:1497060132 --> @hmncube commented on GitHub (Apr 5, 2023): @a-wallen I would like to work on this issue
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AppFlowy-IO/AppFlowy#892
No description provided.