Environment inside SimpleAPTClient lacks $DISPLAY

Open
#10 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
python

Research direction

Start at the SimpleAPTClient entry point and reproduce the issue with aptkit 1.0.4 and mintupdate 7.0.7.1, checking whether $DISPLAY is present in the environment used by apt-listchanges. Done means apt-listchanges opens its separate window instead of falling back to the console and freezing update progress.

Written by the indexing model from the issue text.

Description

Hello everyone

There is an issue from several months ago in mintupdate; $DISPLAY isn't propagated any more inside the SimpleAPTClient used: https://github.com/linuxmint/mintupdate/issues/918

This breaks e.g. apt-listchanges since it depends on $DISPLAY to open a separate window above mintupdate. Without $DISPLAY, apt-listchanges falls back to console and the update progress freezes. You have to open the detailed console view, quit the console pager that apt-listchanges opened and then confirm the prompt if installation should be continued.

This is currently reproducible on aptkit 1.0.4 and mintupdate 7.0.7.1. I first noticed it, AFAIR, after upgrading to Mint 22 or 22.1.

Using the git pickaxe I couldn't find anything about $DISPLAY in this repo. As I'm not familiar with both projects and on limited free time, I beg your pardon that I cannot provide more specific details. If I can do anything specific to help to diagnose and correct this, please let me know.

Best regards

Björn

Dominant language
Python
Stars
15
Forks
10
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from linuxmint/aptkit

All issues in linuxmint/aptkit

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.