summaryrefslogtreecommitdiff
path: root/nonfree/min/min.js
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2022-04-13 19:03:17 +0200
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2022-04-13 19:06:12 +0200
commit860468d216609fdd8aef67abe050bb214e8651ac (patch)
tree5b4b7252fcf0fa0e9c16374361516f9070e2d0d7 /nonfree/min/min.js
parent3edd18f177f427c65346c12bf39ca301ea1dfe93 (diff)
downloadabslibre-860468d216609fdd8aef67abe050bb214e8651ac.tar.gz
abslibre-860468d216609fdd8aef67abe050bb214e8651ac.tar.bz2
abslibre-860468d216609fdd8aef67abe050bb214e8651ac.zip
Remove the min package and the nonfree directory
The min package depends on electron, and since it's a web browser, and that electron is unlikely to be fixed any time soon as fixing it would require substancial work, it's safe to remove it. Link: https://labs.parabola.nu/issues/3227 Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
Diffstat (limited to 'nonfree/min/min.js')
-rw-r--r--nonfree/min/min.js29
1 files changed, 0 insertions, 29 deletions
diff --git a/nonfree/min/min.js b/nonfree/min/min.js
deleted file mode 100644
index e3bfeba0f..000000000
--- a/nonfree/min/min.js
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/usr/bin/electron
-
-const name = 'min';
-
-const {app} = require('electron');
-const fs = require('fs');
-const path = require('path');
-
-// 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 (/usr/bin/electron).
-process.argv.splice(0, 1);
-
-// Set application paths.
-const appPath = path.join(path.dirname(__dirname), 'lib', name);
-const packageJson = require(path.join(appPath, 'package.json'));
-const productName = packageJson.productName;
-app.setAppPath(appPath);
-app.setDesktopName(name + '.desktop');
-app.setName(productName);
-app.setPath('userCache', path.join(app.getPath('cache'), productName));
-app.setPath('userData', path.join(app.getPath('appData'), productName));
-app.setVersion(packageJson.version);
-
-// Run the application.
-require('module')._load(appPath, module, true);