Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support environment variables in shortcuts #14403

Closed
clackwell opened this issue Jan 9, 2024 · 1 comment
Closed

Support environment variables in shortcuts #14403

clackwell opened this issue Jan 9, 2024 · 1 comment
Labels
feature request needs - additional info Needs more information from the reporter

Comments

@clackwell
Copy link

What feature or improvement do you think would benefit Files?

In Windows shortcuts I can use, for example, "%USERPROFILE%" in the shortcut fields "Target:" and "Start in:"

image

(The shortcut editor goes above and beyond, and even offers completion from the path specified. This feels like it goes too far. I am an advanced user by editing the shortcut and using environment variables in it, I can copy and paste a path just fine. No need to waste time with corner-case hyper-convenience like this.)

But when executing such a shortcut via double click in Files one can see that the process gets launched with the environment specification as is, instead of evaluated. From Process Explorer:

image

The top entry is when launched from File Explorer.

The bottom entry is when launched from Files. Note the command line, which for the bottom entry still contains the environment variable placeholder.

Requirements

  • This proposal will accomplish X
  • This proposal will accomplish Y
  • This proposal will accomplish Z

Files Version

3.1.1

Windows Version

Windows 11, 23H2

Comments

Unrelated, but the "Windows Version" entry in the Feature Request form mentions "[...] access it from Settings -> About -> Copy -> Windows version", but in Windows 11 it is "[...] access it from Settings -> System -> About -> Copy -> Windows version" instead.

And even then there is no such succinct information as implied by the microcopy in the field:

image

Instead I see this:

image

What to provide in such a case?

@yaira2
Copy link
Member

yaira2 commented Jan 9, 2024

Thanks for the report, this definitely looks like a bug. Can you open a separate issue using the bug template? Worst case we can just edit this issue but a separate issue would be best.

And even then there is no such succinct information as implied by the microcopy in the field:

Settings refers to the settings in Files

@yaira2 yaira2 added the needs - additional info Needs more information from the reporter label Jan 9, 2024
@yaira2 yaira2 closed this as completed Jan 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request needs - additional info Needs more information from the reporter
Projects
None yet
Development

No branches or pull requests

2 participants