# Reform-desktop-help error

**URL:** <https://community.mnt.re/t/reform-desktop-help-error/2661>\
**Category:** MNT Reform\
**Created:** [October 16, 2024, 6:59pm UTC](https://community.mnt.re/t/reform-desktop-help-error/2661 "2024-10-16T18:59:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gsamu](https://community.mnt.re/letter_avatar_proxy/v4/letter/g/bb73d2/32.png) [@gsamu](https://community.mnt.re/u/gsamu)\
**Post date:** [October 16, 2024, 6:59pm UTC](https://community.mnt.re/t/reform-desktop-help-error/2661/1 "2024-10-16T18:59:43Z")

</div>

I’ve observed something on my MNT Reform2 after the most recent OS updates which has me scratching my head somewhat.

After booting up my system and starting the sway window manager, the first terminal which opens by default prints the message:

`bash: line 1: reform-desktop-help: command not found`

The only file _reform-desktop-help_ I could find on my system is in /etc and it’s simply a text file (not a script).

```auto
$ ls -la /etc/reform-desktop-help
-rw-r--r-- 1 root root 1111 Sep 28 2023 /etc/reform-desktop-help

```

This file seems to be part of the _reform-tools_ package:

```auto
$ dpkg -S /etc/reform-desktop-help
reform-tools: /etc/reform-desktop-help

```

A big more digging revealed that there exists _/etc/reform-help_, as well as a script _/usr/bin/reform-help_. I’m not sure if I’m missing for example `/usr/bin/reform-desktop-help`?

At any rate, I couldn’t find _reform-desktop-help_ being called in the .bashrc, etc. So this has me scratching my head somewhat. It’s likely being invoked as part of some sway startup, which is eluding me at the moment.

In terms of OS release, I have the following:

```auto
$ uname -a
Linux reform 6.11.2-mnt-reform-arm64 #1 SMP Debian 6.11.2-1+reform20241016T122429Z (2024-10-16) aarch64 GNU/Linux

$ cat /etc/os-release 
PRETTY_NAME="Debian GNU/Linux trixie/sid"
NAME="Debian GNU/Linux"
VERSION_CODENAME=trixie
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

```

And …

`/etc/motd shows: System Image v4: 2023-12-25`

---

<div class="post-metadata">

**Author:** ![josch](https://community.mnt.re/user_avatar/community.mnt.re/josch/32/1003_2.png) [@josch](https://community.mnt.re/u/josch)\
**Post date:** [October 16, 2024, 8:04pm UTC](https://community.mnt.re/t/reform-desktop-help-error/2661/2 "2024-10-16T20:04:12Z")

</div>

Thank you for your great bug report!

So, the `reform-tools` package indeed used to ship a script `/usr/bin/reform-desktop-help` and all it did was:

```sh
#!/bin/sh
exec cat /etc/motd /etc/reform-desktop-help /etc/reform-help

```

The only script calling this tool was `/usr/libexec/reform-tools/reform-tray.py`.

I changed this in `reform-tools` 1.46 in which I added the `--desktop` function to the `reform-help` tool, making it take over the functionality of `reform-desktop-help`. Naturally, `/usr/libexec/reform-tools/reform-tray.py` was changed to call `reform-help --desktop` instead of `reform-desktop-help`.

But now that you bring this up, I’m going through old commits in the `reform-tools` git and I found that in the very beginning, that is in version 1.1 of `reform-tools`, the default `~/.config/sway/config` had the following line in it:

```
exec xfce4-terminal -e 'bash -c "reform-desktop-help; bash"'

```

That line will automatically open a new `xfce4-terminal` every time sway starts. That then changed in `reform-tools` commit [fd2fec54822a31f0c692ba6f0b022a070fe9055e](https://source.mnt.re/reform/reform-tools/-/commit/fd2fec54822a31f0c692ba6f0b022a070fe9055e) which switched from `xfce4-terminal` to `foot` but was still calling `reform-desktop-help`. The functionality of opening a new terminal window when sway starts was then finally killed with commit [f9f9673298ff8cfb227758bd304f8ca3f957027b](https://source.mnt.re/reform/reform-tools/-/commit/f9f9673298ff8cfb227758bd304f8ca3f957027b) which included the call to `reform-desktop-help` into `/usr/libexec/reform-tools/reform-tray.py`.

So, if your system image is older than “Tue Apr 16 16:50:22 2024” or in other words, if your system image was made with `reform-tools` version 1.38 or earlier, then it will have a sway config which starts a new terminal and that terminal will run `reform-desktop-help` as the first thing.

I now wonder how to best handle this… Should I add a `reform-desktop-help` script back into `$PATH` to not break user’s existing setup? Or should I add a new message to `reform-check` which instructs users to replace `reform-desktop-help` with `reform-help --desktop` or remove the line altogether from their `~/.config/sway/config`… hrm… 🤔

---

<div class="post-metadata">

**Author:** ![zeha](https://community.mnt.re/user_avatar/community.mnt.re/zeha/32/1125_2.png) [@zeha](https://community.mnt.re/u/zeha)\
**Post date:** [October 16, 2024, 10:31pm UTC](https://community.mnt.re/t/reform-desktop-help-error/2661/3 "2024-10-16T22:31:39Z")

</div>

> I now wonder how to best handle this… Should I add a `reform-desktop-help` script back into `$PATH` to not break user’s existing setup?

Could add the `reform-desktop-help` back into `$PATH` and have it only print a warning that this is deprecated and users should remove it from the sway config.

---

<div class="post-metadata">

**Author:** ![gsamu](https://community.mnt.re/letter_avatar_proxy/v4/letter/g/bb73d2/32.png) [@gsamu](https://community.mnt.re/u/gsamu)\
**Post date:** [October 17, 2024, 12:46pm UTC](https://community.mnt.re/t/reform-desktop-help-error/2661/4 "2024-10-17T12:46:49Z")

</div>

@josch Thank you! I was wondering if there was something wrong with my installation (or if I was losing my mind).

For now, I simply updated `~/.config/sway/config` and replaced _reform-desktop-help_ with _reform-help --desktop_.
