Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4100614
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T20:35:24+00:00 2026-05-20T20:35:24+00:00

I have been forced to work with a piece of Windows desktop software, so

  • 0

I have been forced to work with a piece of Windows desktop software, so I run it under Wine. I want an alias for my zshrc that will run Xquartz and wine /path/to/file.exe in one go.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T20:35:25+00:00Added an answer on May 20, 2026 at 8:35 pm

    I thought that X launched automatically if you just leave the DISPLAY at the default
    on my machine I see:

    $ echo $DISPLAY 
    /tmp/launch-WdPl5u/org.macosforge.xquartz:0
    

    That aside …

    I never used wine (so I don’t know if wine is installed as a Mac App or just an executable), So I am Not sure which is a better way

    function wineThis()
    {
        open -a /Applications/Utilities/XQuartz.app
        open -a PATH_TO_WINE.app ${1}
    }
    

    or

    function wineThis()
    {
        /Applications/Utilities/XQuartz.app/Contents/MacOS/X11.bin &
        disown
        wine ${1}  &
        disown
    }
    

    In both cases you should be able to do
    wineThis /path/to/file.exe
    in an alias or commandline

    I think the disowns are optional, and should allow you to exit the bash shell

    p.s. You could also do a hybrid (use open to launch X, then run wine in background (&) and disown)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been tasked to create a GUI program that is to work with
I have been forced to work in Visual Studio 2005 and would like to
Have been trying to encrypt an xml file to a string so that I
I have been asked by my boss at work to look into allowing widgets
well I have been trying to get Nivo Slider to work almost all day.
I'm forced to work with IE8 (8.0.7601.17514) and I have this simple page: <!DOCTYPE
I have been trying to find a collision avoidance example that I can adapt
I've got tables in Oracle that have been created with double quotes, in lowercase.
I have a simple select element that I want to set the value for
Have been working on this question for a couple hours and have come close

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.