Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to show packages upgrade messages in terminal #2

Closed
lucatrv opened this issue Dec 19, 2016 · 11 comments
Closed

How to show packages upgrade messages in terminal #2

lucatrv opened this issue Dec 19, 2016 · 11 comments

Comments

@lucatrv
Copy link

lucatrv commented Dec 19, 2016

Hi, I always like to to read output messages from apt or aptitude when I upgrade packages. I tried to modify the "command to update packages" in "advanced settings" but could not how to open a terminal. I tried for instance to set "xterm -hold -e apt upgrade -y" or "gnome-terminal aptitude", but no terminal is opened. Is there any way to achieve this? For me the best option would be to open a terminal with "aptitude" and let me run the packages update manually.
Thanks

@franglais125
Copy link
Owner

Hi! I got your email too. I usually reply much faster, you juat caught me travelling and with limited connectivity... I'll look into this when I get back in two weeks. Sorry!
Cheers

@lucatrv
Copy link
Author

lucatrv commented Dec 26, 2016 via email

@jadenPete
Copy link

jadenPete commented Dec 27, 2016

Yeah I run Debian Testing and it is CRUCIAL that I see the bug lists and changelogs, as well as answer any prompts (not just answer yes every time) and read any messages before upgrading. It would be nice if this would open a terminal and still show the prompt, just to see if everything is alright. Sometimes, unstable packages fall into testing. I heard of one guy who was prompted to uninstall over 100+ packages.

@franglais125
Copy link
Owner

@lucatrv @jadenPete
Hey guys, so I finally took the time to look at this.

I implemented a first version of this here: https://github.com/franglais125/apt-update-indicator/tree/terminal_output
I set the default to use gnome-terminal. You can fill the new option with xterm -e, no need for -hold as I don't exit after applying the updates.

Do you mind testing it? Suggestions are welcome.
To install that branch, simply download and run "make install".

Cheers!

@lucatrv
Copy link
Author

lucatrv commented Jan 11, 2017

Seems to work to me! Only one doubt, once I applied the updates and pressed enter to close the terminal, I noticed that the package update notification icon was not reset immediately as I think it used to do previously, but after some time. Not sure though, and I need to wait for next updates available to double check...
Cheers!

@franglais125
Copy link
Owner

@lucatrv indeed, I tried to correct this problem, but so far no luck. In my tests, if you use xterm instead of gnome-terminal it works.
i.e. replace gnome-terminal -x bash -c with xterm -e in the options.

The problem is that gnome-terminal sends an exit signal and, hence, the indicator immediately refreshes (before the updates even began...). Then I have no way of triggering a refresh when apt is actually done. Oh well... I kept gnome-terminal as the default as it's what I use, but xterm seems fine too.

@franglais125
Copy link
Owner

FYI I implemented this in the master branch and submitted a new version to extensions.gnome.org

@lucatrv
Copy link
Author

lucatrv commented Jan 13, 2017

I confirm it works as expected with xterm. I do not have enough insight into this to help you out with gnome-terminal, but have you tried to discuss the issue here?
https://wiki.gnome.org/Apps/Terminal/ReportingBugs

Until the issue with gnome-terminal is fixed I would change the default terminal command into something like this: "xterm -fa monospace -fs 10 -e"

@franglais125
Copy link
Owner

@lucatrv thanks a lot for that suggestion, it looks pretty nice with those settings.
I'd make it default, I'm just hesitant about xterm's behaviour under Wayland. Do you know if there are any hiccups? My quick test showed that xterm runs under xwayland.

@lucatrv
Copy link
Author

lucatrv commented Jan 19, 2017

After having used it for a few days, this is actually the best setting IMHO:
"xterm -fa monospace -fs 11 -maximized -e"
(monospace 11 is the default Gnome terminal font).

From what I know xterm should run fine under xwayland. If in future Debian defaults to Wayland, this setting could be quickly changed for instance to use wlterm:
https://wayland.freedesktop.org/extras.html

@franglais125
Copy link
Owner

Thanks, I think I will change the default to something like what you suggest.

As for wlterm, it seems it is not being maintained anymore - judging from its github page. Also, Debian doesn't seem to package it. If you happen to have more info on this (or something like this), I'd be interested! xterm will do it I guess, until something better takes its place.

I'll close this issue now! Thank you for your help and inputs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants