Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
GitHub Desktop for Linux? #1525
Comments
|
@hamaminatu this is an excellent question! Currently our focus is on catching up to feature parity with the classic Desktop apps, and getting what we've built battle-tested, so I don't think this will be on our radar before we hit 1.0. However I'm not aware of any current technical blockers for supporting Electron on Linux distros:
We want to ensure a Linux version has the same high standard of quality as the other platforms we support, and given our lack of in-house expertise with the Linux ecosystem we'd love to get the community involved with this effort. So if you care to help us with knowledge, platform experience or testing, please upvote this issue or comment with how you can help! We can also open in the interim to lay this groundwork, like #273, so we can steadily move towards this goal. |
shiftkey
added
the
enhancement
label
May 17, 2017
cruzerld
commented
May 17, 2017
|
I'm a Linux / Windows / Mac desktop dev and i have some expertise in a few different ways of setting up apt and rpm repos. I've set some up manually on S3 and have used Artifactory to host repos as well. I feel like most node / electron tools pretty much stopped at building the .deb and .rpm so if interested maybe I can build a package or two to help out there? I've also built an .arch package in the past but that was a while back. |
|
For the packaging part, you should also consider appimages, snaps or flatpaks to support multiple distributions with a single package. |
introwit
commented
May 17, 2017
|
Have used the GitHub desktop app for windows for quite a long time before switching to Ubuntu this year, so I could help with testing it out on Linux and give my feedback whether it's the same experience and how the app performance is compared to the other platform versions. |
shiftkey
added
the
future-proposal
label
May 17, 2017
|
Tagging this as |
hanjiexi
commented
May 17, 2017
GNOME HIG: https://developer.gnome.org/hig/stable/ Electron-based apps tend to work the same on all desktops, but if you do want to know where to focus your efforts, I suggest making sure it works great on GNOME, since that is the default (or will be soon) for the two most popular and commercially-supported distributions (Ubuntu and Fedora) as well as for Debian. |
joshaber
changed the title from
Github Desktop for Linux???
to
Github Desktop for Linux?
May 17, 2017
|
I got it working on my system! (Debian GNU/Linux 9) I have never used Electron before and have very little experience with Node, so it took some workarounds. You can check the work in progress in my fork. There's still lots of stuff to do but it works! |
prijindal
commented
May 17, 2017
|
@picandocodigo |
lilianmoraru
commented
May 17, 2017
|
People seem to report of it working. |
|
I'm a Ubuntu user and would love you contribute and test the Linux version. At least I can then remove the slow Win10 (VM) I currently use for contribution |
prajapati-parth
commented
May 18, 2017
•
@ziggy42 VS Code is open sourced. We could use that for packing reference.
@hanjiexi Agreed. Also GitKraken is an excellent example for this. |
|
@prajapati-parth I'm fine with Anyway, as long as you don't only ship debs, I'm fine |
ankibalyan
commented
May 18, 2017
|
I'm also a ubuntu user, would love to see github on linux, also I'd like to go from 0.1 stage itself for testing. |
|
I have use travis ci to build github linux client, anyone interested can give it a try. Binary download : https://github.com/gengjiawen/desktop/releases. |
joshaber
changed the title from
Github Desktop for Linux?
to
GitHub Desktop for Linux?
May 18, 2017
hron84
commented
May 18, 2017
|
@gengjiawen the 0.5.4 release has no binary. What is the difference between alpha2 and final 0.5.4? |
hron84
commented
May 19, 2017
|
Also, I wanna state here 0.5.4-alpha2 is works like a charm. I just downloaded yesterday, but can't wait to be GitHub officially on Linux. |
|
@hron84 Use the alpha version, since the linux version has not been fully tested. The 0.5.4 tag is not what i want, but github dont allow you to delete a tag release, just ignore it. |
hron84
commented
May 19, 2017
|
@gengjiawen OK, thanks for the reply. Random tips: ship an icon with deb-rpm files, and also add a |
|
You can fork my repo and change it (branch ci_build). The config file is the root package.json. And if you want other linux distro, you can config this file too. I hope Github desktop team will consider switch to electron builder.Because with electron builder we can use travis ci and appveyor to build multi platform binary. |
hron84
commented
May 19, 2017
|
@gengjiawen next week i will check it out. |
hamaminatu
commented
May 23, 2017
|
hope it will available in AUR too |
ankibalyan
commented
May 23, 2017
|
@gengjiawen tried |
kleinen
commented
May 23, 2017
|
Seems I am getting hung up on 2FA code entry when connecting to Github Enterprise. Works on Windows/Mac just fine, but Linux seems to never finish verifying the code. If anyone wants any data or info, let me know what you want me to gather (and how to get it since I am not experienced in the ways of Electron/Node). |
kleinen
commented
May 23, 2017
|
I would also be a huge proponent for this feature as an enterprise customer that would like to have this for 300+ people. I've been working my account rep to see if they can help drive the priority of this. |
lypborges
commented
May 24, 2017
•
|
@picandocodigo I tried your fork last night. But didn't work. I think it's because I'm using node x64 arch or maybe I'm missing something.
I'll keep trying, but If you have any tips. Tks |
kleinen
commented
May 24, 2017
|
My company recently upgraded to v2.9. |
|
@kleinen please open a new issue with as much information as you can provide so we can investigate further... |
referenced
this issue
in picandocodigo/desktop
May 24, 2017
|
@lypborges I am running x64 too. I used to see that same error at first but solved it somehow along the way. Try updating the branch and running By the way, I'm constantly updating my |
lypborges
commented
May 24, 2017
|
@picandocodigo I was running on the wrong branch...uihauihaui. Tks. |
kleinen
commented
May 24, 2017
rlabrecque
commented
May 25, 2017
|
I don't use linux much but should |
hron84
commented
May 25, 2017
|
@kleinen Alpha works on Ubuntu 16.04.2, even with MFA |
probonopd
commented
May 26, 2017
|
@gengjiawen thanks for the AppImage, works for me on Ubuntu 16.04. |
liberodark
commented
May 29, 2017
|
Please make a linux version ! |
probonopd
commented
May 29, 2017
|
Providing an AppImage would have, among others, these advantages:
Here is an overview of projects that are already distributing upstream-provided, official AppImages. |
solinium
commented
Jun 2, 2017
•
|
Thanks @gengjiawen |
hron84
commented
Jun 4, 2017
|
@probonopd There is no need to advertise Even if you had good intentions with that comment, it bothers others and also very offtopic relating to this issue because at this time the Linux version of this software is simply non-existent, thus there is nothing to package. So please, skip these comments next time. Thanks. |
probonopd
commented
Jun 4, 2017
Sorry @hron84 but I have to disagree. In fact @gengjiawen has shown that it is entirely feasible to produce a working Github Desktop for Linux. He even provides a working Linux AppImage for download on https://github.com/gengjiawen/desktop/releases (albeit not yet size-optimized).
I hope that they have a look on the work @gengjiawen has done. |
hron84
commented
Jun 4, 2017
|
Yeah, @gengjiawen working on a Linux version of GitHub Linux, but this issue is at @github's own issue tracker and not in @gengjiawen's one. Your comment is still offtopic here. If you want to suggest something to @gengjiawen, you can simply try to contact him/her. GitHub issues are not a forum topics and not a messaging platforms. All developers here try to keep the topic directly related to the issue. Suggesting a packaging platform is OK if you just say "Hey, use AppImage, here's a link to it", but writing a marketing-smelling comment to an issue is nothing but advertising what is - I think - not what are GitHub issues are for. I hope everything you wrote here can be found on the AppImage's homepage, thus needless to copy-paste its content. |
probonopd
commented
Jun 4, 2017
|
I am directly staying on topic "Please make Github Desktop available for linux user", suggesting a potential solution, and gave reasons why I think this would be a good idea. |
greggwon
commented
Jun 9, 2017
|
I guess I would ask a different question and point in a different direction. Why hasn't Java been considered as a much more portable way to get a great desktop app working across a wide range of environments? |
kleinen
commented
Jun 15, 2017
|
@greggwon I very much find the java subject interesting and conversation-worthy, but maybe that would be a good point to break that out into another issue asking for a java-based client. Then we can discuss that as its a larger scope than just "need to get electron's support for linux to work". |
|
We're happy to review and accept pull requests adding Linux support |
|
We've also been working on issues with the dependencies that Desktop needs for Linux support:
|
|
@brunofin They've already mentioned they don't have in-house expertise, and from a business point of view it probably doesn't make sense for them to spend resources for Linux. As a Linux user myself I'm not even using the app, I feel comfortable with the command line. But it'll be nice to have the tool available on Linux. I would suggest those of us who've been tinkering with it to join forces. We know the app runs, but following steps could be: 1 - Make sure we make the tests running properly. Unit tests pass on my setup, but integration tests fail. Once we get that working we can make a Pull Request. As they mentioned, we haven't really submitted Pull Requests with our stuff, and they're open to supporting Linux. So don't get mad at them, let's all just work together to get this moving forward |
I have a branch lying around that I started as a hack project that takes care of both of these: shiftkey#1. This only addresses the build and test steps. I think the packaging changes that are necessary are the biggest bit of work that we need to size up ( |
|
@brunofin Please keep in mind we're all just people here, doing our best. There's no need to antagonize. |
joshaber
added
help wanted
and removed
future-proposal
labels
Jun 29, 2017
|
Here's a pull request for Linux support: #2271 I'm doing this with the end goal in mind of submitting a recipe to @flathub in order to make the app available as a Flatpak package. Here's my initial attempt at packaging it: endlessm/github-desktop-flatpak#1 |
|
I've been having some troubles running my Linux branch since we upgrade to Electron 1.7.5 in #2582 - app refuses to launch, not seeing any errors on the terminal. Has anyone else seen this? cc @gengjiawen |
|
@shiftkey Yes, I notice this too, but I have not got time to figure it why. |
|
@gengjiawen thanks for confirming. Once this release settles down I'll trace it to whether it's something in Electron, a new dependency that needs to be installed, or something in how Desktop is being packaged and launched. |
|
I tried Windows and Mac too, they works fine. Though integration test failed on travis ci. |
|
@shiftkey Maybe a bug in code, I replaced the Update:
I found a Fix: change code try {
const editors = await getAvailableEditors()
if (editors.length) {
const value = editors[0].editor
// store this value to avoid the lookup next time
localStorage.setItem(externalEditorKey, value)
return value
}
} catch (e) {
console.log(e)
}
|
|
@goldenfreemanchina part of your comment was deleted as a violation of the Desktop Code of Conduct as it is unprofessional conduct. You may consider this an official warning. |
KristijanZic
commented
Sep 20, 2017
|
Why don't you get in touch with the Ubuntu Snappy team? I'm sure they would be willing to assist you in packaging github-desktop as a snap package. You should open a topic on the forums at https://snapcraft.io/ |
|
Nice spot @gengjiawen!
I think this is related to showing the main window after the content has been rendered (rather than showing a blank window initially): 2a591c8 That fits with the "cannot resolve editors" error you also found, as I think that code path is part of setting up the initial state, which would then prevent the renderer from raising the Let's see if I can put together a fix for that to return an empty list rather than erroring... EDIT: #2807 should get this back to a happy place |
zackeezy
commented
Sep 27, 2017
|
@picandocodigo I am trying to run your branch in Linux Mint 18.1 but it keeps getting stuck at
And when I tried to run |
zackeezy
commented
Sep 27, 2017
|
@picandocodigo So could i try to build this branch for linux, theoretically? |
|
@zackeezy @picandocodigo please try the latest
If you are encountering a specific error, I can probably help with getting to the bottom of that. |
zackeezy
commented
Sep 27, 2017
|
Wow it worked. It opened with the developer tools open for some reason, but yea, it works. My only question now is how to have it runnable from the start menu. |
zackeezy
commented
Sep 27, 2017
|
@shiftkey I'm just happy I have the gui version on my computer now. I use a bash script to run Minecraft and several other programs so I won't be too upset if I have to set one up for Github Desktop, too. |
cbluth
commented
Sep 28, 2017
|
RE: #1525 (comment) |
zackeezy
commented
Sep 28, 2017
|
@cbluth I cloned the repo from command line. Doing so and then doing what he said makes it work. |
|
@cbluth that's likely due to us embedding the SHA in the webpack configuration - we recommend working from a clone of the repository. |
|
Maybe that should use |
probonopd
commented
Oct 1, 2017
•
@shiftkey: @gengjiawen has a working automated packaging process for making AppImages since May 18, perhaps you might consider upstreaming this. |
|
@probonopd please see #2300 which is our ongoing discussion about this |
qrkourier
commented
Oct 6, 2017
•
|
I had to do
I also nuked and re-cloned the repo because there were some errors that I suspect were caused by building modules with different versions of Node. It worked with v8.6.0. |
Croydon
commented
Oct 6, 2017
|
I also had to install libsecret and a few others libraries on Fedora+KDE. |
|
If someone wants to add the packages they install for their distribution so we can improve the setup documentation I'd be more than happy to collaborate and review. |
mikelpint
commented
Oct 7, 2017
|
I have written one for the AUR long time ago. |
appelgriebsch
commented
Oct 11, 2017
|
I did a recent build (v1.0.3) on my Fedora 26 VM and packaged it as RPM and DEB. Could test the RPM already and it worked fine. Feel free to use it (https://github.com/appelgriebsch/dotFiles/releases/tag/0.1.0) |
nz4r
commented
Nov 8, 2017
|
Github Desktop Worked On Backbox5.1 (ubuntu 16.4) THANKS! |
beruic
commented
Nov 15, 2017
|
@Deams51 Any idea off when to expect it from official channels? |
ilhamdoanggg
commented
Nov 17, 2017
|
linux no needed it |
nkkollaw
commented
Nov 20, 2017
•
|
@appelgriebsch: I've installed it on elementary OS, and it does work, but it for some reason cannot get window controls correctly (maximize button is missing), and the window cannot be resized vertically. Awesome work, don't get me wrong. Just thought I'd leave some feedback. A snap would be pretty nice! |
Roychenlei
commented
Nov 22, 2017
|
i need linux |
nkkollaw
commented
Nov 22, 2017
•
|
@Roychenlei linux no needed it |
xalalau
commented
Nov 26, 2017
|
+1 for Linux |
RevoluPowered
commented
Nov 26, 2017
|
I need it too. Snapd or flatpak |
Serkan-devel
commented
Nov 27, 2017
|
Appimage support when? |
qaamal
commented
Nov 27, 2017
|
+1 |
vitalkanev
commented
Nov 27, 2017
|
I might want to get PPA from Launchpad somewhere. |
|
Please don't post "+1" or "When is it happening" comments. It creates noise for everyone else and makes the real discussion harder to follow. You can subscribe to the issue to receive notifications, or add a |
mitar
commented
Nov 27, 2017
|
I tested this out yesterday and it works pretty well, but there are some simple issues. I used So after installing dependencies, I called
So after I fixed the broken symlink, GitHub Desktop started working for me through Debian package. Contributions to fix all of that are welcome, if anyone is familiar how to do so. |
RevoluPowered
commented
Nov 27, 2017
•
|
Cool, I might contribute by uploading it to snapd as 'alpha' @mitar I will also test this on Fedora and confirm it works. Do you use snapd? If so after I bundle it can you help test the snap? |
mitar
commented
Nov 27, 2017
|
For snapd, ideally, we should add it so that it is generated with |
TingPing
commented
Nov 27, 2017
|
I will add a Flatpak to Flathub the second an official release happens. |
|
@TingPing do they only allow officially supported apps? |
vitalkanev
commented
Nov 28, 2017
|
I could create PPA via Launchpad. |
RevoluPowered
commented
Nov 28, 2017
|
okay, I'll see if I get time today to add support using 'yarn packages', if not I will have time tomorrow probably. Working on a game at the moment so not had huge amounts of free time, but getting this running on Linux would be handy as I don't like git cola any more. |
|
First off, thanks for everyone who has commented here and gotten involved with getting Desktop working on Linux! I wanted to take this moment to revisit this thread and then sketch out a way forward so we can make our Linux support better! Feedback ThemesLooking over the current feedback here, it falls into a few distinct themes. I'll summarize them here and address them from the perspective of the core team.
It's great to hear this passion and excitement, but without tangible feedback or actionable tasks we're a bit in the dark. Also, please don't +1 this thread - use the reactions!
These sorts of things are great, because it gives us details about what you're using and what the issue is - whether it's a blocker or polish, whether its something we can fix or we can talk to the Electron team about. The more details included, the better!
This is also great to hear! We're a small team trying to work on quality and feature stuff at the moment, so any people who can step up and help out are more than welcome. If you're happy to manage publishing updates when we make new releases available, feel free to submit a PR so we can promote it in this repository. This PR and the related issue is a good example.
We're currently leveraging If you're interested in this space, there's a guide to getting Desktop up and running locally with instructions that cover some mainstream distributions. The Next StepsSo how can we leverage the interest and passion here to move this issue along? Here's what I've been busy with lately... Better Usage of
|
This was referenced Dec 14, 2017
SirFaenor
commented
Dec 14, 2017
•
|
AppImage works for me on Opensuse Leap 42.3 with this little hack: |
|
@SirFaenor is this related to Git operations? I think this is desktop/dugite-native#42 which is an ongoing discussion about how to statically compile Git. |
SirFaenor
commented
Dec 15, 2017
•
|
@shiftkey I am not a os guru but I suppose it is. I can easily reproduce the error by removing the symlink: |
shiftkey
referenced this issue
in shiftkey/desktop
Dec 16, 2017
Closed
[AppImage] git does not work due to missing libcurl-gnutls.so.4 #12
wboswall
commented
Dec 29, 2017
•
|
Why not just clone the windows version of Github desktop and make it available for Linux distributions? That would solve the problem. |
anowlcalledjosh
commented
Dec 29, 2017
|
@wboswall That's exactly what's happening; feel free to peruse the comment by shiftkey located four comments above yours. |
wboswall
commented
Dec 29, 2017
|
@anowlcalledjosh That's good to hear but why is it taking so long for it to be released? |
anowlcalledjosh
commented
Dec 29, 2017
|
@wboswall Take a look at the comment I mentioned above, look at the current issues, and read this comment too. |


hamaminatu commentedMay 17, 2017
Please make Github Desktop available for linux user😃