Skip to content

Instantly share code, notes, and snippets.

@NICHOLAS85
Last active March 16, 2020 00:00
Show Gist options
  • Save NICHOLAS85/061525753b73dc895696172332f092b3 to your computer and use it in GitHub Desktop.
Save NICHOLAS85/061525753b73dc895696172332f092b3 to your computer and use it in GitHub Desktop.
pacman hook to rebuild the desktop file system configuration cache on app installations for Arch strata under Bedrock
[Trigger]
Type = File
Operation = Install
Operation = Upgrade
Operation = Remove
Target = usr/share/applications/*.desktop
[Action]
Description = Running update-desktop-database...
When = PostTransaction
Exec = /bedrock/bin/strat init /usr/bin/update-desktop-database --quiet
@NICHOLAS85
Copy link
Author

NICHOLAS85 commented Feb 6, 2020

This is useful if you install software from Arch strata which include entries that should appear in your app launcher. Not needed in Arch strata providing your init.

If you aren't aware of what Bedrock is, more info can be found here: https://bedrocklinux.org/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment