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

Apps are not closed by lxqt-session if launched by shortcuts set in kglobalshortcutsrc #2

Open
stefonarch opened this issue Mar 19, 2024 · 8 comments

Comments

@stefonarch
Copy link
Owner

No description provided.

@tsujan
Copy link
Collaborator

tsujan commented Mar 19, 2024

Sorry if this question is totally irrelevant (I'm in the middle of coding and may say weird things):

Have you tested the Qt6-based lxqt-session under X11 to make sure that apps are closed correctly there?

@stefonarch
Copy link
Owner Author

stefonarch commented Mar 19, 2024

Have you tested the Qt6-based lxqt-session under X11 to make sure that apps are closed correctly there?

Sure that I use qt6 lxqt-session from day one on of it's birth.

I noticed only now switching between labwc and kwin that fpad opened old files and not the recent modified ones. It closes real fast, while using labwc/labwc#1601 I can see the waiting time, especially with featherpad which window stay a some seconds open, disppears and then session exits, on X11 and labwc. Probably kwin just kills the app launched with this option...

@tsujan
Copy link
Collaborator

tsujan commented Mar 19, 2024

Probably kwin just kills the app launched with this option?

I don't know which option you mean (still being busy with the jungle of lxqt-config's code), but I'm happy if lxqt-session works fine :)

@stefonarch
Copy link
Owner Author

exec kwin_wayland --no-kactivities --exit-with-session lxqt-session --xwayland

@stefonarch stefonarch changed the title --exit-with-session option is too fast, apps are not closed by lxqt-session Apps are not closed by lxqt-session if launched by shortcuts set in kglobalshortcutsrc Mar 20, 2024
@stefonarch
Copy link
Owner Author

Found the reason: it's because lxqt-session doesn't know about apps launched by shortcuts configured by kwin/systemsettings in ~/.config/kglobalshortcutsrc, like fpad in this case.

Basically under all compositors we need this workaround used in labwc until a solution is found for lxqt-globalkeysd lxqt/lxqt-globalkeys#282.

    <keybind key="W-f">
      <action name="Execute" command="pcmanfm-qt '/usr/share/applications/featherpad.desktop'"/>
    </keybind>

Here the KDE-complicated workaround.

kglobalshortcutsrc:

[services][fpad.desktop]
_launch=Meta+F

~/.local/share/applications/fpad.desktop

[Desktop Entry]
Exec=pcmanfm-qt '/usr/share/applications/featherpad.desktop'
Name=fpad
NoDisplay=true
Type=Application

@tsujan
Copy link
Collaborator

tsujan commented Mar 20, 2024

we need this workaround used in labwc

A workaround for what? I don't need any workaround under labwc:

    <keybind key="W-f">
      <action name="Execute" command="featherpad" />
    </keybind>

@stefonarch
Copy link
Owner Author

If you launch it by shortcut it is outside of lxqt-session , see pstree.

@tsujan
Copy link
Collaborator

tsujan commented Mar 20, 2024

OK, may bad, you mean what the title of this page says :)

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

2 participants