illwieckz

STUPID: see https://pastebin.com/QF47Bzmw instead

Feb 17th, 2021 (edited)
542
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.62 KB | None | 0 0
  1. cat > ~/.local/share/applications/run-pie-executable-seen-as-shared-library.desktop <<\EOF
  2. [Desktop Entry]
  3. Version=1.0
  4. Type=Application
  5. Name=Run PIE executable seen as shared library
  6. Exec=/usr/bin/env bash -c 'u="%U"; r="$(mktemp "$(dirname "${u}")/temp-run-pie.XXXXXX")"; cp -L '/lib64/ld-linux-x86-64.so.2' "${r}"; chmod +x "${r}"; "${r}" "${u}" ; rm "${r}"'
  7. TryExec=/lib64/ld-linux-x86-64.so.2
  8. Icon=application-x-executable
  9. Categories=System
  10. StartupNotify=true
  11. NoDisplay=true
  12. MimeType=application/x-sharedlib;
  13. EOF
  14.  
  15. xdg-desktop-menu install ~/.local/share/applications/run-pie-executable-seen-as-shared-library.desktop
Add Comment
Please, Sign In to add comment