GithubHelp home page GithubHelp logo

Comments (8)

srigsby avatar srigsby commented on June 24, 2024 1

perhaps not useful but this is the alias I use for "opening XiEditor from the [cmd] line":

alias xi="open -a $HOME/xi-mac/build/Release/XiEditor.app"

from xi-mac.

OberstKrueger avatar OberstKrueger commented on June 24, 2024 1

Absent a smarter method of finding the location of XiEditor.app, the "/Applications" portion of the script can be left off. By default, "open -a" will search both /Applications and ~/Applications, and while I imagine most people will put it in the root Applications, there might be some who put it in the user Applications folder.

from xi-mac.

vlovich avatar vlovich commented on June 24, 2024

Are you saying eventually you want a terminal front-end or just the ability to invoke the Gui from the command-line? If it's the latter we can just package your script into the .app & on startup check for /usr/local/bin/xi - if missing copy it there.

from xi-mac.

cmyr avatar cmyr commented on June 24, 2024

@vlovich Right, I'm talking about essentially packaging this script; I had the idea that it might make sense to add various options, but that can be future work. I'm not sure how best we would go about installing this; we don't necessarily know the path to the XiEditor.app package. There's probably a way to figure this out, I don't really know much about the mac app install process...

from xi-mac.

WillCraig avatar WillCraig commented on June 24, 2024

I wanted to make a more detailed set of instructions for idiots like myself (Who took 4 hours to get this to work)
type open .profile in the terminal, put this in the .profile file

alias xi ="open /path/to/xieditor.app"

type source .profile after saving the text file

(*You can change the name of the alias to anything you want.

from xi-mac.

vlovich avatar vlovich commented on June 24, 2024

This is typically done on OSX by bundling the script into the .app & then offering an option to deploy it into /usr/local/bin if it's not present. Would be happy to accept a PR that does this.

from xi-mac.

jansol avatar jansol commented on June 24, 2024

In fact it's even smarter: it will remember the location of the .app if it has been launched before (which it has to be in #242) so it doesn't even have to be in Applications.

from xi-mac.

jansol avatar jansol commented on June 24, 2024

There's a menu item for installing the helper script mentioned in the OP now.

from xi-mac.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.