We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e58cb66 commit 1b95b60Copy full SHA for 1b95b60
snap/snapcraft.yaml
src/js/init.js
@@ -2,12 +2,13 @@ require('v8-compile-cache');
2
const {remote,ipcRenderer,shell} = require('electron');
3
const {Menu,MenuItem,app} = remote;
4
const menu = Menu.getApplicationMenu();
5
-var recentLocation, recentFiles = [];
+const os = require('os');
6
+var recentLocation=os.userInfo().homedir, recentFiles = [];
7
8
9
function replaceWithHome(name) { // replaces full path name with the short one
10
// var home = process.env.HOME || process.env.USERPROFILE;
- var home = require('os').userInfo().homedir;
11
+ var home = os.userInfo().homedir;
12
if (name.includes(home)) {
13
return name.replace(home, "~")
14
} else {
0 commit comments