Is it possible to use environmental variables in Favorites sidebar?

28 views
Skip to first unread message

Nirodha Avidya

unread,
Sep 4, 2025, 5:37:51 PMSep 4
to OneCommander
I'm trying to use env variables like %USERPROFILE% in the FullPath for Favorites.json but this doesn't seem to work. However I can enter these into the Path address bar.

Here's an example of my Favorites.json
  {
    "FullPath": "\\%USERPROFILE%\\",
    "Project": "PC",
    "SortOrder": 0,
    "Alias": "Home",
    "AccessedT": 0,
    "ModifiedT": 0,
    "IsFolder": true
  },
  {
    "FullPath": "%USERPROFILE%\\Desktop",
    "Project": "PC",
    "SortOrder": 0,
    "Alias": "Desktop",
    "AccessedT": 0,
    "ModifiedT": 0,
    "IsFolder": true
  },
  {
    "FullPath": "%Documents%",
    "Project": "PC",
    "SortOrder": 0,
    "Alias": "Documents",
    "AccessedT": 0,
    "ModifiedT": 0,
    "IsFolder": true
  },
  {
    "FullPath": "%OneDrive%",
    "Project": "PC",
    "SortOrder": 0,
    "Alias": "OneDrive",
    "AccessedT": 0,
    "ModifiedT": 0,
    "IsFolder": true
  },

OneCommander Support

unread,
Sep 4, 2025, 5:40:34 PMSep 4
to OneCommander
Resolving these needs additional step, which was never added since the only way to add it is through clicking add button and that stores the full path. On first start those folder should be auto-added. What is the reason for manually hardcoding the environment path there instead of relying on the first-start initailization that already creates these folders?
Reply all
Reply to author
Forward
0 new messages