-
-
Notifications
You must be signed in to change notification settings - Fork 27
Use flatpak preinstall for system Flatpak apps #364
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
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
44ab0bf
Use flatpak preinstall for system Flatpak apps
ryonakano 5930f1e
Merge branch 'main' into ryonakano/flatpak-preinstall
ryonakano c8aa920
Import flatpak-preinstalld.service from elementary-atomic-os
ryonakano 4c93b51
Add EOF newline
ryonakano 0deaa0e
Install flatpak-preinstalld.service
ryonakano b4e48fb
Install to /usr/share instead of /etc
ryonakano 7e7ed68
skel: Setup system-wide remote
ryonakano 128bd40
Install our patched version of GNOME Flatpak apps
ryonakano 051c1b1
meson: Remove overkilling foreach
ryonakano 4c27d73
Actions: Add libsystemd-dev
ryonakano e9e560b
Actions: Correct package name
ryonakano File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| [Flatpak Preinstall io.elementary.calculator] | ||
| Branch=stable | ||
|
|
||
| [Flatpak Preinstall io.elementary.camera] | ||
| Branch=stable | ||
|
|
||
| [Flatpak Preinstall io.elementary.capnet-assist] | ||
| Branch=stable | ||
|
|
||
| [Flatpak Preinstall io.elementary.maps] | ||
| Branch=stable | ||
|
|
||
| [Flatpak Preinstall io.elementary.music] | ||
| Branch=stable | ||
|
|
||
| [Flatpak Preinstall io.elementary.screenshot] | ||
| Branch=stable | ||
|
|
||
| [Flatpak Preinstall io.elementary.videos] | ||
| Branch=stable | ||
|
|
||
| [Flatpak Preinstall org.gnome.Epiphany] | ||
| Branch=stable | ||
|
|
||
| [Flatpak Preinstall org.gnome.Evince] | ||
| Branch=stable | ||
|
|
||
| [Flatpak Preinstall org.gnome.FileRoller] | ||
| Branch=stable | ||
|
|
||
| [Flatpak Preinstall org.gnome.font-viewer] | ||
| Branch=stable |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| [Unit] | ||
| Description=Preinstall Flatpaks | ||
| After=network-online.target | ||
| Wants=network-online.target | ||
| ConditionPathExists=/usr/bin/flatpak | ||
| ConditionPathExists=!/var/lib/flatpak/.preinstall-finished | ||
| Documentation=man:flatpak-preinstall(1) | ||
| StartLimitIntervalSec=600 | ||
|
|
||
| [Service] | ||
| Type=oneshot | ||
| ExecStart=mkdir -p /var/lib/flatpak/ | ||
| ExecStart=/usr/bin/flatpak preinstall -y | ||
| ExecStart=touch /var/lib/flatpak/.preinstall-finished | ||
| RemainAfterExit=true | ||
| Restart=on-failure | ||
| RestartSec=30 | ||
|
|
||
| StartLimitBurst=3 | ||
|
|
||
| [Install] | ||
| WantedBy=multi-user.target | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| install_data( | ||
| 'appcenter.preinstall', | ||
| install_dir: datadir / 'flatpak' / 'preinstall.d' | ||
| ) | ||
|
|
||
| systemd_system_unit_dir = get_option('systemdsystemunitdir') | ||
| if systemd_system_unit_dir != 'no' | ||
| if systemd_system_unit_dir == '' | ||
| systemd_dep = dependency('systemd') | ||
| systemd_system_unit_dir = systemd_dep.get_variable('systemdsystemunitdir', pkgconfig_define: ['rootprefix', prefix]) | ||
| endif | ||
|
|
||
| install_data( | ||
| 'flatpak-preinstalld.service', | ||
| install_dir: systemd_system_unit_dir | ||
| ) | ||
| endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.