Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

patsh doesn't patch the path, if the executable is a symlink #136

Open
acid-bong opened this issue Oct 20, 2024 · 0 comments
Open

patsh doesn't patch the path, if the executable is a symlink #136

acid-bong opened this issue Oct 20, 2024 · 0 comments

Comments

@acid-bong
Copy link

acid-bong commented Oct 20, 2024

I'm trying to patsh scripts for my statusbar, and one of them has pactl from Pulseaudio. The difference is that in pulseaudio this executable is a symlink:

/nix/store/j77hg2kxd5na26wark4l537a1zh6kdcx-pulseaudio-17.0
├── bin
│   ├── pacat -> ../.bin-unwrapped/pacat
│   ├── pacmd -> ../.bin-unwrapped/pacmd
│   ├── pactl -> ../.bin-unwrapped/pactl
│   ├── padsp -> ../.bin-unwrapped/padsp
│   ├── pa-info -> ../.bin-unwrapped/pa-info
│   ├── pamon -> ../.bin-unwrapped/pacat
│   ├── paplay -> ../.bin-unwrapped/pacat
│   ├── parec -> ../.bin-unwrapped/pacat
│   ├── parecord -> ../.bin-unwrapped/pacat
│   ├── pasuspender -> ../.bin-unwrapped/pasuspender
│   └── pulseaudio -> ../.bin-unwrapped/pulseaudio

while in pulseaudioFull these links are additionally wrapped with wrapGApps and are standalone files themselves:

/nix/store/br80qh5kwmg723q46z7kry8l7s2d5z86-pulseaudio-17.0
├── bin
│   ├── pacat
│   ├── .pacat-wrapped -> ../.bin-unwrapped/pacat
│   ├── pacmd
│   ├── .pacmd-wrapped -> ../.bin-unwrapped/pacmd
│   ├── pactl
│   ├── .pactl-wrapped -> ../.bin-unwrapped/pactl
[...]

Expected behaviour: patsh should replace pactl with its full path in both cases.

Actual behaviour: it only replaces if pulseaudioFull is used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant