Wine not being given proper permissions?

Questions about Wine on Linux
Locked
Edward256
Level 2
Level 2
Posts: 12
Joined: Fri Apr 27, 2018 4:12 pm

Wine not being given proper permissions?

Post by Edward256 »

Hello.
Almost half a year ago I made a post asking why Wine wasn't working. I also submitted a bug report. After not getting much help I reinstalled the system with Debian 12 thinking Ubuntu had implemented something odd, but Wine refused to work then as well. I tried searching around and asking on a Discord server with little success. Wine managers like PlayOnLinux and Soda could not even launch winecfg. Actually, did Soda have that ability or was it built in? :| Well, Soda had the problem of not being able to launch programs in their "native folder" or run bat files (or sh with bats (yes, I do get that complicated)).

However, when I did the heinous thing of running "sudo winecfg" all went well. It did create a .wine folder in my root, but I got a GUI. CLI execs worked fine either way. This got me thinking that the latest distros have upped the security somewhat and Wine is not getting the permissions it needs to display a GUI of any kind. What do I need to do to make this work?

Note that even if the logs in the previous post are for Ubuntu (and older version of wine), running the same command lines in Debian produce practically identical results (finding a 1024 display, then the 1920 display, then trying to draw to the 1024 display). My fstab looks like this:

Code: Select all

# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda1 during installation
UUID=50617566-677d-4f2d-b278-bd97d99a2cfe /               ext4    errors=remount-ro 0       1
# /home was on /dev/sda7 during installation
UUID=3225b130-04f8-4190-a9e1-f3ebe5efafc8 /home           ext4    defaults        0       2
# swap was on /dev/sda5 during installation
UUID=4f79f2b8-b0ee-46fc-be22-2c477a42dbb3 none            swap    sw              0       0
# swap was on /dev/sdb5 during installation
UUID=54953a73-dc85-4ad8-96ae-6aa7e3bea622 none            swap    sw              0       0
/dev/sr0        /media/cdrom0   udf,iso9660 user,noauto     0       0

# Win Parts
# /dev/sda2 C:\
UUID=A03A04FA3A04CF6A /media/sda2     ntfs-3g    exec,permissions,auto  0       0
# /dev/sda8 E:\
UUID=078A40594387992A /media/sda8     ntfs-3g    exec,permissions,auto  0       0
# /dev/sdb7 H:\
UUID=18F7C0FB55E53731 /media/sdb7     ntfs-3g    exec,permissions,auto  0       0
.wine resides in home, and using ls the permissions for all files and folders inside .wine belong to me.

Code: Select all

drwxrwxr-x 131 edward edward   36864 Jun 24 10:13 .
drwxrwxr-x   2 edward edward    4096 Jun 24 09:53 dosdevices
drwxrwxr-x   7 edward edward    4096 Aug 17  2022 drive_c
-rw-r--r--   1 edward edward 7455694 Jun 24 09:55 system.reg
-rw-rw-r--   1 edward edward      12 Apr 14 09:34 .update-timestamp
-rw-r--r--   1 edward edward    3288 Jun 24 09:53 userdef.reg
-rw-r--r--   1 edward edward  527805 Jun 24 09:53 user.reg
-rw-rw-r--   1 edward edward     457 Nov  6  2022 winetricks.log
Where do I go from here?
User avatar
JoseskVolpe
Level 4
Level 4
Posts: 124
Joined: Sat Sep 04, 2021 9:35 pm

Re: Wine not being given proper permissions?

Post by JoseskVolpe »

Please paste the logs given by running winecfg as user
Edward256
Level 2
Level 2
Posts: 12
Joined: Fri Apr 27, 2018 4:12 pm

Re: Wine not being given proper permissions?

Post by Edward256 »

Code: Select all

:~$ winecfg
007c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
003c:err:service:process_send_start_message service L"PlugPlay" failed to start
003c:fixme:service:scmdatabase_autostart_services Auto-start service L"PlugPlay" failed to start: 1053
0054:err:sync:RtlpWaitForCriticalSection section 00006FFFFFCBC4A0 "dlls/ntdll/loader.c: loader_section" wait timed out in thread 0054, blocked by 0060, retrying (60 sec)
003c:err:service:process_send_command receiving command result timed out
003c:fixme:service:scmdatabase_autostart_services Auto-start service L"nsiproxy" failed to start: 1053
007c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
007c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
007c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
0118:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
0118:err:winediag:nodrv_CreateWindow L"The explorer process failed to start."
:~$ _
Also, I asked in a Discord server and someone mentioned that they had to use polkit to get hyperland working. I started looking and came across this guide for Fedora and tried to follow the steps as best as I could considering Fedora and Debian had things in different places and suddenly there was a revelation. Wine still did not work on my "owner account" but did work on a new user account. Yes, it did work under the user account "wineuser", but thought I'd see if I just created a new user account without all the other steps in between and it worked there as well. Still does not work under my main account even if I added myself to the "riskywork" group. Makes me wonder what I have from all this migration that a new user doesn't.
Edward256
Level 2
Level 2
Posts: 12
Joined: Fri Apr 27, 2018 4:12 pm

Re: Wine not being given proper permissions?

Post by Edward256 »

Well... Would you believe me that the problem was that it was struggling with the .fonts folder? For some reason I had duplicates in there. Chucking the folder somewhere else wine loaded "immediately". Bringing back it but not the Library folder that was inside got wine running after a bit, GUI and everything. Putting back the Library folder and removing the unsorted fonts got wine running after a slightly shorter bit. Now I wonder if it is possible to have wine only look for a select few fonts, or even not try to cache it all in one go?
Locked