# Rebuild Native Launcher?

**URL:** <https://forum.clockworkpi.com/t/rebuild-native-launcher/2480>\
**Category:** GameShell\
**Tags:** launcher\
**Created:** [January 30, 2019, 5:40pm UTC](https://forum.clockworkpi.com/t/rebuild-native-launcher/2480 "2019-01-30T17:40:33Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![DrRaccoon](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/drraccoon/32/1254_2.png) [@DrRaccoon](https://forum.clockworkpi.com/u/DrRaccoon)\
**Post date:** [January 30, 2019, 5:40pm UTC](https://forum.clockworkpi.com/t/rebuild-native-launcher/2480/1 "2019-01-30T17:40:34Z")

</div>

I saw in my Settings on my Gameshell (ClockworkOS v0.2x) that there was a update, it was weird because it said something like, “_Update to 00255e_” or whatever. Something like that. I made the mistake of launching the update, and now when the Gameshell launches, it just sits at “loading” and never loads anything. My guess was the update was borked or something.

I dont want to rebuild the SD Card again, and I’m not quite ready for ClockworkOS v0.3. How can I rebuild my launcher without reflashing the card?

---

<div class="post-metadata">

**Author:** ![YoshiK1](https://avatars.discourse-cdn.com/v4/letter/y/919ad9/32.png) [@YoshiK1](https://forum.clockworkpi.com/u/YoshiK1)\
**Post date:** [January 30, 2019, 10:53pm UTC](https://forum.clockworkpi.com/t/rebuild-native-launcher/2480/2 "2019-01-30T22:53:42Z")

</div>

I’ve had the same issue. I’ve just rebuilt mine. Didn’t take long and mostly there. When I’ve completed I’ll be taking a backup of it to restore it in such a case. Sorry it’s not an answer to your question but posting so I can see the answer too.

---

<div class="post-metadata">

**Author:** ![DrRaccoon](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/drraccoon/32/1254_2.png) [@DrRaccoon](https://forum.clockworkpi.com/u/DrRaccoon)\
**Post date:** [January 31, 2019, 3:19am UTC](https://forum.clockworkpi.com/t/rebuild-native-launcher/2480/3 "2019-01-31T03:19:01Z")

</div>

When you say rebuilt, you mean reflashing the SD with the whole OS?

---

<div class="post-metadata">

**Author:** ![guu](https://avatars.discourse-cdn.com/v4/letter/g/7ab992/32.png) [@guu](https://forum.clockworkpi.com/u/guu)\
**Post date:** [January 31, 2019, 5:31am UTC](https://forum.clockworkpi.com/t/rebuild-native-launcher/2480/4 "2019-01-31T05:31:49Z")

</div>

ssh into gs

```auto
cd ~/launcher
git pull

```

---

<div class="post-metadata">

**Author:** ![YoshiK1](https://avatars.discourse-cdn.com/v4/letter/y/919ad9/32.png) [@YoshiK1](https://forum.clockworkpi.com/u/YoshiK1)\
**Post date:** [January 31, 2019, 10:37am UTC](https://forum.clockworkpi.com/t/rebuild-native-launcher/2480/5 "2019-01-31T10:37:08Z")

</div>

Yeah that’s what I mean.

---

<div class="post-metadata">

**Author:** ![DrRaccoon](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/drraccoon/32/1254_2.png) [@DrRaccoon](https://forum.clockworkpi.com/u/DrRaccoon)\
**Post date:** [January 31, 2019, 8:13pm UTC](https://forum.clockworkpi.com/t/rebuild-native-launcher/2480/6 "2019-01-31T20:13:23Z")

</div>

> [@guu](#):
>
> ssh into gs
> 
> ```auto
> cd ~/launcher
> git pull
> 
> ```

Thank you @guu, you da real MVP.

---

<div class="post-metadata">

**Author:** ![1ceb0x](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/1ceb0x/32/2171_2.png) [@1ceb0x](https://forum.clockworkpi.com/u/1ceb0x)\
**Post date:** [February 3, 2019, 2:25pm UTC](https://forum.clockworkpi.com/t/rebuild-native-launcher/2480/7 "2019-02-03T14:25:55Z")

</div>

Sorry for the n00b question. Having the same problem myself. How do you ssh into GS when it’s not connected to a wifi?

OK - got it to work with a working USB cable. I have access to it, cd’ed into ~/launcher and running git pull gives me “Already up to date”. Any ideas? Still stuck in loading.

---

<div class="post-metadata">

**Author:** ![hpcodecraft](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/hpcodecraft/32/663_2.png) [@hpcodecraft](https://forum.clockworkpi.com/u/hpcodecraft)\
**Post date:** [February 3, 2019, 8:21pm UTC](https://forum.clockworkpi.com/t/rebuild-native-launcher/2480/8 "2019-02-03T20:21:39Z")

</div>

You can directly go back to specific versions of the launcher. To go back to launcher 1.22, SSH into your gameshell and do

```
cd ~/launcher
git checkout 1.22

```

To list all available versions

```
cd ~/launcher
git tag
```

---

<div class="post-metadata">

**Author:** ![1ceb0x](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/1ceb0x/32/2171_2.png) [@1ceb0x](https://forum.clockworkpi.com/u/1ceb0x)\
**Post date:** [February 3, 2019, 8:54pm UTC](https://forum.clockworkpi.com/t/rebuild-native-launcher/2480/9 "2019-02-03T20:54:29Z")

</div>

Thank you. I’ll try that in a bit. My OS is on 0.1 so the launcher may not be compatbile me thinks. I did some tinkering with .bashrc and modified something and now it’s stuck at ‘happy hacking’. If someone has an unmodified .bashrc from 0.1, I would be grateful.

---

<div class="post-metadata">

**Author:** ![guu](https://avatars.discourse-cdn.com/v4/letter/g/7ab992/32.png) [@guu](https://forum.clockworkpi.com/u/guu)\
**Post date:** [February 4, 2019, 2:46am UTC](https://forum.clockworkpi.com/t/rebuild-native-launcher/2480/10 "2019-02-04T02:46:37Z")

</div>

this .bashrc works well with latest launcher

[https://pastebin.com/eJRPg93A](https://pastebin.com/eJRPg93A)

it has not much difference than v0.1’s bashrc

except the bottom part

```auto
if [-f ~/launcher/.cpirc]; then
   . ~/launcher/.cpirc
fi

```

if you really want to recover the v0.1 .bashrc  
just replace the above to be like

```auto
if [-f /tmp/autologin]
then
	rm -f /tmp/autologin
	mpd ~/.mpd.conf
	startx -- -nocursor > /dev/null 2>&1 
fi

```

but .bashrc in v0.1 and v0.2 will both not work with the latest launcher  
since v0.21, we changed .bashrc

---

<div class="post-metadata">

**Author:** ![1ceb0x](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/1ceb0x/32/2171_2.png) [@1ceb0x](https://forum.clockworkpi.com/u/1ceb0x)\
**Post date:** [February 4, 2019, 1:19pm UTC](https://forum.clockworkpi.com/t/rebuild-native-launcher/2480/11 "2019-02-04T13:19:04Z")

</div>

I think i’m doing something wrong. I changed the bashrc to both methods and nothing boots. One gets stuck in happy hacking, the other in loading.  
Curious thing is, digging around the files I noticed the launcher is moved to /home/cpi/launcher instead of /home/cpi/apps/launcher. So i removed mine from apps and placed it in /cpi/ instead. So the launcher is now updated to 1.24, but my OS is still on factory version, as I haven’t manually updated to any of the ones released. Could this be the case? I haven’t seen an option to update the OS in settings, apart from updating the launcher.

Is there a way to print out the OS version of clockwork, in ssh? Sorry for the myriad of questions.

LE: OK so the old bashrc does not work any longer and the only one that boots (but gets stuck in loading) is the cpirc method.  
I’m a beginner with git and i only know a few commands. I see tags of 1.21, 1.22 in git and I would wish to clone 1.21 but I don’t know how to switch to that. a git clone from launcher gives me latest, 1.24. Any way in cloning older versions?

---

<div class="post-metadata">

**Author:** ![1ceb0x](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/1ceb0x/32/2171_2.png) [@1ceb0x](https://forum.clockworkpi.com/u/1ceb0x)\
**Post date:** [February 4, 2019, 6:25pm UTC](https://forum.clockworkpi.com/t/rebuild-native-launcher/2480/12 "2019-02-04T18:25:18Z")

</div>

Got it to work. I removed the launcher from /home/cpi/ and git cloned the launcher to /home/cpi/apps/  
Then I cd’ed into /home/cpi/apps/launcher and did git checkout ‘1.21’.

I restored the old bashrc to 0.1 and that seems to boot it past the loading screen. Time to understand why the updated launcher does not want to boot.

Thanks all for the help!

---

<div class="post-metadata">

**Author:** ![Valssu](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/valssu/32/8026_2.png) [@Valssu](https://forum.clockworkpi.com/u/Valssu)\
**Post date:** [February 17, 2019, 5:38pm UTC](https://forum.clockworkpi.com/t/rebuild-native-launcher/2480/13 "2019-02-17T17:38:35Z")

</div>

Hi, this is what I found:

cpi@clockworkpi:~$ cd ~/launcher

-bash: cd: /home/cpi/launcher: No such file or directory

Now, I see black screen (no loading, no game, no anything  
)
