# Mb-jgtools: mblogout code error

**URL:** <https://forum.maboxlinux.org/t/mb-jgtools-mblogout-code-error/1457>\
**Category:** Applications and GUI\
**Created:** [August 2, 2023, 8:47am UTC](https://forum.maboxlinux.org/t/mb-jgtools-mblogout-code-error/1457 "2023-08-02T08:47:08Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![muzqs](https://forum.maboxlinux.org/user_avatar/forum.maboxlinux.org/muzqs/32/3702_2.png) [@muzqs](https://forum.maboxlinux.org/u/muzqs)\
**Post date:** [August 2, 2023, 8:47am UTC](https://forum.maboxlinux.org/t/mb-jgtools-mblogout-code-error/1457/1 "2023-08-02T08:47:08Z")

</div>

Hi @napcok ,

### I was checking my logout menu. It’s a little slow with appearing.

And I came across the following error.  
It affects the time of appearance a wee bit.

This is prob. not my main issue, but it helps a wee bit commenting out ‘continue’.

```auto
bash : ERROR

line 836: continue: has meaning only in a 'for', 'while' or 'until' loop

```

Mb-jgtools

```auto
mblogout() {
jgmenu_icon_theme="Numix-Circle"
if [[-n "$1"]]
        then
            POSITION_MODE=${1:-pointer}
        else
		    MENU_HALIGN="center"
            MENU_VALIGN="center"
            # continue
fi

```

🐦

---

<div class="post-metadata">

**Author:** ![napcok](https://forum.maboxlinux.org/user_avatar/forum.maboxlinux.org/napcok/32/410_2.png) [@napcok](https://forum.maboxlinux.org/u/napcok)\
**Post date:** [August 2, 2023, 9:29am UTC](https://forum.maboxlinux.org/t/mb-jgtools-mblogout-code-error/1457/2 "2023-08-02T09:29:47Z")

</div>

Thanks,  
`continue` doesn’t really make sense here… _I think my cat wrote it there_ 😉

The logout dialog is slow due to the screenshot being generated every time. I thought it was cool when I wrote it, but maybe it would be better to change it to your current wallpaper or some other graphic?

---

<div class="post-metadata">

**Author:** ![napcok](https://forum.maboxlinux.org/user_avatar/forum.maboxlinux.org/napcok/32/410_2.png) [@napcok](https://forum.maboxlinux.org/u/napcok)\
**Post date:** [August 2, 2023, 6:31pm UTC](https://forum.maboxlinux.org/t/mb-jgtools-mblogout-code-error/1457/3 "2023-08-02T18:31:09Z")

</div>

The screenshot of the current desktop has been replaced with a thumbnail of the currently used wallpaper.  
The logout dialog should now appear noticeably faster, especially on low-end hardware.

---

<div class="post-metadata">

**Author:** ![muzqs](https://forum.maboxlinux.org/user_avatar/forum.maboxlinux.org/muzqs/32/3702_2.png) [@muzqs](https://forum.maboxlinux.org/u/muzqs)\
**Post date:** [August 3, 2023, 1:30pm UTC](https://forum.maboxlinux.org/t/mb-jgtools-mblogout-code-error/1457/4 "2023-08-03T13:30:12Z")

</div>

> [@napcok](#):
>
> The logout dialog is slow due to the screenshot being generated every time. I thought it was cool when I wrote it,

It is cool indeed.  
Kill your darlings we called that in theater. Speed is nice at this point.

🐦

---

<div class="post-metadata">

**Author:** ![wiini](https://forum.maboxlinux.org/letter_avatar_proxy/v4/letter/w/ba9def/32.png) [@wiini](https://forum.maboxlinux.org/u/wiini)\
**Post date:** [August 7, 2023, 5:55pm UTC](https://forum.maboxlinux.org/t/mb-jgtools-mblogout-code-error/1457/5 "2023-08-07T17:55:14Z")

</div>

I would prefer a screenshot. I have a bad wallpaper and when logging off it looks uninteresting. How can I change it somewhere on my own?

---

<div class="post-metadata">

**Author:** ![napcok](https://forum.maboxlinux.org/user_avatar/forum.maboxlinux.org/napcok/32/410_2.png) [@napcok](https://forum.maboxlinux.org/u/napcok)\
**Post date:** [August 7, 2023, 6:22pm UTC](https://forum.maboxlinux.org/t/mb-jgtools-mblogout-code-error/1457/6 "2023-08-07T18:22:33Z")

</div>

You can download the previous version of the script…

```auto
cd ~/bin/
wget https://git.maboxlinux.org/Mabox/mb-jgtools/raw/commit/2629e61d2146a4d066c45c120ea9cd17132a280d/bin/mb-jgtools
chmod +x mb-jgtools

```

---

<div class="post-metadata">

**Author:** ![wiini](https://forum.maboxlinux.org/letter_avatar_proxy/v4/letter/w/ba9def/32.png) [@wiini](https://forum.maboxlinux.org/u/wiini)\
**Post date:** [August 7, 2023, 6:29pm UTC](https://forum.maboxlinux.org/t/mb-jgtools-mblogout-code-error/1457/7 "2023-08-07T18:29:32Z")

</div>

Thank you beautifully.

---

<div class="post-metadata">

**Author:** ![muzqs](https://forum.maboxlinux.org/user_avatar/forum.maboxlinux.org/muzqs/32/3702_2.png) [@muzqs](https://forum.maboxlinux.org/u/muzqs)\
**Post date:** [October 23, 2023, 9:42am UTC](https://forum.maboxlinux.org/t/mb-jgtools-mblogout-code-error/1457/8 "2023-10-23T09:42:53Z")

</div>

Hi @napcok ,

#### A small thingie about **mb-jgtools screenshot** module.

The original ( **mb-jgtools Screenshot** ) has quit a delay before showing the screenshot menu.  
I changed it for myself like you did with the **Exit module**.

I guess the delay has to do because i use two monitors.

## _ **Delay slow …** _

 ![Mabox_20231023-11-30-23](https://forum.maboxlinux.org/uploads/default/original/2X/e/e1c79c9aeb83b7cebd002178322f4724ead36ef0.png)

## _ **Without Delay, quick …** _

 ![Mabox_20231023-11-30-59](https://forum.maboxlinux.org/uploads/default/original/2X/b/b6fc66e7c4136adbf54f8d5c37bf4f6c15555dd6.png)

Just let you know.

🐦
