Skip to content

Commit

Permalink
Release 0.27
Browse files Browse the repository at this point in the history
Update apart-core
Improve APART_LSBLK_CMD override handling
  • Loading branch information
alexheretic committed Aug 12, 2023
1 parent f36759c commit f7fb46e
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 6 deletions.
2 changes: 1 addition & 1 deletion apart-core
Submodule apart-core updated 5 files
+348 −214 Cargo.lock
+2 −2 Cargo.toml
+1 −0 readme.md
+3 −2 src/lsblk.rs
+16 −18 src/outbound.rs
2 changes: 1 addition & 1 deletion aur
Submodule aur updated from cf04c3 to b05d3e
4 changes: 2 additions & 2 deletions build-dist
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ while test $# -gt 0; do
esac
done

APART_CORE_VERSION="0.3.12"
APART_CORE_SHA256='f78904ec261ce0d079b6112f7f9a8ce0ce7bc7e56891573628d50cd406150d84'
APART_CORE_VERSION="0.3.13"
APART_CORE_SHA256='10d252afeaf5031507fa7bd2cc8e1dedab372b2b38ec7b2d3f4aa950602115ad'
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

cd "$DIR"
Expand Down
9 changes: 8 additions & 1 deletion src/apartcore.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,14 @@ def __init__(self, listeners: List[MessageListener] = None,
if os.geteuid() == 0 or os.environ.get('APART_PARTCLONE_CMD'):
self.process = subprocess.Popen([apart_core_cmd, self.ipc_address])
else:
self.process = subprocess.Popen(['pkexec', apart_core_cmd, self.ipc_address])
pkexec_args = ['pkexec']
lsblk_override = os.environ.get('APART_LSBLK_CMD')
if lsblk_override:
pkexec_args.append('env')
pkexec_args.append('APART_LSBLK_CMD={}'.format(lsblk_override))
pkexec_args.extend([apart_core_cmd, self.ipc_address])

self.process = subprocess.Popen(pkexec_args)
except FileNotFoundError:
if os.geteuid() == 0:
print('apart-core command not found at \'' + apart_core_cmd + '\'', file=sys.stderr)
Expand Down
2 changes: 1 addition & 1 deletion src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from gi.repository import GLib, Gtk, Gdk

# App versions, "major.minor", major => new stuff, minor => fixes
__version__ = '0.26'
__version__ = '0.27'


class LoadingBody(Gtk.Grid):
Expand Down

0 comments on commit f7fb46e

Please sign in to comment.