make shortcuts wine program with multiple wine versions

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
User avatar
kuboode
Level 1
Level 1
Posts: 5
Joined: Tue Jan 17, 2012 9:29 pm

make shortcuts wine program with multiple wine versions

Post by kuboode »

Hi friends I'm making an script installer; I have wine 1.3.36 and other version wine 1.3.24.
I installed a program on my wine 1.3.24 but when run the shortcuts; run with wine 1.3.36. I modified replacing with my old wine 1.3.24. I need a generic shortcut: example:

[Desktop Entry]
Encoding=UTF-8
Name=Example
Exec=env WINEPREFIX="/home/david/.example" /home/david/wine-1.3.24/bin/wine-1.3.24 '/home/david/.areslinux/dosdevices/c:/Archivos de programa/Ares Linux 0.9/executable.exe'
Icon=1ACF_executable.0
Terminal=false
Type=Application
Categories=Application
StartupNotify=false
Name[es_ES]=Prueba1

it is running correctly. but when i use it in other pc, ever i need replace "user" I tried with $USER, $HOME and no work. I need other way.

I need to make shortcuts wine program with multiple wine versions with anyone.


other information:
I use the option of wine "install multiple wine installed" I installed it with normal user, no root. No need install mode root. :roll:
doh123
Level 8
Level 8
Posts: 1227
Joined: Tue Jul 14, 2009 1:21 pm

Post by doh123 »

I think... (but not sure)... that your problem using $USER comes from using single quotes ( 'single quotes' ). You cannot use variables with those... modify the string to not use them and $USER will probably work fine.
User avatar
kuboode
Level 1
Level 1
Posts: 5
Joined: Tue Jan 17, 2012 9:29 pm

I tried

Post by kuboode »

doh123 :thanks, but if I delete the "single quotes" all program does not run :cry:
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: I tried

Post by dimesio »

kuboode wrote:doh123 :thanks, but if I delete the "single quotes" all program does not run :cry:
Use double quotes.
User avatar
kuboode
Level 1
Level 1
Posts: 5
Joined: Tue Jan 17, 2012 9:29 pm

Re: I tried

Post by kuboode »

dimesio wrote:
kuboode wrote:doh123 :thanks, but if I delete the "single quotes" all program does not run :cry:
Use double quotes.
:cry: same history; don't run
landeel
Level 2
Level 2
Posts: 34
Joined: Sun May 18, 2008 11:49 am

Post by landeel »

Code: Select all

#!/bin/bash
PATH="/home/user/.PlayOnLinux/WineVersions/1.1.39-vertexblender/usr/bin/:$PATH"
export WINEPREFIX="/home/user/.PlayOnLinux/wineprefix/winepsuai"
export WINEDEBUG="-all"
cd "/d/Jogos/psu/PHANTASY STAR UNIVERSE Illuminus"
wine "/d/Jogos/psu/PHANTASY STAR UNIVERSE Illuminus/PsuIlluminus-noGG.exe"
Well, this is PlayOnLinux's method. I think you have to change the PATH first.
User avatar
kuboode
Level 1
Level 1
Posts: 5
Joined: Tue Jan 17, 2012 9:29 pm

Post by kuboode »

landeel wrote:

Code: Select all

#!/bin/bash
PATH="/home/user/.PlayOnLinux/WineVersions/1.1.39-vertexblender/usr/bin/:$PATH"
export WINEPREFIX="/home/user/.PlayOnLinux/wineprefix/winepsuai"
export WINEDEBUG="-all"
cd "/d/Jogos/psu/PHANTASY STAR UNIVERSE Illuminus"
wine "/d/Jogos/psu/PHANTASY STAR UNIVERSE Illuminus/PsuIlluminus-noGG.exe"
Well, this is PlayOnLinux's method. I think you have to change the PATH first.
-------------------------------------------
Thanks I will try it. Only to clarify the instructions in my example, it is a archive.desktop i need without putting the user. Sorry my english is bad :roll:
Locked