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

Flatpak periodical update notification? #1399

Closed
orschiro opened this issue Feb 9, 2018 · 9 comments

Comments

Projects
None yet
5 participants
@orschiro
Copy link

commented Feb 9, 2018

Hi all,

I am currently running flatpak update manually from time to time to check for new updates.

What I would like to see is Flatpak notifying me about new updates that I can then either install running this terminal command or via a graphical interface.

ARe there any plans for this for the future?

Currently testing Flatpak on Fedora 27.

Thanks for your time reading this!

@AsciiWolf

This comment has been minimized.

Copy link
Contributor

commented Feb 9, 2018

I think that the GNOME Software supports this.

@orschiro

This comment has been minimized.

Copy link
Author

commented Feb 9, 2018

I think that the GNOME Software supports this.

Ah, good to know! Going to check that since I am on Fedora 27 which has GNOME Software.

@alexlarsson

This comment has been minimized.

Copy link
Member

commented Feb 9, 2018

Yeah, the plan for this is that 3rd party graphical tools like gnome-software and kde discover does the auto-update in an integrated way.

@alexlarsson alexlarsson closed this Feb 9, 2018

@pgera

This comment has been minimized.

Copy link

commented Jun 22, 2018

Tangentially related request: I don't use gnome software, but use standard cli package managers (apt/yum/dnf). Is it possible to integrate flatpak updates with system updates so that something like 'yum update' would show flatpak updates ?

@orschiro

This comment has been minimized.

Copy link
Author

commented Jun 22, 2018

@pgera I am running this script on startup:

#/bin/bash

read -p "Press enter to check for updates"
echo "Looking for updates..."
sudo dnf upgrade --assumeyes --refresh --best --allowerasing && flatpak update
notify-send "Updates finished"
$SHELL
@marcelpaulo

This comment has been minimized.

Copy link

commented Jul 6, 2018

An alternative for systems that use systemd:

  1. Create ~/.config/systemd/user/flatpak-update.timer:

    [Unit]
    Description=Flatpak update
    
    [Timer]
    OnCalendar=7:00
    Persistent=true
    
    [Install]
    WantedBy=timers.target
    
  2. Create ~/.config/systemd/user/flatpak-update.service:

    [Unit]
    Description=Flatpak update
    
    [Service]
    Type=oneshot
    ExecStart=/usr/bin/flatpak update -y
    
  3. Enable and start the timer:

    systemctl --user enable flatpak-update.timer
    systemctl --user start flatpak-update.timer
    

OnCalendar can be changed to whatever day/time is most convenient. systemd-time(7) explains the date/time formats.

@orschiro

This comment has been minimized.

Copy link
Author

commented Jul 7, 2018

@marcelpaulo

This comment has been minimized.

Copy link

commented Jul 7, 2018

this performs Flatpak updates automatically in the background?

Exactly. And all output is logged in the systemd user journal. You can check it running:

journalctl --user-unit flatpak-update.service

@orschiro

This comment has been minimized.

Copy link
Author

commented Jul 8, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.