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

Call update-desktop-database to refresh Oxide's application cache on install #700

Merged
merged 39 commits into from
Nov 23, 2023

Conversation

Eeems
Copy link
Member

@Eeems Eeems commented Jun 7, 2023

This makes sure that applications will automatically show up in oxide when they only provide a draft file.

This is a good candidate for install hooks that packages can install to avoid having to repackage everything with new scripts.

@Eeems
Copy link
Member Author

Eeems commented Jun 9, 2023

This is likely failing because I'm targeting the oxide branch, which is for #698, so it's trying to build every single package.

@Eeems Eeems added this to the 2023-W31 merge window milestone Jul 26, 2023
@Eeems
Copy link
Member Author

Eeems commented Jul 26, 2023

When #698 is merged, this can be marked as ready.

@Eeems
Copy link
Member Author

Eeems commented Aug 17, 2023

if os.path.exists(os.path.join(pkg_dir, "opt/usr/share/applications")):
oxide_hook = "\nreload-oxide-apps\n"
package.functions["configure"] += oxide_hook
package.functions["postupgrade"] += oxide_hook
package.functions["postremove"] += oxide_hook

TODO:

  • Update this hook to also handle draft apps
  • Remove update-desktop-database calls from all package recipes
  • Update documentation to talk about this hook

This package is failing to build
@Eeems
Copy link
Member Author

Eeems commented Aug 26, 2023

I've chosen not to resolve the issue with whiteboard-hypercard in this PR and to leave it in a less complete state to be resolved later.
#729

@Eeems Eeems added the packages Add or improve packages of the repository label Sep 7, 2023
@Eeems
Copy link
Member Author

Eeems commented Oct 29, 2023

The folly build is broken now as well, I'm not going to resolve it in this PR
#748

@Jayy001 Jayy001 self-assigned this Nov 21, 2023
Jayy001
Jayy001 previously approved these changes Nov 21, 2023
Copy link

@Jayy001 Jayy001 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested on RM2 3.3.2.1666 with no issues - automatically adds application

@Eeems
Copy link
Member Author

Eeems commented Nov 22, 2023

It looks like the place we download KOReader from is down at the moment, which is blocking this.

@Eeems
Copy link
Member Author

Eeems commented Nov 23, 2023

Opened koreader/koreader#11146 to alert the koreader team about the site being down as it's been all day and it's still down, and I didn't see another issue opened for it.

@Eeems Eeems merged commit ee79e99 into testing Nov 23, 2023
3 checks passed
@Eeems Eeems deleted the update-desktop-database branch November 23, 2023 21:01
Eeems added a commit that referenced this pull request Nov 23, 2023
…install (#700)

* Update oxide to v2.6

* Style fixes

* Add missing pkgnames

* Update image paths

* Fix liboxide path

* Don't check to see if tarnish is active

update-desktop-database safely handles tarnish not running.

* update-desktop-database for all applicaitons

* Update build image for plato

* Re-trigger CI

Most likely a one-off error: Timeout when connecting to github

* Update to latest image for zoneinfo-utils

* Add libc6 build dependency to zoneinfo-utils

* Revert all changes to zoneinfo-utils

* Update all packages to use install-lib method

* Fix formatting

* Also run oxide hook for draft apps

* Remove manual reload-oxide-apps calls

* Bump all other packages that have draft/oxide files

* Format fixes

* Add back missing documentation change

* Don't update whiteboard-hypercard

This package is failing to build

* Revert folly version

* Bump whiteboard-hypercard now that the build is fixed

* Bump xochitl version number

* Use github for KOReader release

---------

Co-authored-by: Linus <[email protected]>
Co-authored-by: Jayy001 <[email protected]>
Eeems added a commit that referenced this pull request Dec 6, 2023
### New Packages
- `template-daily-planner`, `template-weekly-planner`, `template-journal`, `template-meeting-notes`, `template-smart-goals`, and `template-good-time-journal` - 0.0.0-1 (#712)
- `splashscreen-starting-wavey-lines`, `splashscreen-suspended-wavey-lines`, `splashscreen-poweroff-gallifreyan`, `splashscreen-suspended-gallifreyan`, `splashscreen-suspended-gallifreyan-dark`, `splashscreen-starting-gallifreyan`, `splashscreen-suspended-gallifreyan-2`, `splashscreen-suspended-flower-pause`, `splashscreen-batteryempty-barnsley_fern`, `splashscreen-poweroff-barnsley_fern`, `splashscreen-starting-barnsley_fern`, `splashscreen-suspended-barnsley_fern`, `splashscreen-batteryempty-chaotic_ribbon`, `splashscreen-poweroff-chaotic_ribbon`, `splashscreen-starting-chaotic_ribbon`, `splashscreen-suspended-chaotic_ribbon`, `splashscreen-batteryempty-collatz_sea_weed`, `splashscreen-poweroff-collatz_sea_weed`, `splashscreen-starting-collatz_sea_weed`, `splashscreen-suspended-collatz_sea_weed`, `splashscreen-batteryempty-dragon_curve`, `splashscreen-poweroff-dragon_curve`, `splashscreen-starting-dragon_curve`, `splashscreen-suspended-dragon_curve`, `splashscreen-batteryempty-fire`, `splashscreen-poweroff-fire`, `splashscreen-starting-fire`, `splashscreen-suspended-fire`, `splashscreen-batteryempty-fractal_tree`, `splashscreen-poweroff-fractal_tree`, `splashscreen-starting-fractal_tree`, `splashscreen-suspended-fractal_tree`, `splashscreen-batteryempty-sacks_spiral`, `splashscreen-poweroff-sacks_spiral`, `splashscreen-starting-sacks_spiral`, `splashscreen-suspended-sacks_spiral`, `splashscreen-batteryempty-sierpinski_triangle`, `splashscreen-poweroff-sierpinski_triangle`, `splashscreen-starting-sierpinski_triangle`, `splashscreen-suspended-sierpinski_triangle`, `splashscreen-batteryempty-snowy_hills`, `splashscreen-poweroff-snowy_hills`, `splashscreen-starting-snowy_hills`, `splashscreen-suspended-snowy_hills`, `splashscreen-batteryempty-starr`, `splashscreen-poweroff-starr`, `splashscreen-starting-starr`, and `splashscreen-suspended-starr` - 0.0.0-1 (#724)
  - Installing a splashscreen will automatically enable it
  - Removing a splashscreen will automatically revert to the previous splashscreen

### Updated Packages
- `toltec-bootstrap` - 0.2.3-1 (#740)
- `rmfm` - 1.5.0-2 (#700 #746)
- `whiteboard-hypercard` - 0.3.7-2 (#700 #747)
- `yaft` - 0.0.10-2 (#700 #736)
- `xochitl` - 0.0.0-16 (#700 #707)
- `reboot-guard` - 1.0.1-7 (#689)
- `calculator` - 0.0.0-16 (#700)
- `chessmarkable` - 0.8.0-2 (#700)
- `doomarkable` - 0.4.1-2 (#700)
- `fingerterm` - 1.3.5-15 (#700)
- `keywriter` - 0.2~20-gddc9e73-2 (#700)
- `koreader` - 2023.08-2 (#700)
- `netsurf` - 0.4.0-3 (#700)
- `erode`, `fret`, `oxide`, `rot`, `tarnish`, `decay`, `corrupt`, `anxiety`, `oxide-utils`, `inject_evdev`, and `liboxide` - 0.2.6-2 (#700 #745)
- `plato` - 0.9.34-2 (#700)
- `puzzles` - 0.2.2-4 (#700)
- `recrossable` - 0.0.0-8 (#700)
- `regenda` - 0.0.2-2 (#700)
- `reterm` - 20230628.1927-2 (#700)
- `retris` - 0.6.3-4 (#700)
- `dumbskull` - 0.0.1-3 (#700)
- `harmony` - 0.2.2-2 (#700)
- `mines` - 0.1.4-3 (#700)
- `nao` - 0.1.2-4 (#700)
- `rpncalc` - 0.0.3-3 (#700)
- `wordlet` - 0.0.2-3 (#700)
- `sill` - 0.1.1-1 (#700)
- `vnsee` - 0.4.1-2 (#700)
- `wikipedia` - 0.1.0-4 (#700)
- `zshelf` - 0.4.0-4 (#700)
- `changescrn` - 1.0.0-2 (#724)

### Tooling
- Packages that contain files in `/opt/etc/draft` or `/opt/usr/share/applications` will now automatically reload oxide applications as part of install, upgrade, and remove.

### Documentation
- Add documentation for the reload-oxide-apps hook.
- Update category list to include the new splashscreens category.

### Known Issues
- lowbattery and starting splashscreens don't work since they need to be in a specific bmp format and put in `/var/lib/uboot` (pr0fsmith/rMscreens#7)
- Installing two splashscreens of the same type will error instead of replacing the previously installed splashscreen (#761)
- Fingerterm icon is incorrect (#762)
@Eeems Eeems mentioned this pull request Dec 6, 2023
Eeems added a commit that referenced this pull request Dec 6, 2023
### New Packages
- `template-daily-planner`, `template-weekly-planner`, `template-journal`, `template-meeting-notes`, `template-smart-goals`, and `template-good-time-journal` - 0.0.0-1 (#712)
- `splashscreen-starting-wavey-lines`, `splashscreen-suspended-wavey-lines`, `splashscreen-poweroff-gallifreyan`, `splashscreen-suspended-gallifreyan`, `splashscreen-suspended-gallifreyan-dark`, `splashscreen-starting-gallifreyan`, `splashscreen-suspended-gallifreyan-2`, `splashscreen-suspended-flower-pause`, `splashscreen-batteryempty-barnsley_fern`, `splashscreen-poweroff-barnsley_fern`, `splashscreen-starting-barnsley_fern`, `splashscreen-suspended-barnsley_fern`, `splashscreen-batteryempty-chaotic_ribbon`, `splashscreen-poweroff-chaotic_ribbon`, `splashscreen-starting-chaotic_ribbon`, `splashscreen-suspended-chaotic_ribbon`, `splashscreen-batteryempty-collatz_sea_weed`, `splashscreen-poweroff-collatz_sea_weed`, `splashscreen-starting-collatz_sea_weed`, `splashscreen-suspended-collatz_sea_weed`, `splashscreen-batteryempty-dragon_curve`, `splashscreen-poweroff-dragon_curve`, `splashscreen-starting-dragon_curve`, `splashscreen-suspended-dragon_curve`, `splashscreen-batteryempty-fire`, `splashscreen-poweroff-fire`, `splashscreen-starting-fire`, `splashscreen-suspended-fire`, `splashscreen-batteryempty-fractal_tree`, `splashscreen-poweroff-fractal_tree`, `splashscreen-starting-fractal_tree`, `splashscreen-suspended-fractal_tree`, `splashscreen-batteryempty-sacks_spiral`, `splashscreen-poweroff-sacks_spiral`, `splashscreen-starting-sacks_spiral`, `splashscreen-suspended-sacks_spiral`, `splashscreen-batteryempty-sierpinski_triangle`, `splashscreen-poweroff-sierpinski_triangle`, `splashscreen-starting-sierpinski_triangle`, `splashscreen-suspended-sierpinski_triangle`, `splashscreen-batteryempty-snowy_hills`, `splashscreen-poweroff-snowy_hills`, `splashscreen-starting-snowy_hills`, `splashscreen-suspended-snowy_hills`, `splashscreen-batteryempty-starr`, `splashscreen-poweroff-starr`, `splashscreen-starting-starr`, and `splashscreen-suspended-starr` - 0.0.0-1 (#724)
  - Installing a splashscreen will automatically enable it
  - Removing a splashscreen will automatically revert to the previous splashscreen

### Updated Packages
- `toltec-bootstrap` - 0.2.3-1 (#740)
- `rmfm` - 1.5.0-2 (#700 #746)
- `whiteboard-hypercard` - 0.3.7-2 (#700 #747)
- `yaft` - 0.0.10-2 (#700 #736)
- `xochitl` - 0.0.0-16 (#700 #707)
- `reboot-guard` - 1.0.1-7 (#689)
- `calculator` - 0.0.0-16 (#700)
- `chessmarkable` - 0.8.0-2 (#700)
- `doomarkable` - 0.4.1-2 (#700)
- `fingerterm` - 1.3.5-15 (#700)
- `keywriter` - 0.2~20-gddc9e73-2 (#700)
- `koreader` - 2023.08-2 (#700)
- `netsurf` - 0.4.0-3 (#700)
- `erode`, `fret`, `oxide`, `rot`, `tarnish`, `decay`, `corrupt`, `anxiety`, `oxide-utils`, `inject_evdev`, and `liboxide` - 0.2.6-2 (#700 #745)
- `plato` - 0.9.34-2 (#700)
- `puzzles` - 0.2.2-4 (#700)
- `recrossable` - 0.0.0-8 (#700)
- `regenda` - 0.0.2-2 (#700)
- `reterm` - 20230628.1927-2 (#700)
- `retris` - 0.6.3-4 (#700)
- `dumbskull` - 0.0.1-3 (#700)
- `harmony` - 0.2.2-2 (#700)
- `mines` - 0.1.4-3 (#700)
- `nao` - 0.1.2-4 (#700)
- `rpncalc` - 0.0.3-3 (#700)
- `wordlet` - 0.0.2-3 (#700)
- `sill` - 0.1.1-1 (#700)
- `vnsee` - 0.4.1-2 (#700)
- `wikipedia` - 0.1.0-4 (#700)
- `zshelf` - 0.4.0-4 (#700)
- `changescrn` - 1.0.0-2 (#724)

### Tooling
- Packages that contain files in `/opt/etc/draft` or `/opt/usr/share/applications` will now automatically reload oxide applications as part of install, upgrade, and remove.

### Documentation
- Add documentation for the reload-oxide-apps hook.
- Update category list to include the new splashscreens category.

### Known Issues
- lowbattery and starting splashscreens don't work since they need to be in a specific bmp format and put in `/var/lib/uboot` (pr0fsmith/rMscreens#7)
- Installing two splashscreens of the same type will error instead of replacing the previously installed splashscreen (#761)
- Fingerterm icon is incorrect (#762)
Eeems added a commit that referenced this pull request Dec 6, 2023
### New Packages
- `template-daily-planner`, `template-weekly-planner`, `template-journal`, `template-meeting-notes`, `template-smart-goals`, and `template-good-time-journal` - 0.0.0-1 (#712)
- `splashscreen-starting-wavey-lines`, `splashscreen-suspended-wavey-lines`, `splashscreen-poweroff-gallifreyan`, `splashscreen-suspended-gallifreyan`, `splashscreen-suspended-gallifreyan-dark`, `splashscreen-starting-gallifreyan`, `splashscreen-suspended-gallifreyan-2`, `splashscreen-suspended-flower-pause`, `splashscreen-batteryempty-barnsley_fern`, `splashscreen-poweroff-barnsley_fern`, `splashscreen-starting-barnsley_fern`, `splashscreen-suspended-barnsley_fern`, `splashscreen-batteryempty-chaotic_ribbon`, `splashscreen-poweroff-chaotic_ribbon`, `splashscreen-starting-chaotic_ribbon`, `splashscreen-suspended-chaotic_ribbon`, `splashscreen-batteryempty-collatz_sea_weed`, `splashscreen-poweroff-collatz_sea_weed`, `splashscreen-starting-collatz_sea_weed`, `splashscreen-suspended-collatz_sea_weed`, `splashscreen-batteryempty-dragon_curve`, `splashscreen-poweroff-dragon_curve`, `splashscreen-starting-dragon_curve`, `splashscreen-suspended-dragon_curve`, `splashscreen-batteryempty-fire`, `splashscreen-poweroff-fire`, `splashscreen-starting-fire`, `splashscreen-suspended-fire`, `splashscreen-batteryempty-fractal_tree`, `splashscreen-poweroff-fractal_tree`, `splashscreen-starting-fractal_tree`, `splashscreen-suspended-fractal_tree`, `splashscreen-batteryempty-sacks_spiral`, `splashscreen-poweroff-sacks_spiral`, `splashscreen-starting-sacks_spiral`, `splashscreen-suspended-sacks_spiral`, `splashscreen-batteryempty-sierpinski_triangle`, `splashscreen-poweroff-sierpinski_triangle`, `splashscreen-starting-sierpinski_triangle`, `splashscreen-suspended-sierpinski_triangle`, `splashscreen-batteryempty-snowy_hills`, `splashscreen-poweroff-snowy_hills`, `splashscreen-starting-snowy_hills`, `splashscreen-suspended-snowy_hills`, `splashscreen-batteryempty-starr`, `splashscreen-poweroff-starr`, `splashscreen-starting-starr`, and `splashscreen-suspended-starr` - 0.0.0-1 (#724)
  - Installing a splashscreen will automatically enable it
  - Removing a splashscreen will automatically revert to the previous splashscreen

### Updated Packages
- `toltec-bootstrap` - 0.2.3-1 (#740)
- `rmfm` - 1.5.0-2 (#700 #746)
- `whiteboard-hypercard` - 0.3.7-2 (#700 #747)
- `yaft` - 0.0.10-2 (#700 #736)
- `xochitl` - 0.0.0-16 (#700 #707)
- `reboot-guard` - 1.0.1-7 (#689)
- `calculator` - 0.0.0-16 (#700)
- `chessmarkable` - 0.8.0-2 (#700)
- `doomarkable` - 0.4.1-2 (#700)
- `fingerterm` - 1.3.5-15 (#700)
- `keywriter` - 0.2~20-gddc9e73-2 (#700)
- `koreader` - 2023.08-2 (#700)
- `netsurf` - 0.4.0-3 (#700)
- `erode`, `fret`, `oxide`, `rot`, `tarnish`, `decay`, `corrupt`, `anxiety`, `oxide-utils`, `inject_evdev`, and `liboxide` - 0.2.6-2 (#700 #745)
- `plato` - 0.9.34-2 (#700)
- `puzzles` - 0.2.2-4 (#700)
- `recrossable` - 0.0.0-8 (#700)
- `regenda` - 0.0.2-2 (#700)
- `reterm` - 20230628.1927-2 (#700)
- `retris` - 0.6.3-4 (#700)
- `dumbskull` - 0.0.1-3 (#700)
- `harmony` - 0.2.2-2 (#700)
- `mines` - 0.1.4-3 (#700)
- `nao` - 0.1.2-4 (#700)
- `rpncalc` - 0.0.3-3 (#700)
- `wordlet` - 0.0.2-3 (#700)
- `sill` - 0.1.1-1 (#700)
- `vnsee` - 0.4.1-2 (#700)
- `wikipedia` - 0.1.0-4 (#700)
- `zshelf` - 0.4.0-4 (#700)
- `changescrn` - 1.0.0-2 (#724)

### Tooling
- Packages that contain files in `/opt/etc/draft` or `/opt/usr/share/applications` will now automatically reload oxide applications as part of install, upgrade, and remove.

### Documentation
- Add documentation for the reload-oxide-apps hook.
- Update category list to include the new splashscreens category.

### Known Issues
- lowbattery and starting splashscreens don't work since they need to be in a specific bmp format and put in `/var/lib/uboot` (pr0fsmith/rMscreens#7)
- Installing two splashscreens of the same type will error instead of replacing the previously installed splashscreen (#761)
- Fingerterm icon is incorrect (#762)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
packages Add or improve packages of the repository
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants