Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
devel:tools:ide:vscode
code
code-oss.js
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File code-oss.js of Package code
#!XXXLIBDIRXXX/electron/electron // We bypass the /usr/bin/electron wrapper to avoid passing custom electron-flags twice. const name = 'code' const app = require('electron').app const path = require('path') const fs = require("fs") // Change command name. const fd = fs.openSync("/proc/self/comm", fs.constants.O_WRONLY) fs.writeSync(fd, name) fs.closeSync(fd) // Remove first command line argument (XXXLIBDIRXXX/electron/electron) process.argv.splice(0, 1) // Set application paths. const appPath = 'XXXLIBDIRXXX/code' const packageJson = require(path.join(appPath,'package.json')) app.setAppPath(appPath) app.setDesktopName(name + '.desktop') app.setName('Code') app.setPath('userCache', path.join(app.getPath('cache'), name)) app.setPath('userData', path.join(app.getPath('appData'), name)) app.setVersion(packageJson.version) // Run the application. require('module')._load(appPath, module, true)
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor