Poezio: remove check for running as root user

This commit is contained in:
PulkoMandy
2022-08-20 14:28:21 +02:00
parent 2b9b9a191d
commit 03ef113afb
2 changed files with 31 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
From 15a7c224824a1618f72785ffa58645f997392a4e Mon Sep 17 00:00:00 2001
From 67190179b3e1c03db6bccb97ef8e3e71600d1e77 Mon Sep 17 00:00:00 2001
From: Adrien Destugues <pulkomandy@pulkomandy.tk>
Date: Sun, 24 May 2020 18:16:23 +0200
Subject: Fix installation directory
@@ -27,5 +27,33 @@ index 035d58b..7fd2dcb 100755
extras_require={'OTR plugin': 'python-potr>=1.0',
'Screen autoaway plugin': 'pyinotify==0.9.4',
--
2.26.0
2.36.1
From cdf227f1fbb1d0f0f6b329d7db7a916e3bd28724 Mon Sep 17 00:00:00 2001
From: PulkoMandy <pulkomandy@pulkomandy.tk>
Date: Sat, 20 Aug 2022 13:57:24 +0200
Subject: Remove root user protection
Not applicable on Haiku.
diff --git a/poezio/poezio.py b/poezio/poezio.py
index e38871c..38eb4cb 100644
--- a/poezio/poezio.py
+++ b/poezio/poezio.py
@@ -73,9 +73,9 @@ def main():
Entry point.
"""
- if os.geteuid() == 0:
- sys.stdout.write("Please do not run poezio as root.\n")
- sys.exit(0)
+ #if os.geteuid() == 0:
+ # sys.stdout.write("Please do not run poezio as root.\n")
+ # sys.exit(0)
sys.stdout.write("\x1b]0;poezio\x07")
sys.stdout.flush()
--
2.36.1

View File

@@ -13,7 +13,7 @@ powerful, standard and open protocol."
HOMEPAGE="https://poez.io"
COPYRIGHT="2010-2020 Florent Le Coz, Mathieu Pasquet"
LICENSE="Zlib"
REVISION="1"
REVISION="2"
SOURCE_URI="https://pypi.io/packages/source/p/poezio/poezio-$portVersion.tar.gz"
CHECKSUM_SHA256="d12a95e5895d2aae17621f60092b5ca56384922b3637bff0e8a92952c0188e2d"
SOURCE_DIR="poezio-$portVersion"