use absolute sed path, without sudo

This commit is contained in:
Mylloon 2024-06-21 21:47:16 +02:00
parent 51f66d3b72
commit 4b4ec13ded
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
4 changed files with 4 additions and 4 deletions

View file

@ -7,4 +7,4 @@ Target = /usr/share/applications/com.raggesilver.BlackBox.desktop
[Action]
Description = Update BlackBox desktop entry on package upgrade
When = PostTransaction
Exec = /bin/sh -c 'sudo sed -i "s/Name\[fr\]=Boîte Noire/Name\[fr\]=Terminal/g" /usr/share/applications/com.raggesilver.BlackBox.desktop'
Exec = /bin/sh -c '/usr/bin/sed -i "s/Name\[fr\]=Boîte Noire/Name\[fr\]=Terminal/g" /usr/share/applications/com.raggesilver.BlackBox.desktop'

View file

@ -7,4 +7,4 @@ Target = /usr/share/applications/org.gnome.Terminal.desktop
[Action]
Description = Update Gnome Terminal desktop entry on package upgrade
When = PostTransaction
Exec = /bin/sh -c 'sudo sed -i "s/Name\[fr\]=Terminal/Name\[fr\]=Gnome Terminal/g" /usr/share/applications/org.gnome.Terminal.desktop'
Exec = /bin/sh -c '/usr/bin/sed -i "s/Name\[fr\]=Terminal/Name\[fr\]=Gnome Terminal/g" /usr/share/applications/org.gnome.Terminal.desktop'

View file

@ -7,4 +7,4 @@ Target = /usr/share/applications/the-honkers-railway-launcher.desktop
[Action]
Description = Update Honkai launcher desktop entry on package upgrade
When = PostTransaction
Exec = /bin/sh -c 'sudo sed -i "s/Name=The Honkers Railway Launcher/Name=Honkai Star Rail/g" /usr/share/applications/the-honkers-railway-launcher.desktop'
Exec = /bin/sh -c '/usr/bin/sed -i "s/Name=The Honkers Railway Launcher/Name=Honkai Star Rail/g" /usr/share/applications/the-honkers-railway-launcher.desktop'

View file

@ -7,4 +7,4 @@ Target = /usr/share/applications/vesktop.desktop
[Action]
Description = Update Vesktop desktop entry on package upgrade
When = PostTransaction
Exec = /bin/sh -c 'sudo sed -i "s/Name=Vesktop/Name=Discord/g" /usr/share/applications/vesktop.desktop'
Exec = /bin/sh -c '/usr/bin/sed -i "s/Name=Vesktop/Name=Discord/g" /usr/share/applications/vesktop.desktop'