#982099 lxpanel: randomly fails to display one of the configured launchers

Package:
lxpanel
Source:
lxpanel
Description:
LXDE panel
Submitter:
"Francesco Poli (wintermute)"
Date:
2023-02-14 17:36:05 UTC
Severity:
important
#982099#5
Date:
2021-02-06 15:05:29 UTC
From:
To:
Hello!

First of all thanks for maintaining this nice panel in Debian.
I am giving it a try, in order to check whether I can switch to
it from fbpanel, which [risks] being removed from Debian.

[risks]: <https://bugs.debian.org/980122>


Unfortunately, I am experiencing what seems to be a bug.

I configured two launchers in the Application Launch Bar, but it rather
often happens that lxpanel fails to display one of them.
At that point (without changing anything in the configuration), I kill
lxpanel and start it again:

  $ killall -TERM lxpanel
  $ lxpanel &

After doing so, lxpanel may fail again to display one of the two launchers.
Hence, I kill it and restart it again.
After repeating this process a number of times, lxpanel is again able to
display both my launchers. But nothing changed in the configuration, so
the issue seems to be non-deterministic (maybe some race condition?).

See the attached screenshots for the correct panel portion
(with_both_launchers.png) and the incorrectly displayed panel portion
(without_one_launcher.png).


Please investigate/fix the bug and/or forward my bug report upstream.
Thanks for your time and helpfulness!


My lxpanel configuration follows.

  $ cat ~/.local/share/applications/uxterm-start-login.desktop
  [Desktop Entry]
  Type=Application
  Name=Terminal
  Icon=/usr/share/icons/hicolor/scalable/apps/xterm-color.svg
  Exec=/usr/bin/uxterm -ls
  Terminal=false
  Categories=X-LXPanel;
  $ cat ~/.local/share/applications/xscreensaver-lock-screen.desktop
  [Desktop Entry]
  Type=Application
  Name=Lock screen
  Icon=/usr/share/pixmaps/xscreensaver.svg
  Exec=/usr/bin/xscreensaver-command -lock
  Terminal=false
  Categories=X-LXPanel;
  $ cat ~/.config/lxpanel/launchtaskbar.cfg
  [special_cases]
  synaptic=synaptic-pkexec
  soffice.bin=libreoffice
  x-terminal-emulator=lxterminal
  $ cat ~/.config/lxpanel/default/config
  [Command]
  $ cat ~/.config/lxpanel/default/panels/panel
  # lxpanel <profile> config file. Manually editing is not recommended.
  # Use preference dialog in lxpanel to adjust config when you can.

  Global {
    edge=bottom
    allign=left
    margin=275
    widthtype=percent
    width=100
    height=28
    transparent=1
    tintcolor=#dcdad5
    alpha=255
    setdocktype=1
    setpartialstrut=1
    usefontcolor=1
    fontcolor=#10394d
    usefontsize=0
    fontsize=10
    background=0
    backgroundfile=/usr/share/lxpanel/images/background.png
    align=right
    iconsize=24
  }
  Plugin {
    type=launchbar
    Config {
      Button {
        id=uxterm-start-login.desktop
      }
      Button {
        id=xscreensaver-lock-screen.desktop
      }
    }
  }
  Plugin {
    type=space
    Config {
      Size=10
    }
  }
  Plugin {
    type=pager
    Config {
    }
  }
  Plugin {
    type=space
    Config {
      Size=10
    }
    expand=0
  }
  Plugin {
    type=taskbar
    expand=1
    Config {
      tooltips=1
      IconsOnly=0
      AcceptSkipPager=1
      ShowIconified=1
      ShowMapped=1
      ShowAllDesks=0
      UseMouseWheel=1
      UseUrgencyHint=1
      FlatButton=0
      MaxTaskWidth=150
      spacing=1
      GroupedTasks=0
      DisableUpscale=0
      UseSmallerIcons=-1
    }
  }
  Plugin {
    type=space
    Config {
      Size=10
    }
  }
  Plugin {
    type=tray
    Config {
    }
  }
  Plugin {
    type=space
    Config {
      Size=10
    }
  }
  Plugin {
    type=dclock
    Config {
      ClockFmt=%R
      TooltipFmt=%a, %d %b %Y
      BoldFont=1
      IconOnly=0
      CenterText=1
    }
  }
  Plugin {
    type=space
    Config {
      Size=5
    }
  }

#982099#10
Date:
2021-05-09 10:04:38 UTC
From:
To:
On Sat, 06 Feb 2021 16:05:29 +0100 Francesco Poli (wintermute) wrote:

[...]

Hello again,
any news on bug [#982099]?

[#982099]: <https://bugs.debian.org/982099>

I experience it on a daily basis and it is quite annoying.
I always have to kill lxpanel (or use "lxpanelctl exit") and start it
over a number of times, before I can see both my launchers.

Have you managed to reproduce the bug?
Any idea on how to fix it?
Have you forwarded my bug report upstream?

Please let me know, thanks for your time.

#982099#17
Date:
2023-02-14 17:32:53 UTC
From:
To:
On Sun, 9 May 2021 12:04:38 +0200 Francesco Poli wrote:

[...]
[...]

For anyone else who is experiencing this same bug, I seem to have found
a workaround: the trick is to create one separate Application Launch
Bar for each application launcher you need to define.

After applying this trick, each configured launcher seems to be always
displayed, without any issues...

The resulting panel configuration is something like:

  $ cat ~/.config/lxpanel/default/panels/panel
  # lxpanel <profile> config file. Manually editing is not recommended.
  # Use preference dialog in lxpanel to adjust config when you can.

  Global {
    edge=bottom
    allign=left
    margin=275
    widthtype=percent
    width=100
    height=28
    transparent=1
    tintcolor=#dcdad5
    alpha=255
    setdocktype=1
    setpartialstrut=1
    usefontcolor=1
    fontcolor=#10394d
    usefontsize=0
    fontsize=10
    background=0
    backgroundfile=/usr/share/lxpanel/images/background.png
    align=right
  }
  Plugin {
    type=launchbar
    Config {
      Button {
        id=uxterm-start-login.desktop
      }
    }
  }
  Plugin {
    type=launchbar
    Config {
      Button {
        id=xscreensaver-lock-screen.desktop
      }
    }
  }
  Plugin {
    type=space
    Config {
      Size=10
    }
  }
  Plugin {
    type=pager
    Config {
    }
  }
  Plugin {
    type=space
    Config {
      Size=10
    }
  }
  Plugin {
    type=taskbar
    Config {
      ShowAllDesks=0
      MaxTaskWidth=150
    }
  }
  Plugin {
    type=space
    Config {
      Size=10
    }
  }
  Plugin {
    type=tray
    Config {
    }
  }
  Plugin {
    type=space
    Config {
      Size=10
    }
  }
  Plugin {
    type=dclock
    Config {
      ClockFmt=%R
      TooltipFmt=%a, %d %b %Y
      BoldFont=1
      IconOnly=0
      CenterText=1
    }
  }
  Plugin {
    type=space
    Config {
      Size=5
    }
  }