Page MenuHomeSolus

Fix code-oss link.
AbandonedPublic

Authored by j-c-m on Feb 23 2018, 6:24 PM.
Tags
None
Referenced Files
F11069318: D2362.id.diff
Fri, Aug 11, 10:42 PM
F11069317: D2362.id5663.diff
Fri, Aug 11, 10:42 PM
F11053880: D2362.diff
Fri, Aug 11, 12:11 AM
F11051118: D2362.diff
Thu, Aug 10, 7:47 PM
F10890305: D2362.id5663.diff
Jun 28 2023, 2:08 PM
F10886862: D2362.diff
Jun 26 2023, 4:16 AM
F10792816: D2362.id5663.diff
May 27 2023, 8:35 AM
F10775160: D2362.id.diff
May 22 2023, 3:07 PM
Subscribers

Details

Reviewers
None
Group Reviewers
Triage Team
Summary

Link /usr/bin/code-oss to wrapper rather than binary.

Diff Detail

Repository
R3148 vscode
Branch
master
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

j-c-m requested review of this revision.Feb 23 2018, 6:24 PM
JoshStrobl added a subscriber: JoshStrobl.

No. There is no reason for it to link to the wrapper. All the wrapper is doing is getting the VSCODE path, when it already defaults to the correct path already, and providing a rather unnecessary prompt regarding root.

@j-c-m That's what child process detaching and using &! is for, but I guess if you feel this is the better way of going about it rather than basically the universal way of detaching from a process (or them implementing child process detaching upstream instead via child_process), then you'll need to:

  1. Increment the relnum
  2. Also include the pspec
  3. Include a test plan.
  4. Update this diff (it'll unmark as abandoned)

Additionally, the bash script should be cleaned up, none of the unnecessary checks for VSCODE_PATH, just set it to /usr/share/vscode

@JoshStrobl On the child process detachment, I am indifferent, this is just how they implemented it upstream and generally what the package does on other distributions. I did note that aur patches out the VSCODE_PATH stuff, I'll give it a go to update this.

Yea, I patch out some similar path checking for appdata (alongside performing a symlink to fix some extensions) in 0001-Attempt-to-symlink-.config-Code-to-.config-Code-OSS-.patch. Likely doesn't provide any sort of substantial change in startup performance but if any checks can be avoided (since we're able to make the assumption that we're on Linux and we already know the pathing), we may as well do it.

I'd recommend copy / pasting the wrapper into the files folder in the repo and editing it there. Then during the install phase you'd remove $installdir/$vsdir/bin/code-oss and install (likely need to do it with file permissions that permit execution) $pkgfiles/code-oss to $installdir/$vsdir/bin/code-oss, ideally prior to doing the symlink.