-
-
Notifications
You must be signed in to change notification settings - Fork 280
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
"Launch Service at System Startup" does not work properly. #3640
Comments
The desktop file in the autostart folder requires support from the desktop environment. What is usually the case when running KDE or GNOME. Which desktop is being used by the Raspberry?
When using the Flatpak package the autostart can be a little tricky. Under ordinary circumstances a window is shown asking the user for the autostart permission. But this often fails if the desktop does not have the required xdg portal packages installed. Based on what I have seen outside of KDE and GNOME it may be more reliable to write that file manually as you have already done. The easiest solution in this case would be to not use the Flatpak package to install EasyEffects. But I do not think there are native packages for EasyEffects for Raspberry's distributions. |
In my Raspberry Pi environment, when I turned on the "Launch Service at System Startup" button, the following warning messages always appeared: "Unable to get background access: Background access has been denied." To resolve this issue, I reset the Flatpak permissions. And next, I installed xdg-desktop-portal. Currently, I prefer the Flatpak package because it makes very easy install the latest version of EasyEffects. For now, since this will enable the automatic launch of EasyEffects, which is my first goal, I will proceed with the evaluation. By the way, my ultimate wish is not only for the EasyEffects app to launch automatically, but for "Input","Effects" and "Enable input monitoring" on the main screen to be automatically selected and monitoring to be automatically started. |
@violetmage can explain this better but depending on the desktop being used specific xdg desktop portal packages have to be installed. I think that it can't just be any of them. |
By this do you mean for EasyEffects to remember which section of tis window were used and reopen on it when its window is shown? If yes it is something that will happen after we move from gtk to Qt. Our Qt branch already does that. But it is not ready for users yet. |
Yes, xdg style autostart using desktop files is effectively the responsibility of the window manager, and they all implement this a bit differently. Every window manager is supposed to also have it's own xdg-desktop-portal-$(name) package, since the generic xdg-desktop-portal-gtk cannot implement services that require wm specific functions and is thus intentionally feature incomplete. It exists so that wm's don't have to rewrite all the mundane stuff, only requests outside of xdg-desktop-portal-gtk's scope have to be implemented by the wm, the wm can send the boring requests off to xdg-desktop-portal-gtk. The Qt/KDE situation is very similar. Edit: the most consistent way a background app could be started would probably be user session systemd units, but that's not an xdg standard, so can't be done from a flatpak. |
Thank you for your comments. for your refernce,In my case, I executed following commands. |
Yes. Of course I know that.EasyEffects remembers the screen and presets I used last time, and starts from that state next time. This is a perfect specification! What I am saying is that I want to automate the operation procedure from then on. Please imagine this: As same way, when there is no need to change parameters, I want the EasyEffects effector functions to start up automatically when I just power it on. |
Thank you for explaining. I understand the situation now. |
Did you enable When process all input/output streams is disabled it is up to the user to manage which streams will have effects or not. Sometimes WirePlumber will remember the association and restore it automatically. But it is not guaranteed.
It will if process all streams is enabled. |
Yes. I have always had "process all input/output streams" enabled.
However, when EasyEffects is launched, "Output" and "Recorders" are always selected. I realized after writing this letter so far that I'm beginning to think that this inconvenience might only be due to the Raspberry Pi environment I'm using. |
At least on KDE and GNOME EasyEffects autostarts on login and process audio in the background just fine when using a native installation package. No need to click on its icon to start it. When installing through Flatpak there is the whole xdg portal situation that can be still annoying even if not using a Raspberry. |
Thanks for the helpful comments, I'll try a different installation method. (^_^) |
I have been trying to install Easyeffects natively on Raspberry pi5 for the past two weeks. After launching Easyeffects, I tried to enable "Launch Service at System Startup" (also enabled "Process All Input Streams"). Although it was a very disappointing result, I would like to report it to you as the current behavior of installing Easyeffects on Raspberry pi. Thank you and violetmage for your kind support so far. |
Which desktop are you using? The autostart of files inside |
@wwmm Perhaps the option should be renamed to "Start in background at Login", as I think it's equally clear and doesn't misrepresent what actually happens. |
I do not see a problem in renaming it. But I think people will still expect things to just work anyway. |
Below is information about the autostart file that was generated when I natively installed Easyeffects on the Raspberry pi5. ~/.config/autostart/easyeffects-service.desktop #The contents |
As expected the desktop file is fine. The issue is the desktop being used in your Raspberry installation. It does not seem to use autostart files. |
Yes, after analyzing this code it is clear that it doesn't work as I expected. This is the current situation of it. |
Maybe #3635 will help you. But that still depends on whether systemd will start EasyEffects at the right time. As EasyEffects is just a gui app that pretends to be a service the desktop environment has to be already running when EasyEffects is started. |
EasyEffects Version
7.2.3
What package are you using?
Arch (easyeffects)
Distribution
Linux/ Raspberry pi5
Describe the bug
Hello! This is an operation report and a request.
To launch EasyEffects automatically after booting up the Raspberry Pi5, I turned on the "Launch Service at System Startup" button on the menu screen.
This action automatically generated "~/.config/autostart/com.github.wwmm.easyeffects.desktop".
However, even when I restart the Raspberry Pi, EasyEffects does not launch automatically.
When I checked the contents of the automatically generated "com.github.wwmm.easyeffects.desktop", it was as follows.
[Desktop Entry]
Type=Application
Name=com.github.wwmm.easyeffects
Exec=flatpak run --command=easyeffects com.github.wwmm.easyeffects --gapplication-service
X-Flatpak=com.github.wwmm.easyeffects
According to analysis report of ChatGPT, the "--gapplication-service" flag was usually used to run background services, but this setting may not be working as intended.
On the other hand, when I set it to my own autorun file (below), EasyEffects started up automatically when the system started.
[Desktop Entry]
Type=Application
Exec=flatpak run com.github.wwmm.easyeffects
Hidden=false
NoDisplay=false
X-GNOME-Autostart-enabled=true
Name=Easy Effects
Comment=Start Easy Effects on login
There seems to be a problem with the contents of the autorun file (com.github.wwmm.easyeffects.desktop) that is generated when users turn on the "Launch Service at System Startup" button.
Is it possible to fix it in future update?
Thank you.
Expected Behavior
EasyEffects started up automatically when the system started.
Debug Log
Debug Log
Additional Information
No response
The text was updated successfully, but these errors were encountered: