Topic locked

Full screen Wine applications (most useful for games)

User avatar Primoz
Moderator
Posts
859
Karma
1
OS
I don't know about you, but I had quite some problem with playing wine games in KDE as both plasma and Kwin interrupted my playing as sometimes when I scrolled I inadvertently changed desktop and scrolling down where I have a panel was slower.
Also you don't really need plasma or kwin running while plaing a game.
So I've edited .desktop file to start my game without plasma or kwin.

There are many way to get this done, I'll just describe how I did it.
(I think it's the best way, but that's just because that's how I like it)

So first make a new activity and set it to folderview. Then configure it to show your desktop folder.
Then just drag and drop from menu games you want to have on your desktop.
Or if you don't have them in just skip to next step.
So after that you edit or just create a new .desktop (it doesn't need the suffix) file on desktop.
In it write this (or just add):
Code: Select all
[Desktop Entry]
Comment[sl]=
Comment=
Exec=kquitapp plasma-desktop & kquitapp kwin && env WINEPREFIX="/home/user_name/.wine" wine "C:\path\to\windows\game\you\want" && plasma-desktop; kwin&
GenericName=
Icon=kde-windows
MimeType=
Name=name of the game
Path=/home/user_name/.wine/drive_c/path to folder in which .exe is
StartupNotify=false
Terminal=false
TerminalOptions=
Type=Application
X-DBUS-ServiceName=
X-DBUS-StartupType=
X-KDE-SubstituteUID=false
X-KDE-Username=


That should do it.
What this does it quits plasma and kwin before starting your game and starts them back when you quit your game.

I hope this will help anyone.


Primoz, proud to be a member of KDE forums since 2008-Nov.
kde-bertil
Registered Member
Posts
10
Karma
0
Hi, I tried:

kquitapp plasma-desktop & kquitapp kwin && env WINEPREFIX="/home/user_name/.wine" wine "C:\path\to\windows\game\you\want" && plasma-desktop; kwin&

and that makes the wine app not start. Nothing happens. Cursor just flickers briefly.

I also tried:

env WINEPREFIX="/home/user_name/.wine" wine "C:\path\to\windows\game\you\want" && kquitapp plasma-desktop && kquitapp kwin && plasma-desktop; kwin&

wine app starts but after exiting the app nothing happens.

On wine 5.0 and KDE neon 17.5

Any clues?
User avatar Mamarok
Manager
Posts
4849
Karma
12
OS
This does not belong here, this section is NOT for asking questions.

FWIW: you already asked in the Neon subforum, how about waiting for an answer?


Currently running Kubuntu 20.04, Plasma 5.18.5, Frameworks 5.68.0, Qt 5.12.8, kernel 5.4.0-42
FWIW: it is always useful to state the exact Plasma version and distribution when asking questions in this forum, makes it easier for us to help ...

 
Topic locked

Bookmarks



Who is online

Registered users: Baidu [Spider], bartoloni, Bing [Bot], Don B. Cilly, Google [Bot], Gregstrq, grosser, magkoc, martinknopp, mirass, mrvldmr, mutterhunt, orcuan, Sogou [Bot], Yahoo [Bot]