Bottles icon indicating copy to clipboard operation
Bottles copied to clipboard

[Request] Allow running as non-admin user within wine by adjusting wine arguments

Open sochotnicky opened this issue 3 years ago • 9 comments

Is your feature request related to a problem? Please describe. Some installers close/bail if they notice they are being run as administrator. Wine has a "runas / trustlevel: 0x20000" switch which allows pretending that application is being run by non-admin but it's not the default.

I tried looking to see if there's any way to adjust parameters that wine binary is called with but could not find anything in the documentation.

Describe the solution you'd like A way to run applications as non-admin user within wine env (note obviously bottles/wine can be used by non-admins in Linux).

Ideally the configuration would be accessible from the UI

Describe alternatives you've considered Manual file tweak is acceptable to force some additional arguments for wine binary

Additional context One example application failing is http://client.beamdog.com/

I've used 3.1.1 flatpak

sochotnicky avatar Mar 24 '21 15:03 sochotnicky

Are you talking about the runas option? Ref: https://www.reddit.com/r/winehq/comments/asbg4l/install_software_on_wine_as_normal_user_not_as/

If the answer is yes, I add the option to Bottles v4.

mirkobrombin avatar Mar 24 '21 17:03 mirkobrombin

Correct, I was talking about runas. Thanks

On Wed, 24 Mar 2021, 18:10 Mirko Brombin, @.***> wrote:

Are you talking about the runas option? Ref: https://www.reddit.com/r/winehq/comments/asbg4l/install_software_on_wine_as_normal_user_not_as/

If the answer is yes, I add the option to Bottles v4.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/bottlesdevs/Bottles/issues/202#issuecomment-806004008, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAANTLSLQ7VNGQNCSIKG44DTFIMI3ANCNFSM4ZXPFCXQ .

sochotnicky avatar Mar 24 '21 17:03 sochotnicky

Ok this should be implemented in libwine https://github.com/bottlesdevs/libwine/issues/2

mirkobrombin avatar Mar 24 '21 17:03 mirkobrombin

Ping https://github.com/bottlesdevs/LibraryWine/issues/1

mirkobrombin avatar Jul 21 '21 20:07 mirkobrombin

Any update on this? I can't run XIVLauncher because it asks not to run the application as admin.

Steps to reproduce:

  1. Download Setup.exe from here: https://github.com/goatcorp/FFXIVQuickLauncher/releases/tag/6.2.44
  2. Run through Bottles

1player avatar Aug 13 '22 15:08 1player

Returning on this. I was facing some issues implementing the trustlevel, I have to investigate more

mirkobrombin avatar Aug 14 '22 17:08 mirkobrombin

I checked every runner available in Bottles and one one as the runas.exe executable. I've tested the one in Fedora repos and still no runas.exe. I have to build a custom runner (which is what I've done in the past for the same purpose) to test it.

In the meantime, if someone find a compatible runner, just launch the console in Bottles and try issuing runas /trustlevel:0x20000 installer.exe

mirkobrombin avatar Aug 24 '22 19:08 mirkobrombin

I'm looking for this feature as well. Unable to run Whatsapp installer because it's asking to be run as user, not administrator.

hugoender avatar Aug 27 '22 23:08 hugoender

I have the same problem as @hugoender with WhatsApp installer. When I try to install it raises an error message saying:

Installation has failed.
Please re-run this installer as a normal user instead of "Run as Administrator".

I tried to execute runas /trustlevel:0x20000 WhatsAppSetup.exe but I get an error:

Can't recognize 'runas /trustlevel:0x20000 WhatsAppSetup.exe' as an internal or external command, or batch script.

While we don't get the feature implemented, @mirkobrombin would you mind sharing how you build a custom runner? Did that fix the issue for you?

vmgustavo avatar Sep 11 '22 22:09 vmgustavo

I have the same problem, trying to use the Tidal desktop app but it wants to be ran as a normal user. runas is not available, I just installed Bottles from the Flatpak.

RossComputerGuy avatar Oct 02 '22 22:10 RossComputerGuy

Also having this issue with trying to use the Splice app. Cannot get runas working in any regard and need to run the installer as my user.

A-Cloud-Ninja avatar Oct 11 '22 20:10 A-Cloud-Ninja

@vmgustavo did you find how to run runas command?

kun-codes avatar Nov 08 '22 05:11 kun-codes

Unfortunately I did not. If you do find, please let me know

On Tue, Nov 8, 2022, 02:06 throwaway69420-69420 @.***> wrote:

@vmgustavo https://github.com/vmgustavo did you find how to run runas command?

— Reply to this email directly, view it on GitHub https://github.com/bottlesdevs/Bottles/issues/202#issuecomment-1306639491, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABO7CBTCKAIRX3CDPNNGGWLWHHNUDANCNFSM4ZXPFCXQ . You are receiving this because you were mentioned.Message ID: @.***>

vmgustavo avatar Nov 08 '22 10:11 vmgustavo

I'm experiencing the same problem with another installer. I've tried different combinations of options and OS versions, but with no success. As @vmgustavo noted, the runas command doesn't work either.

benthesheep avatar Nov 27 '22 14:11 benthesheep

This issue is blocking the installation of both Fork and SourceTree.

EvHaus avatar Feb 02 '23 04:02 EvHaus

This issue is blocking the installation of Microsoft Teams.

christian-taillon avatar Mar 21 '23 02:03 christian-taillon

This issue is blocking the installation of Tower.

rvizcaino80 avatar Mar 22 '23 16:03 rvizcaino80

The Issue is also blocking the Installation of the New TruckersMP-launcher

waschbaer2004 avatar Mar 24 '23 18:03 waschbaer2004

This issue is also blocking the installation of WhatsApp.

Prayag2 avatar Apr 13 '23 10:04 Prayag2

It's likely that every application that expects non-elevated priveleges is broken, there's no need to list every single one - hence locking to reduce noise.

As far as it seems, it's just a matter of having runas in a specific runner (though, I'm not sure if we can use some bundled runas for arbitrary runners), and exposing this option in the UI (maybe in the "Run with arguments..." submenu)

jannuary avatar Apr 13 '23 16:04 jannuary

To anybody reading this in the future: yes, it is a problem, and no, Bottles can't really do much to fix it right now if the runners themselves don't have support for it, as would appear to be the case judging from previous comments. It would be more appropriate to help fund those that are interested in and can work on this feature, both in Wine and Bottles, rather than saying "blocks the installation of X" over and over again.

orowith2os avatar Sep 27 '23 16:09 orowith2os