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

Storing session? #231

Open
tuxinal opened this issue Aug 22, 2024 · 5 comments
Open

Storing session? #231

tuxinal opened this issue Aug 22, 2024 · 5 comments

Comments

@tuxinal
Copy link

tuxinal commented Aug 22, 2024

while using global shortcuts i've noticed every time create_session is called (and shortcuts are bound to it) it creates a new section in KDE's shortcut settings.
i wish to avoid this. is there a way to store the session and use it later? is this even a reasonable way to do what i want to do? i couldn't find anything related to this in the x-d-p documentation

@bilelmoussaoui
Copy link
Owner

I am not familiar with that portal, you should ask people who wrote the portal.

@bilelmoussaoui
Copy link
Owner

Or some KDE developers to explain where those sections come from

@tytan652
Copy link

tytan652 commented Aug 23, 2024

while using global shortcuts i've noticed every time create_session is called (and shortcuts are bound to it) it creates a new section in KDE's shortcut settings.

This sentence give the impression that you did not understand how the portal flow works (it can really differs from what you are used to), so it may not work like you expect. I may be wrong.

The paradigm of the portal expects you to gave a set of bindings in advance, after that the application has no control besides closing the session.
Note, that you can create multiple session but the user will get a prompt for each session.

i wish to avoid this.

You can't avoid this, this is how the portal is designed. The user only way to change a binding it through the DE settings.

is this even a reasonable way to do what i want to do? i couldn't find anything related to this in the x-d-p documentation

You did not clearly explain what you want to do.

@tuxinal
Copy link
Author

tuxinal commented Aug 23, 2024

my apologies for not being clear. by that i meant i have tested multiple create_sessions at the same time so i could find out if the new set of bindings in the DE settings are caused by that. i don't intend to actually use multiple sessions at the same time.
my issue right now is every time my app starts i have to call create session and that causes a whole new set of keybinds to be created - but they aren't even enabled because the ones from last session are still enabled and are blocking the new ones to take effect. i assumed by loading the session from last time i could avoid that. but there is no way to do that (and i don't really have any evidence that might work in the first place, so i thought to ask)

@bilelmoussaoui
Copy link
Owner

my issue right now is every time my app starts i have to call create session and that causes a whole new set of keybinds to be created - but they aren't even enabled because the ones from last session are still enabled and are blocking the new ones to take effect. i assumed by loading the session from last time i could avoid that. but there is no way to do that (and i don't really have any evidence that might work in the first place, so i thought to ask)

that looks like an issue on the KDE implementation

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