I'm trying to make PlayOnLinux work with primusrun. I know there is a "PRE_WINE" config setting, but it only allows to run all apps with dedicated graphics. I found "commands to exec before starting program" in miscallenous section of settings for every program you install, but putting there primusrun, optirun, etc makes no effect. Putting there just some random commands (like xfce4-terminal) executes it (empty terminal window are being started). I also know I can edit desktop launchers for every POL entry, but I'm trying to be able to selectively run applications with/without dedicated graphics right from POL menu.