I now had the time to test a little:
All paths passed to /usr/bin/code
have no effect as soon as .config/code-flags.conf
contains at least one flag.
E.g., invoking code /some/file.txt
will just restore the last session or open a new window and not open /some/file.txt
anywhere. As soon as .config/code-flags.conf
is empty or does not exist, it will work again.
The workaround I am currently applying after each update is to modify the last line of /usr/bin/code
to have the arguments passed ("$@"
) before the configured flags $CODE_USER_FLAGS
. Then it also works with flags present in .config/code-flags.conf
.
Search Criteria
Package Details: visual-studio-code-bin 1.95.3-1
Package Actions
Git Clone URL: | https://aur.archlinux.org/visual-studio-code-bin.git (read-only, click to copy) |
---|---|
Package Base: | visual-studio-code-bin |
Description: | Visual Studio Code (vscode): Editor for building and debugging modern web and cloud applications (official binary version) |
Upstream URL: | https://code.visualstudio.com/ |
Licenses: | custom: commercial |
Conflicts: | code |
Provides: | code, vscode |
Submitter: | dcelasun |
Maintainer: | dcelasun |
Last Packager: | dcelasun |
Votes: | 1463 |
Popularity: | 14.53 |
First Submitted: | 2017-12-18 19:14 (UTC) |
Last Updated: | 2024-11-15 11:08 (UTC) |
Dependencies (17)
- alsa-lib
- gcc-libs (gcc-libs-gitAUR, gccrs-libs-gitAUR, gcc11-libsAUR, gcc-libs-snapshotAUR)
- glibc (glibc-gitAUR, glibc-linux4AUR, glibc-eacAUR, glibc-eac-binAUR, glibc-eac-rocoAUR)
- gnupg (gnupg-gitAUR, gnupg-largekeysAUR)
- gtk3 (gtk3-no_deadkeys_underlineAUR, gtk3-classicAUR, gtk3-classic-xfceAUR, gtk3-patched-filechooser-icon-viewAUR)
- libnotify (libnotify-gitAUR)
- libsecret
- libxkbfile
- libxss
- lsof (lsof-gitAUR)
- nss (nss-hgAUR)
- shared-mime-info
- xdg-utils (busking-gitAUR, xdg-utils-slockAUR, mimiAUR, mimi-gitAUR, xdg-utils-handlrAUR, openerAUR, xdg-utils-mimeoAUR, mimejs-gitAUR)
- glib2 (glib2-gitAUR, glib2-selinuxAUR, glib2-patched-thumbnailerAUR) (optional) – Needed for move to trash functionality
- icu69AUR (icu69-binAUR) (optional) – Needed for live share
- libdbusmenu-glib (optional) – Needed for KDE global menu
- org.freedesktop.secrets (keepassxc-gitAUR, gnome-keyring-gitAUR, pass-secrets-gitAUR, keepassxc-allow-aur-extension-originAUR, keepassxc-allow-aur-extension-origin-binAUR, pass-secret-service-binAUR, dssdAUR, pass-secret-service-gitAUR, bitw-gitAUR, gnome-keyring, keepassxc, kwallet, kwallet5) (optional) – Needed for settings sync
Required by (20)
- azure-sphere-sdk (requires code) (optional)
- code-appicons (requires code)
- code-features (requires code)
- code-features-insiders (requires code)
- code-icons (requires code)
- code-marketplace (requires code)
- code-nautilus-git (requires code) (optional)
- dokytree (requires code) (optional)
- dokytree-git (requires code) (optional)
- meta-package-manager (requires code) (optional)
- meta-package-manager-git (requires code) (optional)
- nautilus-code (requires code) (optional)
- neopo-git (optional)
- nwscript-code (requires code)
- rust-analyzer-vscode-git (requires code)
- stm32pio (requires code) (optional)
- unity-editor-lts (optional)
- unreal-engine-bin (requires code) (optional)
- vscode-xdg-patch-hook (requires code) (optional)
- vscode-xdg-patch-hook (requires vscode) (optional)
Sources (7)
Latest Comments
« First ‹ Previous 1 .. 10 11 12 13 14 15 16 17 18 19 20 .. 78 Next › Last »
phillipk commented on 2022-09-01 22:17 (UTC) (edited on 2022-09-01 22:18 (UTC) by phillipk)
dcelasun commented on 2022-08-10 05:58 (UTC)
@philipk do you mean /usr/bin/code
? Because /opt/visual-studio-code/bin/code
is supplied by upstream and is not involved with $CODE_USER_FLAGS
. I don't think changing the order of $CODE_USER_FLAGS
and "$@"
is a good idea. What exactly is the problem you're having?
phillipk commented on 2022-08-10 01:32 (UTC)
I have to correct myself: Have not used VSCode on this Arch install for a while, but the arguments passed still seem to get lost if they are put after $CODE_USER_FLAGS
.
code .
only works for me if I change line 11 of /opt/visual-studio-code/bin/code
to look like follows:
exec /opt/visual-studio-code/bin/code "$@" $CODE_USER_FLAGS
.
Can we take that change into this AUR package, or is there a negative side to this that i am not aware of?
PHLAK commented on 2022-07-19 04:54 (UTC) (edited on 2022-07-19 04:58 (UTC) by PHLAK)
Ever since v1.69 the when launching Code the running app is displayed as a separate, unstyled app icon in my dock instead of being tied to the original icon. In this screenshot you can see the VS Code icon on the left. When I clicked that icon the grey gear icon shows up and is the running instance of VS Code. The StartupWMClass
of the .desktop
file is correct. Not sure if this should be reported here or upstream.
EDIT: This looks like an issue with VS Code itself under Wayland.
SiriusBlack commented on 2022-07-12 19:58 (UTC)
I don't understand why this is flagged out of date. I can see that it is perfectly matching to the latest version of vscode we have
<deleted-account> commented on 2022-06-17 15:17 (UTC)
@digital wow, thanks a bunch! I tried it without sudo
and it suddenly worked!
Good to know!
digital commented on 2022-06-17 15:11 (UTC)
@Smokus do not run yay
with sudo
<deleted-account> commented on 2022-06-17 15:06 (UTC)
I am fairly new to the Linux world. I ran the following command to install VS Code:
sudo yay -S visual-studio-code-bin
, but I following error:
Avoid running yay as root/sudo.
:: Checking for conflicts...
:: Checking for inner conflicts...
[Repo:1] lsof-4.95.0-1
[Aur:1] visual-studio-code-bin-1.68.1-1
:: (0/1) Downloaded PKGBUILD: visual-studio-code-bin
-> error fetching visual-studio-code-bin: fatal: could not create work tree dir > 'visual-studio-code-bin': Permission denied
context: exit status 128
Installing "code" package from official Arch Repo works just fine. Any help is appreciated.
bigbruno commented on 2022-06-09 18:53 (UTC)
i don't know if help, but with this command is a easy way to know about last version:
curl 'https://code.visualstudio.com/sha/download?build=stable&os=linux-deb-x64' -s -L -I | grep 'filename=' | cut -f2 -d'"' | cut -f2 -d'_' | cut -f1 -d'-'
Pinned Comments
dcelasun commented on 2017-11-15 06:20 (UTC) (edited on 2020-02-06 21:33 (UTC) by dcelasun)
FREQUENTLY ASKED QUESTIONS (read before flagging or commenting!)
This is the official binary distribution from Microsoft. The one in the community repo is an unofficial build made from source. Beyond the license difference and branding, there are some proprietary features not available in the open source version.
Please check this page before flagging as out-of-date. If there is no new version on that page, it's not yet released. A tag on Github is NOT a release! If you can see the new version on the updates page but the AUR package is still not updated, flag it and give it time. It's usually done within a day or two.
Sometimes AUR helpers do weird things. Download the tarball and install it manually with
makepkg -si
. If that works, report the problem to your AUR helper's upstream, not here.xdg-open
uses vscode, not my file manager! How do I fix this?Install shared-mime-info-gnome. Also see this reddit thread.
Just because $X is not required to open the app, doesn't mean there is nothing that depends on it. Always search the comment history on AUR to see if that dependency has been previously discussed before writing your own comment. Still nothing? Then use namcap to make sure it's really not needed. If namcap doesn't complain, please leave a comment here and I'll investigate.
The problem might be a packaging issue (wrong paths, dependencies, icons), so please write a comment here first. If you don't get a reply, or if someone says it's an upstream issue, you can report it on Github.
No, you won't get a reply. Please stop doing this. Leave a comment here instead and be patient.