LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How to preload padsp for only one application? (https://www.linuxquestions.org/questions/linux-software-2/how-to-preload-padsp-for-only-one-application-693884/)

Lord Estraven 12-30-2008 10:52 AM

How to preload padsp for only one application?
 
To prevent various problems in Wine, I'd like to use OSS through PulseAudio, via padsp. I've tried preloading it with this line in /etc/profile:

Code:

export LD_PRELOAD=/usr/lib/libpulsedsp.so${LD_PRELOAD:+:$LD_PRELOAD}
But that causes stuff to fail when KDE starts. What can I put in /etc/profile or .bashrc to preload padsp only for Wine? If nothing can do that, how else can I make Wine always use padsp without having to run it from a console every time?

I'm using KDE on Pardus 2008.1, FWIW...

Valery Reznic 12-30-2008 11:53 PM

Quote:

Originally Posted by Lord Estraven (Post 3391693)
To prevent various problems in Wine, I'd like to use OSS through PulseAudio, via padsp. I've tried preloading it with this line in /etc/profile:

Code:

export LD_PRELOAD=/usr/lib/libpulsedsp.so${LD_PRELOAD:+:$LD_PRELOAD}
But that causes stuff to fail when KDE starts. What can I put in /etc/profile or .bashrc to preload padsp only for Wine? If nothing can do that, how else can I make Wine always use padsp without having to run it from a console every time?

I'm using KDE on Pardus 2008.1, FWIW...

Nothing in /etc/profile and .bashrc will do.

But you can for example, move wine to wine.orig and create simple script wine, that called wine.orig with preloaded library,
Code:

#!/bin/sh
LD_PRELOAD=what_you_like /path/to/wine.orig



All times are GMT -5. The time now is 05:32 AM.