GithubHelp home page GithubHelp logo

raphaelrochet / arch-update Goto Github PK

View Code? Open in Web Editor NEW
225.0 225.0 67.0 882 KB

Update indicator for ArchLinux and Gnome-Shell

Home Page: https://extensions.gnome.org/extension/1010/archlinux-updates-indicator/

License: GNU General Public License v3.0

JavaScript 94.48% CSS 5.52%
arch-linux gnome-shell-extension

arch-update's People

Contributors

alonsolp avatar andusdev avatar arthurflor23 avatar artur9010 avatar egormanga avatar etamuk avatar fredriksvantes avatar frnogueira avatar ganskef avatar infeeeee avatar jaystrictor avatar jgottlander avatar kabishchev avatar kbabioch avatar khaledhosny avatar madis0 avatar mjkim0727 avatar prescott66 avatar ralgo avatar raphaelrochet avatar rffontenelle avatar skogsmaskin avatar sorin-mihai avatar superboa avatar svetlemodry avatar trazalca avatar unixfox avatar vistaus avatar vombato avatar yoshiman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

arch-update's Issues

Showing updates with yaourt not working as expected

Hi! First, thank you for this tool.

I am trying to show updates from the main repo and AUR through yaourt with the command specified in the wiki:

/usr/bin/yaourt -Qqu -a

However no notification is made even if there are new packages available.

If I do yaourt -Suy --aur first and then cancel it - it will show the notifications on next check just fine.

Am I missing something here or is it a bug?

Too many arguments to method Gio.File.monitor

Hi,

Dunno if it is important or not just reporting ...

Jan 10 11:41:12 xxxx gnome-shell[16558]: JS WARNING: [/home/xxxx/.local/share/gnome-shell/extensions/arch-update@RaphaelRochet/extension.js 242]: Too many arguments to method Gio.File.monitor_directory: expected 2, got 3

Thanks for tht usefull app.
Gnome versions

Gnome Shell freezes when checking for updates while offline

If the extension checks for updates, and there is no internet connection, Gnome Shell will temporarily become unresponsive until the check update command terminates, which may take several minutes.
While using X.Org, keyboard and mouse input function, but the desktop does not. With Wayland, mouse and keyboard are equally frozen.

I do not know whether this is an issue with the extension, or Gnome Shell. Should it be the latter, would it be possible to implement some sort of internet connection check before running the check updates command?

Implement Proxy support

Currently, the extension won't work behind a proxy, even if it is configured in Network settings of GNOME. How about implement proxy support, in order to allow verify&update anywhere?

English text can be better

Hi,
@Madis0 has pointed me english text that can be better.

Changes have been made in the pot file with PR #105 , but unfortunately this file has been regenerated in the release process of v27 (513634e) and these changes are lost.

We have two ways here :

  1. Change english text in extension.js and rebase all translations, which means each translator must update its translation after that (there are 20 of them)
  2. Create a "en" translation for translating my bad english into good english. In that case, who can assume this ?

Waiting for feedback ;)

Fuzzy Spanish PO

Hi.

In Spanish translation, there are some fuzzy lines that needs fix. I attached the fixed PO.
es.zip

Best regards.

Only gnome?

Hi Raphael, very nice script you have provided for everyone. I was wondering, does this also work in other environments? Such as openbox?

Thanks for your time

Up-to-date message replaces applications caption.

I just noticed, that the update indicator's message for up-to-dateness replaced the "Applications" caption of the respective menu (see attachments).

bildschirmfoto von 2018-01-03 12-07-26
bildschirmfoto von 2018-01-03 12-07-36

Update:
Now this override happens also if updates are available.
It seems, that the caption is just being overridden every time.
bildschirmfoto von 2018-01-03 19-04-00

Update II:
After two days I cannot reproduce this problem any more.

Is there a way also check for AUR package update?

I know that AUR packages can be updated with yaourt -Syua, but the checkupdates script does not query aur packages. I have modified the command which updates packages to gnome-terminal -e 'sh -c "yaourt -Syyua; echo Done - Press enter to exit; read" 'which does both main and AUR. Is there a way add the capability to query AUR package updates?

disable dropdown to see updates

Hi,

Thanks for providing this extension.

It would be nice if the extensions would just show all available updates rather than hiding them behind an extra menu layer. If there are only few updates (this could be a configurable number) it would be nice to have these updates shown immediately.

Thanks,
Rasmus

Script call "check now"

Thank you for this extension! I'd like to be able to invoke "Check now" functionality via a script so I can call it after a local repository has been updated.

Is there any way to do this?

Use alternative terminal

I changed gnome-terminal from the default update command, to terminix. Now whenever I want to update, terminix will not show up. I am sure that the command to open it is correct. Is there a way to use a different terminal client than the default?

Add option to notify about security updates only

Arch is updated very frequently so there's hardly a day you won't get update notifications. IMHO it's more important to get notifications when its really really really recommeded to update your system -- i.e. if security relevant updates are available.

So I propose to add a "Security updates only" option that can be implemented like this:

  • Download .gz and .gz from https://lists.archlinux.org/pipermail/arch-security/
  • Unpack these files (either in-memory or into /tmp), parse all occurences of
    pacman -Syu "packagename>=packageversion" and create a map<packagename, packageversion>
  • Run checkupdates as usual but only notify about packages that are present in the map and installed_version < packageversion

I'd bet there are quite a few users that would love to see this happen :)

Clearer indication that pacman-contrib is required

I noticed that recently updating pacman broke this extension. I finally saw on the extension's page that the pacman-contrib package is now required.

It would be nice to have this somewhere in the dropdown or settings menu so users do not have to hunt for the solution.

Notifications on lock screen

GNOME Shell 3.28.3
Arch-update v27

Gnome extensions are supposed to be disabled when the screen is idle. In addition, I have disabled the general setting of not displaying notifications on the lock screen.
But since recently this indicator is notifying me on the lock screen of new updates.

On the other hand, I've checked the system log and I get a lot of meaningless lines from this extension: 6729 lines since yesterday!
I don't know if there's any connection

Doesn't automatically update (v18, gnome-shell 3.22.1)

Icon shows fine, and if I choose "Check now" then updates are found, but it never notifies of updates automatically. Running checkupdates in a terminal works too.

Time to wait before first check is set to 15, and interval is set to 60. I've tried setting interval to 30 as well, with no effect.

Thanks for any help in advance!

gnome-shell crashes after update

After an update, regardless whether done via the updater or in another terminal, the gnome-shell crashes. It seems that happens at the moment when the update refreshes.

Problem started with the update to gnome 3.26.

`
systemd-coredump[29362]: Process 938 (gnome-shell) of user 1000 dumped core.

                                          Stack trace of thread 938:
                                          #0  0x00007f1e84d2ba0d g_type_check_instance_cast (libgobject-2.0.so.0)
                                          #1  0x00007f1e82a53960 st_label_set_text (libst-1.0.so)
                                          #2  0x00007f1e7f3b71c8 ffi_call_unix64 (libffi.so.6)
                                          #3  0x00007f1e7f3b6c2a ffi_call (libffi.so.6)
                                          #4  0x00007f1e839d5cbb n/a (libgjs.so.0)
                                          #5  0x00007f1e839d7617 n/a (libgjs.so.0)
                                          #6  0x00007f1e7d08264d n/a (libmozjs-52.so.0)
                                          #7  0x00007f1e7d075687 n/a (libmozjs-52.so.0)
                                          #8  0x00007f1e7d081e97 n/a (libmozjs-52.so.0)
                                          #9  0x00007f1e7d08246f n/a (libmozjs-52.so.0)
                                          #10 0x00007f1e7d082779 n/a (libmozjs-52.so.0)
                                          #11 0x00007f1e7ce72219 n/a (libmozjs-52.so.0)
                                          #12 0x0000181e982083c6 n/a (n/a)
                                          #13 0x00007f1e7cd70d3e n/a (libmozjs-52.so.0)
                                          #14 0x00007f1e7d0819e3 n/a (libmozjs-52.so.0)
                                          #15 0x00007f1e7d081e97 n/a (libmozjs-52.so.0)
                                          #16 0x00007f1e7d08246f n/a (libmozjs-52.so.0)
                                          #17 0x00007f1e7d082779 n/a (libmozjs-52.so.0)
                                          #18 0x00007f1e7ce72219 n/a (libmozjs-52.so.0)
                                          #19 0x0000181e982083c6 n/a (n/a)
                                          #20 0x0000555bb4b6a818 n/a (n/a)
                                          #21 0x0000181e98595a40 n/a (n/a)
                                          #22 0x00007f1e7cd70d3e n/a (libmozjs-52.so.0)
                                          #23 0x00007f1e7d0819e3 n/a (libmozjs-52.so.0)
                                          #24 0x00007f1e7d081e97 n/a (libmozjs-52.so.0)
                                          #25 0x00007f1e7d08246f n/a (libmozjs-52.so.0)
                                          #26 0x00007f1e7d082779 n/a (libmozjs-52.so.0)
                                          #27 0x00007f1e7ce72219 n/a (libmozjs-52.so.0)
                                          #28 0x0000181e982083c6 n/a (n/a)

`

Request:: Also check for YAOURT updates

Grateful that you add to the extension a way to check also the updates of yaourt ๐Ÿ˜ƒ

in the UPDATES_LIST Include separated by title pacman and yaourt listed

Thank you for such a wonderful extension! ๐Ÿ‘

updateStatus ( -3 )

Hi,

As you may remember, I forked your extension to have it working on Debian/Ubuntu.

I'm still trying to understand everything fully... When checking the updateStatus() input, you specifically check for "-3". However, this is exactly never the case... I saw you implemented it at some point, and then removed it from the checkUpdates function.

Is this check superfluous now, or is it something to fix?

Merci!

Does not support shell version

Hello,
I'm using the last version of Gnome and the Tweak Tool says that the extencion doesn't support the shell version. I installed from AUR

Versions according to pacman

  • gnome-shelll: 3.20.1-1
  • gnome-shell-extension-arch-update: 11-1

Change color of indicator

Maybe choose the color of the indicator would be a good function. Or the option to let the user choose if he/she wants the logo in arch blue like the original one, or white like current logo.
Thanks!

Wiki update: aurman support

aurman works like a charm using:

aurman

  • Check command : /bin/sh -c "/usr/bin/checkupdates && /usr/bin/aurman -Qqu -a"
  • Update command : gnome-terminal -e 'sh -c "aurman -Syu ; echo Done - Press enter to exit; read" '
  • Update command (with terminator) : terminator -e 'aurman -Syu ; echo Done - Press enter to exit; read '

No periodic checkupdate done ?

Hi,

That's an awesome ext !

Unfortunately I've installed v26 of this plugin, and left default configuration, with 60 minutes between checks.
I'm running an up-to-date Arch, so, it's gnome 3.28 I guess.

Strange thing is : no checkupdate seems to be performed regularly.

If I right click and do an "check now", it works.

How / what could I do to help debug what's happening (or not happening) ? Maybe there's a rights issue somewhere, I don't know what task planner you use (cron?)

thx !

"Too many arguments to method Gio.File.monitor_directory: expected 2, got 3"

Not sure if this is really a problem, but I found some of this message in journalctl:

jan 26 08:49:57 HOSTNAME gnome-shell[2026]: JS WARNING: [HOME/.local/share/gnome-shell/extensions/arch-update@RaphaelRochet/extension.js 242]: Too many arguments to method Gio.File.monitor_directory: expected 2, got 3

System: Arch Linux 64-bit, everything up-to-date.

yaourt checkupdate : wiki suggestion enhancement

Hi,

I've read the wiki https://github.com/RaphaelRochet/arch-update/wiki

I would like to suggest a slight change to your 'yaourt check update' command, in order to get the version numbers too.

Problem with yaourt -Qu -a is that every output will be prepended by 'aur/' so I use a 'cut' to remove 4 first char

/bin/sh -c "(/usr/bin/checkupdates; /usr/bin/yaourt -Qu -a | cut -c 5-) | sort -u -t' ' -k1,1"

And by the way thanks for your work !

Indicator still showing updates even there are no available

Hello,

I have problem with the indicator addon still showing that I need to update my system.Screenshot.
I tried to reinstall by deleting the directory for the addon and instaling again. Which did not help.
This is what I get when I run the checkupdates command. This is the settings screenshot.
[user ~]$ /usr/bin/checkupdates
ca-certificates 20150402-1 -> 20160507-1
ca-certificates-cacert 20140824-2 -> 20140824-3
ca-certificates-mozilla 3.23-3 -> 3.23-4
ca-certificates-utils 20150402-1 -> 20160507-1
dosfstools 3.0.28-1 -> 4.0-2
glib2 2.48.0-2 -> 2.48.1-1
glibc 2.23-2 -> 2.23-4
gnupg 2.1.12-1 -> 2.1.12-2
gssproxy 0.4.1-1 -> 0.5.0-3
libksba 1.3.3-1 -> 1.3.4-1
libseccomp 2.2.3-1 -> 2.3.1-1
linux45 4.5.3-1 -> 4.5.4-1
linux45-headers 4.5.3-1 -> 4.5.4-1
man-pages 4.05-1 -> 4.06-1
manjaro-release 15.12-1 -> 16.06rc1-1
nss 3.23-3 -> 3.23-4
perl 5.22.1-2 -> 5.22.2-1
xfsprogs 4.3.0-1 -> 4.5.0-1

What could be wrong? What did I changed that made the applet think that I still need to update these programs?

pacman-contrib is required for the plugin to work

checkupdates is now part of pacman-contrib
This packages should be installed in order for the package to work:

gunix@archdesktop ~ $ pacman -Fs checkupdates
community/pacman-contrib 1.0.0-2
    usr/bin/checkupdates
gunix@archdesktop ~ $ sudo pacman -S pacman-contrib
resolving dependencies...
looking for conflicting packages...

Packages (1) pacman-contrib-1.0.0-2

Total Download Size:   0.03 MiB
Total Installed Size:  0.14 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages...
 pacman-contrib-1.0.0-2-x86_64                                                                          28.5 KiB   570K/s 00:00 [##############################################################################] 100%
(1/1) checking keys in keyring                                                                                                  [##############################################################################] 100%
(1/1) checking package integrity                                                                                                [##############################################################################] 100%
(1/1) loading package files                                                                                                     [##############################################################################] 100%
(1/1) checking for file conflicts                                                                                               [##############################################################################] 100%
(1/1) checking available disk space                                                                                             [##############################################################################] 100%
:: Processing package changes...
(1/1) installing pacman-contrib                                                                                                 [##############################################################################] 100%
Optional dependencies for pacman-contrib
    mlocate: pacdiff [installed]
    findutils: pacdiff [installed]
:: Running post-transaction hooks...
(1/2) Reloading system manager configuration...
(2/2) Arming ConditionNeedsUpdate...

I think this info could be added to the documentation, or to the required packages on AUR.

Feel free to close the issue if you want.

Best Regards,
gun1x

fakeroot

This gnome extension requires fakeroot in order to work:

gunix@archdesktop tmp $ /usr/bin/checkupdates
==> ERROR: Cannot find the fakeroot binary.
gunix@archdesktop tmp $ pacman -S fakeroot
error: you cannot perform this operation unless you are root.
gunix@archdesktop tmp $ sudo pacman -S fakeroot
resolving dependencies...
looking for conflicting packages...

Packages (1) fakeroot-1.22-1

Total Download Size:   0.07 MiB
Total Installed Size:  0.12 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages...
 fakeroot-1.22-1-x86_64                                         66.7 KiB   741K/s 00:00 [##################################################] 100%
(1/1) checking keys in keyring                                                          [##################################################] 100%
(1/1) checking package integrity                                                        [##################################################] 100%
(1/1) loading package files                                                             [##################################################] 100%
(1/1) checking for file conflicts                                                       [##################################################] 100%
(1/1) checking available disk space                                                     [##################################################] 100%
:: Processing package changes...
(1/1) installing fakeroot                                                               [##################################################] 100%
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...
gunix@archdesktop tmp $ /usr/bin/checkupdates
ca-certificates-mozilla 3.34.1-1 -> 3.35-1
chromaprint 1.4.2-1 -> 1.4.3-1
coreutils 8.28-1 -> 8.29-1
glib2 2.54.3-2 -> 2.54.3+2+g94b38beff-1
linux 4.14.13-1 -> 4.14.14-1
linux-firmware 20171206.fdee922-1 -> 20180119.2a713be-1
nspr 4.17-1 -> 4.18-1
nss 3.34.1-1 -> 3.35-1
gunix@archdesktop tmp $ 

It would help to have a list of requirements, since Gnome doesn't help too much in this regard.

Wiki: better yaourt check command

@RaphaelRochet not sure how to submit a PR to the wiki, so submitting it as issue, sorry.

    Wiki: better yaourt check command

    Previous one resulted in duplicating checkupdates output and yaourt,
    effectively doubling the number of arch updates + adding AUR updates.
    This one gets the best of both worlds: with version number for arch
    updates and without for AUR updates.

    Sample output (line 1 & 2 are checkupdates, line 3 is yaourt/AUR):

        dconf 0.26.1-1 -> 0.28.0-1
        dconf-editor 3.26.2-1 -> 3.28.0-1
        devd
---
 Home.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Home.md b/Home.md
index 6bfd44d..8dba9a2 100644
--- a/Home.md
+++ b/Home.md
@@ -7,7 +7,7 @@
 ## Add AUR Support

 ### yaourt
-* Check command : ``/bin/sh -c "/usr/bin/checkupdates ; /usr/bin/yaourt -Qqu -a"``
+* Check command : ``/bin/sh -c "(/usr/bin/checkupdates; /usr/bin/yaourt -Qqu -a) | sort -u -t' ' -k1,1"``
 * Update command : ``gnome-terminal -e 'sh -c  "yaourt -Syu -a ; echo Done - Press enter to exit; read" '``

 ## pacaur

Option to cancel update checking

I tiny circle cancel button beside the "Checking for updates" would be really useful, especially when I'm e.g. on the train with a wifi that barely exists and every megabyte is precious, which is quite often for me.

Add option to open specific pacman wrapper for install or remove package ( like pamac or other GUI interface )

Hi there, we have forked your extension to ship with our Manjaro Gnome edition ( we have changed icon status and command to open pamac when update is ready ) . We like your extension because offer a native integration with gnome-shell ;) .
Is possible add an option to open a packager manager ( in our case pamac ).
https://wiki.archlinux.org/index.php/Pacman/Tips_and_tricks#Graphical_front-ends

Regards
Stefano

Add option to notify on certain days or hours.

Hello,

When arch is used on a workstation it is important to keep it updated, but you also need to be able to work on your computer without being distracted by a notification all the time.

With the current update checking interval system, you almost get a notification every single day.

It would be awesome to be able to set days on which the extension would check update or not.

For exemple, I like to update my computer on Friday, so that I have the weekend to fix any problem that would occur during an update. But I don't want to get any notification during the week as I'm often busy working.

What do you think about that ?

Plural form

Please create plural form for this string:

: extension.js:217 extension.js:232

msgid "updates pending"
msgstr ""

Remember last automatic check date

At the moment, if a user sets the automatic check interval to something like "24 hours", and the session only lasts a few hours, the check will never take place, as it restarts with the session.
If the last check date is stored, then it can be used to set the interval for the automatic check.

In case you'd like to implement it, I implemented this for the apt-based extension here: franglais125/apt-update-indicator@c3b7ce6 . A PR won't work, but from there it is pretty easy to see how it was done. If you have suggestions on how to improve it, I'd definitely be interested!

Cheers!

Missing version information

I didn't find a way to see which version I have - consider an about tab in the settings - or mention the version number in title

Not working on Gnome 3.22.1

The latest version isnt compatable with the latest version of gnome. Please fix! This is an awesome extension.

"Update now" opens pamac-manager instead of pamac-updater

Hi @RaphaelRochet ,

in #83 @Ste74 asked you to add an option to open a GUI package manager.

I've set:

Command to open package manager (optional):
/usr/bin/pamac-manager

It's working fine, thanks.

I've also set:

Command to update packages:
/usr/bin/pamac-updater

But that doesn't work. Once you click on "Update now", it opens pamac-manager instead of pamac-updater.

Any idea what could be causing this and how it could be fixed?

When launching pamac-updater from a terminal or via ALT+F2, it properly launches pamac-updater.

Removing:

Command to open package manager (optional)
/usr/bin/pamac-manager

does not help.

Regards

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.