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 1856b9a
Show file tree
Hide file tree
Showing 2 changed files with 16 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)
if not test -d /opt/$dir
ln -s /usr/lib/opt/$dir /opt/$dir
end
end
9 changes: 9 additions & 0 deletions config/systemd/user/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.sh

[Install]
WantedBy=default.target

0 comments on commit 1856b9a

Please sign in to comment.