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

New Option: Start Hidden in Background #65

Closed
ghost opened this issue Oct 17, 2020 · 7 comments
Closed

New Option: Start Hidden in Background #65

ghost opened this issue Oct 17, 2020 · 7 comments
Labels
enhancement New feature or request
Milestone

Comments

@ghost
Copy link

ghost commented Oct 17, 2020

First of all: I love Blanket - always searched something like that.

At the moment i am using Audacious with a Bird mp3 when my system boots, because it's able to start hidden (using the gnome media control for audacious so everything is pretty seemless)

Would it be possible to (auto) start Blanket, too ? Thx.

@rafaelmardojai
Copy link
Owner

I don't know how is the state of auto start in Flatpak.

But for now a will add the --hidden flag to launch the app hidden.

@rafaelmardojai rafaelmardojai added the enhancement New feature or request label Oct 26, 2020
@ghost
Copy link
Author

ghost commented Oct 26, 2020

Thank you very much @rafaelmardojai 👍

I am using Archlinux and blanket is installed via AUR so i guess it will work.

rafaelmardojai added a commit that referenced this issue Oct 26, 2020
if present at launch, the window will start hidden
related to #65
@archisman-panigrahi
Copy link
Contributor

blanket --hidden works with the daily builds PPA as well.

@bilelmoussaoui
Copy link
Contributor

I don't know how is the state of auto start in Flatpak.

But for now a will add the --hidden flag to launch the app hidden.

Flatpak has a portal for autostart/running in the background.

@rafaelmardojai
Copy link
Owner

Flatpak has a portal for autostart/running in the background.

You know what is the best way to implement this? I have to call EnableAutostart directly with D-Bus?

@bilelmoussaoui
Copy link
Contributor

You need to use the RequestBackground dbus call https://flatpak.github.io/xdg-desktop-portal/portal-docs.html#gdbus-method-org-freedesktop-portal-Background.RequestBackground. One thing to be aware of is that the portals waits for a user interaction (approval/or not of the interaction). The way it's handled is that each portal request, sends you an object path (mostly a dbus path) that you can call and wait for a response signal. The response contains the result of the interaction (whether the user approved it or not)

@rafaelmardojai
Copy link
Owner

You need to use the RequestBackground dbus call https://flatpak.github.io/xdg-desktop-portal/portal-docs.html#gdbus-method-org-freedesktop-portal-Background.RequestBackground. One thing to be aware of is that the portals waits for a user interaction (approval/or not of the interaction). The way it's handled is that each portal request, sends you an object path (mostly a dbus path) that you can call and wait for a response signal. The response contains the result of the interaction (whether the user approved it or not)

I see, I was looking to the wrong documentation.

You know if there are future plans to implement this at the toolkit level?

@rafaelmardojai rafaelmardojai modified the milestones: 0.5.0, 0.4.0 Mar 26, 2021
rafaelmardojai added a commit that referenced this issue Mar 26, 2021
implements xdg-desktop-portal API for autostart
related to  #65
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants