You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I'm using PCManFM as Filemanager and if I try to open a File with VSCode it only opens an empty file. (This issue is known: microsoft/vscode#25987). To fix this the issue recommends to change .../code %U to .../code %F in the desktop file.
To Reproduce
Steps to reproduce the behavior:
Try to open a file in PCManFM with VSCode
Expected behavior
File is opened in VSCode
Screenshots
In VSCode I manullly opened the file TEST on the left and tried to open it with PCManFM. As you can see, %U tells PCManFM to return a URL, but VSCode doesn't know what to do with it. So file:/tmp/test-vscode/TEST will be converted to ~file:/tmp/test-vscode/TEST.
Additional context
I'm not quite sure whether I'm the only one with this issue, I haven't seen any other issue explaining this same problem. But a friend of mine who I introduced to NixOS also had this Problem, so I'm probably not alone.
After I made this change and build it with nix-env -f $NIXPKGS -iA vscode (with NIXPKGS=) VSCode would open files from PCManFM without issue. I also haven't seen any other bugs created by this.
I'm quite new to Nix and this is also my first issue, it would be really nice if you could tell me if I could have done something different or better.
Describe the bug
I'm using PCManFM as Filemanager and if I try to open a File with VSCode it only opens an empty file. (This issue is known: microsoft/vscode#25987). To fix this the issue recommends to change
.../code %U
to.../code %F
in the desktop file.To Reproduce
Steps to reproduce the behavior:
Expected behavior
File is opened in VSCode
Screenshots
In VSCode I manullly opened the file
TEST
on the left and tried to open it with PCManFM. As you can see, %U tells PCManFM to return a URL, but VSCode doesn't know what to do with it. Sofile:/tmp/test-vscode/TEST
will be converted to~file:/tmp/test-vscode/TEST
.Additional context
I'm not quite sure whether I'm the only one with this issue, I haven't seen any other issue explaining this same problem. But a friend of mine who I introduced to NixOS also had this Problem, so I'm probably not alone.
Notify maintainers
@eadwu
@Synthetica
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result."x86_64-linux"
Linux 5.4.77, NixOS, 21.03pre251971.a371c107116 (Okapi)
yes
yes
nix-env (Nix) 2.3.8
"home-manager, nixos-21.03pre251971.a371c107116, nixos-20.03-20.03.3258.86fa45b0ff1"
"home-manager, nixos-21.03pre249162.1dc37370c48"
Maintainer information:
The text was updated successfully, but these errors were encountered: