PDA

View Full Version : [all variants] How can I disable desktop effects before starting a game?



the8thstar
May 3rd, 2008, 03:45 PM
Hello,

I have installed Warcraft 3: ROR and TFT on my machine. The game runs fine under the lastest version of Wine. However, I'm experiencing terrible flicker artefacts when the desktop effects are on.

So, my question is: is there a way to get a script that does the following:

1. Turn desktop effects off
2. Start the game
3. Turn the effects back on when the game exits

Alternatively, is there a tweak to make everyone happy and keep playing with the desktop effects activated?

Thanks for your timely answer.

lswest
May 3rd, 2008, 03:48 PM
well, you can write a script that does this:
metacity --replace (kills compiz)
wine [game]
then you will have to figure out a way to tell it to run "compiz --replace" when the game ends, i'm not sure on how to do that.

the8thstar
May 3rd, 2008, 04:33 PM
Thanks lswest. I will try and put these instructions into an .sh file to see how I can roll these on.

lswest
May 3rd, 2008, 04:38 PM
no problem, and thanks for the thanks. But i'm not sure how well it would work in a script, since the metacity --replace keeps the terminal open, i'm not sure if you'll be able to run any commands after that. I just manually type it into a console when i start a game (i hardly ever do that though). Well, good luck, and maybe someone else on the forum who has more skills with BASH than i do can help you out.

hope it goes well,
Lswest

linfidel
May 3rd, 2008, 04:45 PM
no problem, and thanks for the thanks. But i'm not sure how well it would work in a script, since the metacity --replace keeps the terminal open, i'm not sure if you'll be able to run any commands after that. I just manually type it into a console when i start a game (i hardly ever do that though). Well, good luck, and maybe someone else on the forum who has more skills with BASH than i do can help you out.

Usually you can put a trailing ampersand to run the program in the background, like this:
metacity --replace&

Then, I believe, you can close the terminal and the program will continue to run.

lswest
May 3rd, 2008, 05:28 PM
Usually you can put a trailing ampersand to run the program in the background, like this:
metacity --replace&

Then, I believe, you can close the terminal and the program will continue to run.

hmm, that might solve the problem of trying to run multiple commands afterwards in the same terminal, silly me, i should have thought of that.

dondad
May 3rd, 2008, 07:29 PM
Hello,

I have installed Warcraft 3: ROR and TFT on my machine. The game runs fine under the lastest version of Wine. However, I'm experiencing terrible flicker artefacts when the desktop effects are on.

So, my question is: is there a way to get a script that does the following:

1. Turn desktop effects off
2. Start the game
3. Turn the effects back on when the game exits

Alternatively, is there a tweak to make everyone happy and keep playing with the desktop effects activated?

Thanks for your timely answer.



You could also install the compiz icon. It lets you select metacity/compiz as well as the decorator.

linfidel
May 3rd, 2008, 08:36 PM
hmm, that might solve the problem of trying to run multiple commands afterwards in the same terminal, silly me, i should have thought of that.
Sometimes the simple solutions are forgotten. :)