LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 11-11-2013, 09:15 AM   #1
pospichalales
LQ Newbie
 
Registered: Nov 2013
Posts: 1

Rep: Reputation: Disabled
Wine multiple users installation - App cannot find some files


I used these commands to restrict Wine, so standard users will not be able to run or install any app with Wine. They will be able to run predefined apps under another identity. It is something like Wine configuration for multiple users.

Code:
sudo groupadd wine
sudo chgrp wine /usr/bin/wine
sudo chgrp wine /usr/bin/wine64
sudo chgrp wine /usr/bin/winedbg
sudo chmod u=rwx,g=rx,o=r /usr/bin/wine
sudo chmod u=rwx,g=rx,o=r /usr/bin/wine64
sudo chmod u=rwx,g=rx,o=r /usr/bin/winedbg
sudo adduser --disabled-password windows
sudo usermod -aG wine windows

sudo visudo
%domain_users   ALL=(windows) NOPASSWD: /winescr
If user runs
Code:
sudo -u windows /winescr
and the script contains
Code:
#/bin/bash
/usr/bin/wine start /Unix /programy/Terasoft/MATEM/MATEM1.exe
He gets error - /
Code:
home/$user/.wine : Permission denied
, app does not start.

If user runs
Code:
sudo -u windows /winescr
and the script contains
Code:
#/bin/bash
env WINEPREFIX"/home/windows/.wine" /usr/bin/wine start /Unix /programy/Terasoft/MATEM/MATEM1.exe
He gets these errors but app starts but gives error Cannot find LCF.inf. This file is located in same dir as executable file.
Code:
err:menubuilder:convert_to_native_icon error 0x80070005 creating output file L"Z:\\home\\x1\\.local\\share\\icons\\hicolor\\16x16\\apps\\A35F_hh.0.png"
err:menubuilder:convert_to_native_icon error 0x80070005 creating output file L"Z:\\home\\x1\\.local\\share\\icons\\hicolor\\32x32\\apps\\A35F_hh.0.png"
err:menubuilder:convert_to_native_icon error 0x80070005 creating output file L"Z:\\home\\x1\\.local\\share\\icons\\hicolor\\48x48\\apps\\A35F_hh.0.png"
err:menubuilder:write_freedesktop_mime_type_entry error writing file /home/x1/.local/share/mime/packages/x-wine-extension-cpl.xml
err:menubuilder:write_freedesktop_mime_type_entry error writing file /home/x1/.local/share/mime/packages/x-wine-extension-dib.xml
err:menubuilder:write_freedesktop_mime_type_entry error writing file /home/x1/.local/share/mime/packages/x-wine-extension-dll.xml
err:menubuilder:convert_to_native_icon error 0x80070005 creating output file L"Z:\\home\\x1\\.local\\share\\icons\\hicolor\\256x256\\apps\\7596_iexplore.0.png"
err:menubuilder:convert_to_native_icon error 0x80070005 creating output file L"Z:\\home\\x1\\.local\\share\\icons\\hicolor\\48x48\\apps\\7596_iexplore.0.png"
err:menubuilder:convert_to_native_icon error 0x80070005 creating output file L"Z:\\home\\x1\\.local\\share\\icons\\hicolor\\32x32\\apps\\7596_iexplore.0.png"
err:menubuilder:convert_to_native_icon error 0x80070005 creating output file L"Z:\\home\\x1\\.local\\share\\icons\\hicolor\\16x16\\apps\\7596_iexplore.0.png"
err:menubuilder:convert_to_native_icon error 0x80070005 creating output file L"Z:\\home\\x1\\.local\\share\\icons\\hicolor\\256x256\\apps\\4137_winhlp32.0.png"
err:menubuilder:convert_to_native_icon error 0x80070005 creating output file L"Z:\\home\\x1\\.local\\share\\icons\\hicolor\\32x32\\apps\\4137_winhlp32.0.png"
err:menubuilder:convert_to_native_icon error 0x80070005 creating output file L"Z:\\home\\x1\\.local\\share\\icons\\hicolor\\48x48\\apps\\4137_winhlp32.0.png"
err:menubuilder:convert_to_native_icon error 0x80070005 creating output file L"Z:\\home\\x1\\.local\\share\\icons\\hicolor\\16x16\\apps\\4137_winhlp32.0.png"
err:menubuilder:write_freedesktop_mime_type_entry error writing file /home/x1/.local/share/mime/packages/x-wine-extension-htc.xml
err:menubuilder:convert_to_native_icon error 0x80070005 creating output file L"Z:\\home\\x1\\.local\\share\\icons\\hicolor\\16x16\\apps\\7765_winebrowser.0.png"
err:menubuilder:convert_to_native_icon error 0x80070005 creating output file L"Z:\\home\\x1\\.local\\share\\icons\\hicolor\\32x32\\apps\\7765_winebrowser.0.png"
err:menubuilder:convert_to_native_icon error 0x80070005 creating output file L"Z:\\home\\x1\\.local\\share\\icons\\hicolor\\48x48\\apps\\7765_winebrowser.0.png"
err:menubuilder:convert_to_native_icon error 0x80070005 creating output file L"Z:\\home\\x1\\.local\\share\\icons\\hicolor\\16x16\\apps\\7765_winebrowser.0.png"
err:menubuilder:convert_to_native_icon error 0x80070005 creating output file L"Z:\\home\\x1\\.local\\share\\icons\\hicolor\\32x32\\apps\\7765_winebrowser.0.png"
err:menubuilder:convert_to_native_icon error 0x80070005 creating output file L"Z:\\home\\x1\\.local\\share\\icons\\hicolor\\48x48\\apps\\7765_winebrowser.0.png"
err:menubuilder:write_freedesktop_mime_type_entry error writing file /home/x1/.local/share/mime/packages/x-wine-extension-inf.xml
err:menubuilder:write_freedesktop_mime_type_entry error writing file /home/x1/.local/share/mime/packages/x-wine-extension-ini.xml
err:menubuilder:convert_to_native_icon error 0x80070005 creating output file L"Z:\\home\\x1\\.local\\share\\icons\\hicolor\\256x256\\apps\\1E64_notepad.0.png"
err:menubuilder:convert_to_native_icon error 0x80070005 creating output file L"Z:\\home\\x1\\.local\\share\\icons\\hicolor\\48x48\\apps\\1E64_notepad.0.png"
err:menubuilder:convert_to_native_icon error 0x80070005 creating output file L"Z:\\home\\x1\\.local\\share\\icons\\hicolor\\32x32\\apps\\1E64_notepad.0.png"
err:menubuilder:convert_to_native_icon error 0x80070005 creating output file L"Z:\\home\\x1\\.local\\share\\icons\\hicolor\\16x16\\apps\\1E64_notepad.0.png"
err:menubuilder:convert_to_native_icon error 0x80070005 creating output file L"Z:\\home\\x1\\.local\\share\\icons\\hicolor\\16x16\\apps\\application-x-wine-extension-its.png"
err:menubuilder:convert_to_native_icon error 0x80070005 creating output file L"Z:\\home\\x1\\.local\\share\\icons\\hicolor\\32x32\\apps\\application-x-wine-extension-its.png"
err:menubuilder:convert_to_native_icon error 0x80070005 creating output file L"Z:\\home\\x1\\.local\\share\\icons\\hicolor\\48x48\\apps\\application-x-wine-extension-its.png"
err:menubuilder:write_freedesktop_mime_type_entry error writing file /home/x1/.local/share/mime/packages/x-wine-extension-its.xml
err:menubuilder:write_freedesktop_mime_type_entry error writing file /home/x1/.local/share/mime/packages/x-wine-extension-jfif.xml
err:menubuilder:convert_to_native_icon error 0x80070005 creating output file L"Z:\\home\\x1\\.local\\share\\icons\\hicolor\\256x256\\apps\\7596_iexplore.0.png"
err:menubuilder:convert_to_native_icon error 0x80070005 creating output file L"Z:\\home\\x1\\.local\\share\\icons\\hicolor\\48x48\\apps\\7596_iexplore.0.png"
err:menubuilder:convert_to_native_icon error 0x80070005 creating output file L"Z:\\home\\x1\\.local\\share\\icons\\hicolor\\32x32\\apps\\7596_iexplore.0.png"
err:menubuilder:convert_to_native_icon error 0x80070005 creating output file L"Z:\\home\\x1\\.local\\share\\icons\\hicolor\\16x16\\apps\\7596_iexplore.0.png"
err:menubuilder:convert_to_native_icon error 0x80070005 creating output file L"Z:\\home\\x1\\.local\\share\\icons\\hicolor\\256x256\\apps\\7596_iexplore.0.png"
err:menubuilder:convert_to_native_icon error 0x80070005 creating output file L"Z:\\home\\x1\\.local\\share\\icons\\hicolor\\48x48\\apps\\7596_iexplore.0.png"
err:menubuilder:convert_to_native_icon error 0x80070005 creating output file L"Z:\\home\\x1\\.local\\share\\icons\\hicolor\\32x32\\apps\\7596_iexplore.0.png"
err:menubuilder:convert_to_native_icon error 0x80070005 creating output file L"Z:\\home\\x1\\.local\\share\\icons\\hicolor\\16x16\\apps\\7596_iexplore.0.png"
err:menubuilder:convert_to_native_icon error 0x80070005 creating output file L"Z:\\home\\x1\\.local\\share\\icons\\hicolor\\256x256\\apps\\7596_iexplore.0.png"
err:menubuilder:convert_to_native_icon error 0x80070005 creating output file L"Z:\\home\\x1\\.local\\share\\icons\\hicolor\\48x48\\apps\\7596_iexplore.0.png"
err:menubuilder:convert_to_native_icon error 0x80070005 creating output file L"Z:\\home\\x1\\.local\\share\\icons\\hicolor\\32x32\\apps\\7596_iexplore.0.png"
err:menubuilder:convert_to_native_icon error 0x80070005 creating output file L"Z:\\home\\x1\\.local\\share\\icons\\hicolor\\16x16\\apps\\7596_iexplore.0.png"
err:menubuilder:convert_to_native_icon error 0x80070005 creating output file L"Z:\\home\\x1\\.local\\share\\icons\\hicolor\\256x256\\apps\\7596_iexplore.0.png"
err:menubuilder:convert_to_native_icon error 0x80070005 creating output file L"Z:\\home\\x1\\.local\\share\\icons\\hicolor\\48x48\\apps\\7596_iexplore.0.png"
err:menubuilder:convert_to_native_icon error 0x80070005 creating output file L"Z:\\home\\x1\\.local\\share\\icons\\hicolor\\32x32\\apps\\7596_iexplore.0.png"
err:menubuilder:convert_to_native_icon error 0x80070005 creating output file L"Z:\\home\\x1\\.local\\share\\icons\\hicolor\\16x16\\apps\\7596_iexplore.0.png"
err:menubuilder:write_freedesktop_mime_type_entry error writing file /home/x1/.local/share/mime/packages/x-wine-extension-lnk.xml
err:menubuilder:convert_to_native_icon error 0x80070005 creating output file L"Z:\\home\\x1\\.local\\share\\icons\\hicolor\\256x256\\apps\\application-x-wine-extension-msp.png"
err:menubuilder:convert_to_native_icon error 0x80070005 creating output file L"Z:\\home\\x1\\.local\\share\\icons\\hicolor\\32x32\\apps\\application-x-wine-extension-msp.png"
err:menubuilder:convert_to_native_icon error 0x80070005 creating output file L"Z:\\home\\x1\\.local\\share\\icons\\hicolor\\48x48\\apps\\application-x-wine-extension-msp.png"
err:menubuilder:convert_to_native_icon error 0x80070005 creating output file L"Z:\\home\\x1\\.local\\share\\icons\\hicolor\\16x16\\apps\\application-x-wine-extension-msp.png"
err:menubuilder:write_freedesktop_mime_type_entry error writing file /home/x1/.local/share/mime/packages/x-wine-extension-msp.xml
err:menubuilder:convert_to_native_icon error 0x80070005 creating output file L"Z:\\home\\x1\\.local\\share\\icons\\hicolor\\256x256\\apps\\7596_iexplore.0.png"
err:menubuilder:convert_to_native_icon error 0x80070005 creating output file L"Z:\\home\\x1\\.local\\share\\icons\\hicolor\\48x48\\apps\\7596_iexplore.0.png"
err:menubuilder:convert_to_native_icon error 0x80070005 creating output file L"Z:\\home\\x1\\.local\\share\\icons\\hicolor\\32x32\\apps\\7596_iexplore.0.png"
err:menubuilder:convert_to_native_icon error 0x80070005 creating output file L"Z:\\home\\x1\\.local\\share\\icons\\hicolor\\16x16\\apps\\7596_iexplore.0.png"
err:menubuilder:convert_to_native_icon error 0x80070005 creating output file L"Z:\\home\\x1\\.local\\share\\icons\\hicolor\\256x256\\apps\\2EF4_wordpad.0.png"
err:menubuilder:convert_to_native_icon error 0x80070005 creating output file L"Z:\\home\\x1\\.local\\share\\icons\\hicolor\\48x48\\apps\\2EF4_wordpad.0.png"
err:menubuilder:convert_to_native_icon error 0x80070005 creating output file L"Z:\\home\\x1\\.local\\share\\icons\\hicolor\\32x32\\apps\\2EF4_wordpad.0.png"
err:menubuilder:convert_to_native_icon error 0x80070005 creating output file L"Z:\\home\\x1\\.local\\share\\icons\\hicolor\\16x16\\apps\\2EF4_wordpad.0.png"
err:menubuilder:convert_to_native_icon error 0x80070005 creating output file L"Z:\\home\\x1\\.local\\share\\icons\\hicolor\\256x256\\apps\\1E64_notepad.0.png"
err:menubuilder:convert_to_native_icon error 0x80070005 creating output file L"Z:\\home\\x1\\.local\\share\\icons\\hicolor\\48x48\\apps\\1E64_notepad.0.png"
err:menubuilder:convert_to_native_icon error 0x80070005 creating output file L"Z:\\home\\x1\\.local\\share\\icons\\hicolor\\32x32\\apps\\1E64_notepad.0.png"
err:menubuilder:convert_to_native_icon error 0x80070005 creating output file L"Z:\\home\\x1\\.local\\share\\icons\\hicolor\\16x16\\apps\\1E64_notepad.0.png"
err:menubuilder:convert_to_native_icon error 0x80070005 creating output file L"Z:\\home\\x1\\.local\\share\\icons\\hicolor\\16x16\\apps\\1CD8_rundll32.0.png"
err:menubuilder:convert_to_native_icon error 0x80070005 creating output file L"Z:\\home\\x1\\.local\\share\\icons\\hicolor\\32x32\\apps\\1CD8_rundll32.0.png"
err:menubuilder:convert_to_native_icon error 0x80070005 creating output file L"Z:\\home\\x1\\.local\\share\\icons\\hicolor\\48x48\\apps\\1CD8_rundll32.0.png"
err:menubuilder:write_freedesktop_mime_type_entry error writing file /home/x1/.local/share/mime/packages/x-wine-extension-vbs.xml
err:menubuilder:convert_to_native_icon error 0x80070005 creating output file L"Z:\\home\\x1\\.local\\share\\icons\\hicolor\\256x256\\apps\\2EF4_wordpad.0.png"
err:menubuilder:convert_to_native_icon error 0x80070005 creating output file L"Z:\\home\\x1\\.local\\share\\icons\\hicolor\\48x48\\apps\\2EF4_wordpad.0.png"
err:menubuilder:convert_to_native_icon error 0x80070005 creating output file L"Z:\\home\\x1\\.local\\share\\icons\\hicolor\\32x32\\apps\\2EF4_wordpad.0.png"
err:menubuilder:convert_to_native_icon error 0x80070005 creating output file L"Z:\\home\\x1\\.local\\share\\icons\\hicolor\\16x16\\apps\\2EF4_wordpad.0.png"
err:menubuilder:convert_to_native_icon error 0x80070005 creating output file L"Z:\\home\\x1\\.local\\share\\icons\\hicolor\\16x16\\apps\\7765_winebrowser.0.png"
err:menubuilder:convert_to_native_icon error 0x80070005 creating output file L"Z:\\home\\x1\\.local\\share\\icons\\hicolor\\32x32\\apps\\7765_winebrowser.0.png"
err:menubuilder:convert_to_native_icon error 0x80070005 creating output file L"Z:\\home\\x1\\.local\\share\\icons\\hicolor\\48x48\\apps\\7765_winebrowser.0.png"
The databases in [/home/x1/.local/share/applications] could not be updated.
And if user runs
Code:
sudo -u windows -H /winescr
and the script contains
Code:
#/bin/bash
/usr/bin/wine start /Unix /programy/Terasoft/MATEM/MATEM1.exe
He does not get any error to his terminal, app starts but there is same error that Cannot find LCF.inf

What can cause that app cannot find LCF.inf located in same directory? Permissions are correct and if I run app with standard Wine, there is no problem.

Last edited by pospichalales; 11-11-2013 at 09:16 AM. Reason: typo
 
Old 11-15-2013, 10:01 AM   #2
Bill Gates 666
Member
 
Registered: Dec 2003
Location: Cambridge
Distribution: Arch
Posts: 66

Rep: Reputation: 22
Uhhmm fun times with Wine!

Your script will not work...
Code:
#! /bin/bash
/usr/bin/wine start /Unix /programy/Terasoft/MATEM/MATEM1.exe
as you have not set the working directory for Wine...

I would do something lazy like...
Code:
#! /bin/bash
cd "/home/windows/.wine/drive_c/Program Files/Terasoft/MATEM/"
/usr/bin/wine MATEM1.exe
(please correct paths for your locale/install)

Btw $user should be $USER - if you are talking about referencing Environment variables in your shell script...

I would get your feet wet with Wine gently! Don't walk before you can run, etc. You're clearly trying the "rather advanced stuff" before even understanding the basics about how to use Wine...

All the best...
Mr Bill
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
linux find to find files with multiple patterns subu_s Programming 6 12-15-2010 12:15 AM
Single find command to find multiple files? thok Linux - Newbie 7 01-31-2009 04:45 PM
Wine and app installation Galaxy_Stranger Linux - Software 2 12-07-2008 05:22 PM
Wine installation; Can't find ~/.wine/config mrmcctt Linux - Software 5 10-11-2005 06:33 PM
What archiving app for Linux will do multiple files of the same name from X? t3gah Linux - Software 3 03-19-2005 04:42 AM


All times are GMT -5. The time now is 08:05 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration