Fixed a few things
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
|
||||
local helpers = require('lain.helpers')
|
||||
local Gio = require('lgi').Gio
|
||||
local GioUnix = require('lgi').GioUnix
|
||||
local focused = require('awful.screen').focused
|
||||
local wibox = require('wibox')
|
||||
local naughty = require('naughty')
|
||||
@@ -83,11 +84,11 @@ local function factory(args)
|
||||
fs_now = {}
|
||||
|
||||
local notifypaths = {}
|
||||
for _, mount in ipairs(Gio.unix_mounts_get()) do
|
||||
for _, mount in ipairs(GioUnix.mounts_get()) do
|
||||
local info, path
|
||||
local fs_ty = Gio.unix_mount_get_fs_type(mount)
|
||||
local fs_ty = GioUnix.mount_get_fs_type(mount)
|
||||
if fs_ty ~= 'autofs' and fs_ty ~= 'efivarfs' and fs_ty ~= 'tmpfs' then
|
||||
path = Gio.unix_mount_get_mount_path(mount)
|
||||
path = GioUnix.mount_get_mount_path(mount)
|
||||
local root = Gio.File.new_for_path(path)
|
||||
info = root:query_filesystem_info(query)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user