aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--dist/archlinux/stable/PKGBUILD4
-rw-r--r--src/plugins/users.py5
2 files changed, 6 insertions, 3 deletions
diff --git a/dist/archlinux/stable/PKGBUILD b/dist/archlinux/stable/PKGBUILD
index 0971b7c..eecd7a5 100644
--- a/dist/archlinux/stable/PKGBUILD
+++ b/dist/archlinux/stable/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Mattias Andrée <`base64 -d`(bWFhbmRyZWUK)@member.fsf.org>
pkgname=xpybar
-pkgver=1.4
+pkgver=1.4.1
pkgrel=1
pkgdesc="A highly extensible minimalistic dock panel written in Python 3"
arch=(any)
@@ -15,7 +15,7 @@ optdepends=("linux: most of the monitors require Linux's procfs or sysfs"
"python-pytz: for timezone support")
makedepends=(make coreutils sed zip)
source=($url/archive/$pkgver.tar.gz)
-sha256sums=(1b2ab7b7b349ba5889bebacfc66251dff17fcba55dc3f1002e0c36b2a712fe8a)
+sha256sums=(e50a6cc1022f01608195193deb73a704efa8bdd7a33ed89643a0e9390b5bf33f)
build() {
diff --git a/src/plugins/users.py b/src/plugins/users.py
index e5124f0..10e59e5 100644
--- a/src/plugins/users.py
+++ b/src/plugins/users.py
@@ -93,7 +93,10 @@ class Users:
users, rc = {}, []
for tty in ttys:
- attr = os.stat('/dev/' + tty)
+ try:
+ attr = os.stat('/dev/' + tty)
+ except:
+ continue
if ('/' not in tty) and (attr.st_uid == 0):
if not (try_to_find_root and (attr.st_mode == 0o20600)):
continue