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

[Bug]: Code OSS 2 files created whenever code oss is opened #1315

Closed
NotAF0e opened this issue Apr 15, 2024 · 9 comments
Closed

[Bug]: Code OSS 2 files created whenever code oss is opened #1315

NotAF0e opened this issue Apr 15, 2024 · 9 comments
Labels
bug Something isn't working

Comments

@NotAF0e
Copy link

NotAF0e commented Apr 15, 2024

These files are --ozone-platform-hint=wayland and --disable-gpu. I assume this is happening as these are 2 launch arguments but they do not do what is intended and instead create 2 files.

@NotAF0e NotAF0e added the bug Something isn't working label Apr 15, 2024
@prasanthrangan
Copy link
Owner

prasanthrangan commented Apr 15, 2024

this is known issue, please refer #1292 (comment)

you'll need to fix /usr/bin/code-oss by removing the quotes from ${codeflags[@]} in the last line.

ELECTRON_RUN_AS_NODE=1 exec /usr/lib/${name}/electron /usr/lib/code/out/cli.js "${electronflags[@]}" /usr/lib/code/code.js ${codeflags[@]} "$@"

@NotAF0e
Copy link
Author

NotAF0e commented Apr 15, 2024

Thanks, that did the job!

@AtnProjects
Copy link

thank you so much

@vampirepapi
Copy link

this is known issue, please refer #1292 (comment)

you'll need to fix /usr/bin/code-oss by removing the quotes from ${codeflags[@]} in the last line.

ELECTRON_RUN_AS_NODE=1 exec /usr/lib/${name}/electron /usr/lib/code/out/cli.js "${electronflags[@]}" /usr/lib/code/code.js ${codeflags[@]} "$@"

TYSM bro

@NotAF0e
Copy link
Author

NotAF0e commented Jun 25, 2024

Whenever I do Hyde update this comes back

@kRHYME7
Copy link
Collaborator

kRHYME7 commented Jun 25, 2024

Are you sure only Hyde update,?

This is handled by pacman. So whenever there's an update the fixes you made will change because /usr/bin/code is handled by the package from the package manager

@kRHYME7
Copy link
Collaborator

kRHYME7 commented Jun 25, 2024

BTW to report the bug it's from the arch Official package Manager.

Here's the problematic file ig.
https://gitlab.archlinux.org/archlinux/packaging/packages/code/-/blob/main/code.sh

@NotAF0e
Copy link
Author

NotAF0e commented Jun 30, 2024

Ok thanks!

@unknowncat-meow
Copy link

if you have issue similar to this. this might help #1685

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants