Mime types

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
Scotty
Level 1
Level 1
Posts: 7
Joined: Sun Mar 04, 2012 8:47 am

Mime types

Post by Scotty »

Its a very annoying behaviour of Wine to hack into my file handling. What the hell should I do with notepad when I open a text files? Just an example. Please don't start any Windows exe automatically. And please don't override my defaults!
Nevertheless, great application. Thanks a lot!
User avatar
dimesio
Moderator
Moderator
Posts: 13373
Joined: Tue Mar 25, 2008 10:30 pm

Re: Mime types

Post by dimesio »

Scotty
Level 1
Level 1
Posts: 7
Joined: Sun Mar 04, 2012 8:47 am

Re: Mime types

Post by Scotty »

Thank you. But please make it the default.
cotterandy
Newbie
Newbie
Posts: 2
Joined: Thu Feb 28, 2013 1:38 am

Re: Mime types

Post by cotterandy »

Scotty wrote:Thank you. But please make it the default.
Sounds like a good suggestion. I would have to agree with him. :)
etwineb
Level 4
Level 4
Posts: 101
Joined: Wed Dec 10, 2008 12:05 pm

Re: Mime types

Post by etwineb »

To reduce headaches I usually use two scripts, one to initialize a wine environment and another to start applications.

To initialize, just execute from the directory you want to install the Windows software:

Code: Select all

#!/bin/bash
set -e

STARTPWD="`readlink -e "$PWD"`"

export WINEPREFIX="$STARTPWD"/wine
export XDG_CONFIG_HOME="$WINEPREFIX"/xdg_conf
export XDG_DATA_HOME="$WINEPREFIX"/xdg_home
export XDG_CACHE_HOME="$WINEPREFIX"/xdg_cache
export WINEARCH=win32
export LC_ALL=C

wineboot -u
winetricks sandbox
About LC_ALL=C I set it because in my default local winetricks does not work well, you might not need it.


To start the application, copy this in the previous directory and change the last line to execute the program:

Code: Select all

#!/bin/bash
set -e

STARTPWD="`readlink -e "$PWD"`"

export WINEPREFIX="$STARTPWD"/wine
export XDG_CONFIG_HOME="$WINEPREFIX"/xdg_conf
export XDG_DATA_HOME="$WINEPREFIX"/xdg_home
export XDG_CACHE_HOME="$WINEPREFIX"/xdg_cache
export WINEARCH=win32
export LC_ALL=C

cd "$WINEPREFIX"/drive_c/APPLICATION
wine APP.EXE
Change the last line to "bash" if you need to prepare the environment for some Gold level application.
Locked