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

Use the background portal to request running at startup #13

Open
danirabbit opened this issue Dec 17, 2021 · 2 comments
Open

Use the background portal to request running at startup #13

danirabbit opened this issue Dec 17, 2021 · 2 comments
Labels

Comments

@danirabbit
Copy link

- '--filesystem=~/.config/autostart'

Instead of adding a sandbox hole here, there is a portal for asking users to allow your app to run at startup. Apologies that it's not well-documented yet, but I've filed an issue report against docs with more info and reference material: elementary/docs#159

@JeysonFlores
Copy link
Owner

Hey @danrabbit , I implemented a tweaked version of the code you put on elementary/docs#159 however it only asked me once permissions and I didn't be able to catch the result or anything to debug and adapt the rest of my code to the user's election, and when I triggered the event again the portal dialog didn't show up again. Do you know where can I check the status of the Portal permissions (and perhaps being able to change them to trigger the permission dialog again) and where are stored the desktop files that will run on autostart?

@danirabbit
Copy link
Author

It should appear in System Settings → Applications → Startup and ~/.config/autostart. I'm kind of having trouble working with it myself testing locally, so maybe we shelve this for now. I'll investigate this more, write some good docs, and then let you know!

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

No branches or pull requests

2 participants