Forums

How to run POL-Scripts outside playonlinux?

Auteur Réponses
liberavia Jeudi 12 September 2013 à 0:51
liberaviaAnonymous

Hi there,

I know that my question might sound weird for some of
you, but due (I thought) I saw what is sourced to get the POL-Framwork
initialized, I really would like to manage this in a bash-script.

The goal is to create a wineprefix with a certain wine-version just by starting a bash-script.

After following source command(s) i tried to manually preset some of the variables the script seemed to expect.
So here's what I tried so far based on the Hello World-Example in PlayOnLinux's documentation area:

#!/bin/bash
REPERTOIRE="/usr/share/playonlinux"
PLAYONLINUX="/usr/share/playonlinux"
POL_OS="Linux"
POL_USER_ROOT="/home/andre/.PlayOnLinux/"
Plinux="1"
source "$PLAYONLINUX/lib/sources"
 
POL_SetupWindow_Init
 
POL_SetupWindow_message "Hello World!" "My first message"
 
POL_SetupWindow_Close
exit

Result is:
ramona@ramona-desktop:~/Entwicklung/playonlinux$ ./hallo.sh
[POL_SetupWindow_Init] Message: Creating new window for pid 3594
[POL_SetupWindow_Close] Message: Closing window for pid 3594
ramona@ramona-desktop:~/Entwicklung/playonlinux$

Nothing appeared.

What is missing to get the framework run in any bash-script? Is it possible at all?

Best wishes,

André
petch Jeudi 12 September 2013 à 4:21
petch

use playonlinux-bash to run the script
liberavia Jeudi 12 September 2013 à 11:46
liberaviaAnonymous

lol KISS at its best. This just works great. Thanks :-)

This site allows content generated by members, and we promptly remove any content that infringes copyright according to our Terms of Service. To report copyright infringement, please send a notice to dmcayonlinux.com