You are not logged in.

#26 2016-11-05 08:49

aldrik
Member
From: france
Registered: 2016-04-12
Posts: 65

Re: A simple small update notifier

Hello
Really good ! How to autostart it ?
have a good day

Offline

#27 2016-11-05 10:32

Dai_trying
Member
From: UK
Registered: 2015-12-14
Posts: 2,989

Re: A simple small update notifier

Thank you @aldrik, it will auto-start when you boot the machine, you do not need to do anything smile

Offline

#28 2016-11-05 14:27

aldrik
Member
From: france
Registered: 2016-04-12
Posts: 65

Re: A simple small update notifier

Thank your for all !

Offline

#29 2016-11-05 23:27

Dai_trying
Member
From: UK
Registered: 2015-12-14
Posts: 2,989

Re: A simple small update notifier

Small changes to the updater as I found a couple of minor bugs, new version 0.0.1-11 fixes them.

Offline

#30 2016-11-09 21:52

Dai_trying
Member
From: UK
Registered: 2015-12-14
Posts: 2,989

Re: A simple small update notifier

I have added the option to disable unattended upgrades to the context menu (right click), it will only appear if it is configured on.

Last edited by Dai_trying (2016-11-09 21:53)

Offline

#31 2016-12-14 15:45

q4osteam
Q4OS Team
Registered: 2015-12-06
Posts: 4,222
Website

Re: A simple small update notifier

Reporting an issue, we have tried to run updater with defined delay from command line:
$ apt-updater -d 1
got python error:

Traceback (most recent call last):
  File "/usr/share/dai-apt-updater/updater.py", line 397, in <module>
    main(sys.argv[1:])
  File "/usr/share/dai-apt-updater/updater.py", line 391, in main
    tray_icon = SystemTrayIcon(QtGui.QIcon(":/plain.png"), w)
  File "/usr/share/dai-apt-updater/updater.py", line 169, in __init__
    "Waiting for Delay period\nSceduled for " + (start + timedelta(seconds=delay)).strftime("%H:%M:%S"))
TypeError: unsupported type for timedelta seconds component: str

Fresh Q4OS Orion installation.

Offline

#32 2016-12-14 16:45

Dai_trying
Member
From: UK
Registered: 2015-12-14
Posts: 2,989

Re: A simple small update notifier

Thanks guys, I will investigate and post with a fix (hopefully) smile

Offline

#33 2016-12-14 17:08

Dai_trying
Member
From: UK
Registered: 2015-12-14
Posts: 2,989

Re: A simple small update notifier

New Version 0.0.1-16 Fixes this issue.

Offline

#34 2016-12-14 18:16

q4osteam
Q4OS Team
Registered: 2015-12-06
Posts: 4,222
Website

Re: A simple small update notifier

We can confirm fixed issue mentioned above, thanks.

Offline

#35 2016-12-15 14:43

q4osteam
Q4OS Team
Registered: 2015-12-06
Posts: 4,222
Website

Re: A simple small update notifier

Just another issue, 0.0.1-16 updater on a fresh Orion system with some pending updates. Ran updater from the command line:
$ apt-updater -d 1 -i 80
Updater correctly reports updates available, click to updater icon to show updates to go -> then click Cancel -> again click to updater systray icon, but no Synaptic window appears anymore. There are a few python errors in terminal too:

TypeError: unsupported type for timedelta seconds component: str

In addition, would it be possible to modify code to check, if APT is ready using Q4OS specific command '/usr/bin/check-apt-busy' ? See the line 86 of 'updater.py'. Command 'check-apt-busy' returns '0' if APT is free, otherwise some non zero value. We suggest you to perform simple test for presence of '/usr/bin/check-apt-busy' file exists in the filesystem, and use it if so, otherwise keep the current 'lsof ...' command.

Offline

#36 2016-12-15 19:50

Dai_trying
Member
From: UK
Registered: 2015-12-14
Posts: 2,989

Re: A simple small update notifier

I have fixed this new issue in Version 0.0.1-17

@Q4OS Team
  I did originally code the apt-check to use '/usr/bin/check-apt-busy' but changed it to lsof to allow it to work on both q4os and debian. I removed the check-apt-busy as I deemed it to be unnecessary and to avoid the overhead of using two different methods. I can incorporate it again and like you suggest add a check to ensure it is available and use lsof as a fallback, although I can see no benefit from doing so.

Offline

#37 2016-12-15 21:33

q4osteam
Q4OS Team
Registered: 2015-12-06
Posts: 4,222
Website

Re: A simple small update notifier

Dai_trying wrote:

I can incorporate it again and like you suggest add a check to ensure it is available and use lsof as a fallback, although I can see no benefit from doing so.

Yes, please do it so, if possible. We consider the 'check-apt-busy' checker as more reliable. Thank you for fixing and developing.

Offline

#38 2016-12-15 22:25

Dai_trying
Member
From: UK
Registered: 2015-12-14
Posts: 2,989

Re: A simple small update notifier

Updated Version 0.0.1.18 now uses Q4OS check-apt-busy script. smile

Offline

#39 2016-12-16 08:46

q4osteam
Q4OS Team
Registered: 2015-12-06
Posts: 4,222
Website

Re: A simple small update notifier

There is probably some mistake, as 0.0.1-18 looks exactly the same as 0.0.1-17.

Offline

#40 2016-12-16 09:46

Dai_trying
Member
From: UK
Registered: 2015-12-14
Posts: 2,989

Re: A simple small update notifier

My apologies, I didn't move the new source to the installer folder, new Version 0.0.1-19 will fix this.

Last edited by Dai_trying (2016-12-16 09:47)

Offline

#41 2016-12-18 10:15

q4osteam
Q4OS Team
Registered: 2015-12-06
Posts: 4,222
Website

Re: A simple small update notifier

@Dai_trying
We could suggest you a fix of this issue http://www.q4os.org/forum/viewtopic.php?pid=6110#p6110 , 'apt-get update' could be performed prior to upgrade, if updater detects disrupted backports pinning.

Offline

#42 2016-12-18 11:18

Dai_trying
Member
From: UK
Registered: 2015-12-14
Posts: 2,989

Re: A simple small update notifier

Ok, I will work on this later today (a few chores to do first sad ) and post new version when available. smile

Offline

#43 2016-12-29 10:06

Dai_trying
Member
From: UK
Registered: 2015-12-14
Posts: 2,989

Re: A simple small update notifier

Apologies for the delay, but now the festivities are coming to an end I had time to finish the fix for this.

New Version 0.0.1-20 should fix this issue

Offline

#44 2017-04-15 12:49

samberry
Member
From: australia
Registered: 2017-04-15
Posts: 1

Re: A simple small update notifier

Thank you i will test that.

Offline

#45 2017-04-15 15:35

Dai_trying
Member
From: UK
Registered: 2015-12-14
Posts: 2,989

Re: A simple small update notifier

You are welcome samberry, let me know if you find any issues. smile

Offline

#46 2017-05-07 19:56

crosscourt
Member
Registered: 2017-05-07
Posts: 1,805
Website

Re: A simple small update notifier

Ill have to give this a try Dai and post back.


Q4OS Aquarius 5.1 KDE   Lenovo Thinkcentre M900 Tiny i5-6500T, 16gb ddr4 ram, 512gb m.2 ssd

Offline

#47 2017-05-07 20:15

Dai_trying
Member
From: UK
Registered: 2015-12-14
Posts: 2,989

Re: A simple small update notifier

Thanks CC, I am planning a major overhaul when I have more free time, I am hoping to implement a update chooser so you will be able to select which updates get installed, and also a hold option (like pinning but not) which will be good for when an update breaks something. smile

Offline

#48 2017-05-07 20:17

crosscourt
Member
Registered: 2017-05-07
Posts: 1,805
Website

Re: A simple small update notifier

Something to look forward to, smile


Q4OS Aquarius 5.1 KDE   Lenovo Thinkcentre M900 Tiny i5-6500T, 16gb ddr4 ram, 512gb m.2 ssd

Offline

#49 2017-05-08 18:36

aldrik
Member
From: france
Registered: 2016-04-12
Posts: 65

Re: A simple small update notifier

Hello, can I install it on Scorpion ?

Offline

#50 2017-05-08 18:37

Dai_trying
Member
From: UK
Registered: 2015-12-14
Posts: 2,989

Re: A simple small update notifier

Yes, I use it all the time Orion and Scorpion smile

Offline

Board footer

Powered by FluxBB