Skip to content

Commit

Permalink
added service to create symlinks for optfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Zshoham committed Jun 23, 2024
1 parent c641a71 commit 5cc4bed
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
7 changes: 7 additions & 0 deletions config/files/usr/share/ublue-os/optfix-symlink.fish
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/fish

for dir in (fd --base-directory /usr/lib/opt/ -d 1 | string trim -c "/")
if not test -d /opt/$dir
ln -s /usr/lib/opt/$dir /opt/$dir
end
end
9 changes: 9 additions & 0 deletions config/systemd/system/optfix.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[Unit]
Description=Symlink all programs installed to opt from /usr/lib/opt to /opt

[Service]
Type=oneshot
ExecStart=/usr/share/ublue-os/optfix-symlink.fish

[Install]
WantedBy=multi-user.target
4 changes: 4 additions & 0 deletions recipes/recipe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ modules:
# Installing different branches of the same Flatpak is not supported.
remove:
# - org.gnome.eog
- type: systemd
system:
enabled:
- optfix.service
- type: fonts
fonts:
nerd-fonts:
Expand Down

0 comments on commit 5cc4bed

Please sign in to comment.