Giter Site home page Giter Site logo

Comments (6)

zensubz avatar zensubz commented on June 14, 2024 1

Hi,
Thanks, and yes, it works with your kind suggestion. Sincere regards.

from apart-gtk.

alexheretic avatar alexheretic commented on June 14, 2024

I believe the issue is apart-core calls system lsblk -Jbo name,size,fstype,label,mountpoint,uuid but it seems json output is not supported in the util-linux version that comes with centos 7.

Updating your util-linux should fix this.

I've raised #15 to add an appropriate version of util-linux to the app requirements. I'll also improve the error message.

from apart-gtk.

zensubz avatar zensubz commented on June 14, 2024

Hi,
Thanks for your kind response. If it is only related to a more recent version of lsblk then can I specify an alternate location for the same? This would help me not to touch the util-linux that comes with CentOS 7.x, instead, I could get a statically-linked lsblk from a more recent version of util-linux.

from apart-gtk.

alexheretic avatar alexheretic commented on June 14, 2024

Yes you can set env var APART_LSBLK_CMD or add new lsblk to PATH.

from apart-gtk.

zensubz avatar zensubz commented on June 14, 2024

Hi,
Thanks for your kind inputs. But somehow, setting APART_LSBLK_CMD didn't work in my case (I tried with export APART_LSBLK_CMD=/usr/local/bin/lsblk). The error msgs were continued to be displayed. The startup script for apart-gtk couldn't find the custom-installed lsblk at /usr/local/bin/ (once pkexec has been invoked).

My request is, would it be possible to have the non-standard paths defined for lsblk (similar to what you have done in case of partclone), say for example, in the apart-core-$APART_CORE_VERSION/src/lsblk.rs script?

from apart-gtk.

alexheretic avatar alexheretic commented on June 14, 2024

Ah yes you are correct, pkexec does not inherit the env vars. Tbf the env vars are there for testing really.

I think you can still get it to work if you avoid pkexec, e.g. sudo APART_LSBLK_CMD=/usr/local/bin/lsblk apart-gtk

from apart-gtk.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.