-
-
Notifications
You must be signed in to change notification settings - Fork 27
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
Add SystemD units for Autostart #189
Conversation
I believe we should use a systemd unit instead of autostart file. |
@Marukesu I was trying to go that way at first, but couldn't figure it out 😅 It looks like we're using an autostart .desktop for notifications and the panel currently so I was having a hard time finding examples. Help appreciated! |
Something like:
[Unit]
Description=GNOME Shell
DefaultDependencies=no
Requisite=gnome-session-initialized.target
PartOf=gnome-session-initialized.target
Before=gnome-session-initialized.target
Wants=io.elementary.dock.service
[Unit]
Description=Pantheon Dock
After=io.elementary.gala.target
Requisite=gnome-session-initialized.target
PartOf=gnome-session-initialized.target
Before=gnome-session-initialized.target
[Service]
Slice=session.slice
Type=notify
ExecStart=@bindir@/io.elementary.dock
# Lower down dock's OOM score to avoid being killed by OOM-killer too early
OOMScoreAdjust=-1000 |
@tintou pushed but I can't confirm that it works 😬 |
Co-authored-by: Gustavo Marques <[email protected]>
Co-authored-by: Gustavo Marques <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
No description provided.