comment on mac disk space
This commit is contained in:
parent
04a6c735ac
commit
94f64f8d25
1 changed files with 2 additions and 0 deletions
|
@ -299,6 +299,8 @@ app.on('before-quit', () => {
|
||||||
ipcMain.on('get-disk-space', async (event) => {
|
ipcMain.on('get-disk-space', async (event) => {
|
||||||
try {
|
try {
|
||||||
const { data_dir } = await Lbry.settings_get();
|
const { data_dir } = await Lbry.settings_get();
|
||||||
|
// mac error for this is 'df /Users/username/Library/Application no such..'
|
||||||
|
// due to not escaping the ' ' in /`Application Support`
|
||||||
if (os.platform() === 'linux') {
|
if (os.platform() === 'linux') {
|
||||||
const stdout = await diskSpaceLinux(data_dir);
|
const stdout = await diskSpaceLinux(data_dir);
|
||||||
const dfResult = stdout.split('\n')[1].split(/\s+/);
|
const dfResult = stdout.split('\n')[1].split(/\s+/);
|
||||||
|
|
Loading…
Reference in a new issue