-
Notifications
You must be signed in to change notification settings - Fork 10.1k
Changes to make it run on Linux #2271
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
joshaber
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like a great start! Thanks so much @ptomato and @gengjiawen!
Run npm run prettify to prettify the files and I think this will be good to go.
Without this, you get the message "I dunno how to run on x64 :("
|
Sorry about that! Will do from now on. Here's an updated PR. |
|
Looks good, thanks again @ptomato! |
|
Can you do an AppImage too? That way it will run also where Flatpak is not installed. |
|
My understanding there was already an AppImage on @gengjiawen's fork. In any case, I'm really only interesting in packaging for Flatpak right now, but these improvements should help anyone else who wants to take on other packaging tasks. |
|
|
||
| if (__LINUX__) { | ||
| const commandArgs = ['--working-directory', fullPath] | ||
| return spawn('gnome-terminal', commandArgs, { shell: true }) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
The terminal part we can learn from vs code: https://github.com/Microsoft/vscode/blob/master/src/vs/workbench/parts/execution/electron-browser/terminalService.ts#L199. |
|
I've been unsuccesul trying to build this. I've tried to clean all my npm modules, install runas globally etc but no luck. Any clues? |
| // the process of setting everything up. We trust this is available, so | ||
| // don't worry about looking for it here. | ||
| if (__DARWIN__) { | ||
| // I decide linux user have git too :) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
@shiftkey Do you think we can make |
|
@gengjiawen without knowing about other use cases I'd rather it get refined and expanded on here (we've got #888 to tackle soon) before we extract, rather than doing it before it's ready. |
|
I mean I'm very late, but can't you simply use x-terminal-emulator? (x-terminal-emulator is configured by update-alternatives) It is at least on Ubuntu present and opens the preferred terminal and do the more complicated methods only, if not present? The problem with hard coding is that for example mate-terminal is not present although Ubuntu mate is a official distribution of Ubuntu. |
|
@cromefire Desktop is currently interested in displaying a list of shells that it can find on your machine for your convenience. Please read our documentation about how this currently works on Linux (as well as the other platforms). This issue was about changes to the whole app to make it work on Linux - we haven't really talked about "preferred shells" in any detail. Please read the documentation around our Linux testing effort as that explains the best place to leave additional feedback currently. |
|
Just meant because |
With these changes, I can run the app on Linux with
First two commits are taken from @gengjiawen's fork, but without the updates to the build process.