Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Standalone panel starts empty #2175

Open
stefonarch opened this issue Nov 23, 2024 · 8 comments
Open

Standalone panel starts empty #2175

stefonarch opened this issue Nov 23, 2024 · 8 comments

Comments

@stefonarch
Copy link
Member

If lxqt-panel is started outside of an LXQt session it will be empty, frustrating users

Expected Behavior

A default panel with menu, quicklaunch, clock and so on is started

Current Behavior

All widgets have to be added manually and menu files can be absent or wrong under some circumstances. In my test using openbox plasma-application.menu was used in fancy menu.

Possible Solution

Make sure the default panel.conf is copied if not present.

Steps to Reproduce (for bugs)
  1. Remove ~/.config/lxqt/panel.conf
  2. Start an openbox session
  3. start lxqt-panel
Context

Several people stumble about that recently.

System Information
  • LXQt Version: all
@isf63
Copy link
Contributor

isf63 commented Nov 24, 2024

There is /usr/share/lxqt/panel.conf which is sourced in some (unknown to me) circumstances. It actually may be the reason for the numbering bug #2126

@stefonarch
Copy link
Member Author

I found that there is generated a panel configuration indeed, but without widgets:

[General]
__userfile__=true

[panel1]
alignment=-1
animation-duration=0
background-color=@Variant(\0\0\0\x43\0\xff\xff\0\0\0\0\0\0\0\0)
background-image=
desktop=0
font-color=@Variant(\0\0\0\x43\0\xff\xff\0\0\0\0\0\0\0\0)
hidable=false
hide-on-overlap=false
iconSize=22
lineCount=1
lockPanel=false
opacity=100
panelSize=32
position=Bottom
reserve-space=true
show-delay=0
visible-margin=true
width=100
width-percent=true

@tsujan
Copy link
Member

tsujan commented Nov 24, 2024

Start an openbox session

A bare environment like Openbox may have problem with purely Qt-based apps too because it may not set basic EVs. Did you test with startlxqt minus its last line (which is exec lxqt-session)?

@tsujan
Copy link
Member

tsujan commented Nov 24, 2024

A more basic question: what if you add [General] to the top of /usr/share/lxqt/panel.conf? Its lack seems suspicious to me.

If that's the reason, we should correct it before making a point release for #2173.

EDIT: Never mind; if the value of the panels key is empty, panel1 is added by the code. That means, although /usr/share/lxqt/panel.conf has a wrong panels key, it has no effect.

@isf63
Copy link
Contributor

isf63 commented Nov 24, 2024

If there is no ~/.config/lxqt/panel.conf and the panel is restarted, for me a ~/.config/lxqt/panel.conf is automatically created.

Generated panel.conf
[General]
__userfile__=true

[desktopswitch]
alignment=Left
type=desktopswitch

[fancymenu]
alignment=Left
type=fancymenu

[mount]
alignment=Right
type=mount

[panel1]
alignment=-1
animation-duration=0
background-color=@Variant(\0\0\0\x43\0\xff\xff\0\0\0\0\0\0\0\0)
background-image=
desktop=0
font-color=@Variant(\0\0\0\x43\0\xff\xff\0\0\0\0\0\0\0\0)
hidable=false
hide-on-overlap=false
iconSize=22
lineCount=1
lockPanel=false
opacity=100
panelSize=32
position=Bottom
reserve-space=true
show-delay=0
visible-margin=true
width=100
width-percent=true

[quicklaunch]
alignment=Left
type=quicklaunch

[showdesktop]
alignment=Right
type=showdesktop

[statusnotifier]
alignment=Right
type=statusnotifier

[taskbar]
alignment=Left
type=taskbar

[tray]
alignment=Right
type=tray

[volume]
alignment=Right
type=volume

[worldclock]
alignment=Right
type=worldclock

It is not the same as /usr/share/lxqt/panel.conf. It has a more detailed [panel1] but is missing plugins=, so should be invalid.

@tsujan
Copy link
Member

tsujan commented Nov 24, 2024

It has a more detailed [panel1] but is missing plugins=

That's not a problem. The plugins key will be created as soon as you add/remove a plugin; otherwise, that of the default config file will be used.

@stefonarch
Copy link
Member Author

otherwise, that of the default config file will be used.

...but only inside lxqt-session. I think the empty panel.conf is generated by the panels' code but have no clue what triggers the use of /usr/share/lxqt/panel.conf.

@tsujan
Copy link
Member

tsujan commented Nov 24, 2024

have no clue what triggers the use of /usr/share/lxqt/panel.conf.

Qt should use it when there's no user config file.

If I were you, I'd listen to @tsujan's suggestion after removing that empty config file, and if the panel was OK, I would remove startlxqt's blocks, one at a time and from bottom to top, to know which one is effective.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants