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

XDG autostart enable/disable functionality not compatible with XFCE #260

Closed
sunweaver opened this issue Aug 12, 2020 · 3 comments · Fixed by #274
Closed

XDG autostart enable/disable functionality not compatible with XFCE #260

sunweaver opened this issue Aug 12, 2020 · 3 comments · Fixed by #274

Comments

@sunweaver
Copy link
Member

Expected behaviour

.desktop files in XDG autostart locations with the key Hidden= set to true are visible in the mate-session-properties dialog and can be (re-)enabled there, other desktop envs use Hidden=true|false to enable/disable startup applications. See also #134 for how to hide startup applications from the mate-session-properties dialog entirely.

Actual behaviour

Currently, mate-session-properties uses a MATE specific flag for disabling XDG autostart applications (X-MATE-Autostart-enabled=false). This boolean switch is not portable to other desktop environments. Please consider using the Hidden= key instead.

The explicit problem I have is this:

  • disable autostart of an application in XFCE -> this sets Hidden=true in the .desktop file
  • I cannot re-enable autostart for this application in MATE

Other way around:

  • I disable autostart of an application in MATE -> this sets X-MATE-Autostart-enabled=false
  • the application still autostarts in XFCE

I haven't tested other desktop envs. Let me know, if I should.

The context is: Ayatana Indicators. The system indicators are services usable across different desktop envs. At some point, they should be controllable via systemd user services (on systems having systemd). On systems without systemd / as of today, XDG autostart is used to launch the system indicator services. It should be possible to enable/disable those services cross-desktop-env.

Steps to reproduce the behaviour

Install MATE and XFCE on the same machine. Disable/enable XDG autostarted application using mate-session-properties and XFCE's xfce4-session-settings and switch between desktop environments

MATE general version

1.20 / 1.24

Package version

1.20

Linux Distribution

Debian/Ubuntu

Link to downstream report of your Distribution

none

@joakim-tjernlund
Copy link
Contributor

joakim-tjernlund commented Dec 4, 2020

Yes please, I got the same problem and cannot disable autostart apps using MATE.
The problem is exactly as described above, one must use Hidden property.

I cannot even disable apps like pulseaudio in MATE as XDG has no clue about X-MATE-Autostart-enabled

@raveit65
Copy link
Member

Pulseaudio service will be started before mate session was started, mostly by the login manager.
You need to mask pulsaudio service if you don't want it.

systemctl --user mask pulseaudio.service
systemctl --user mask pulseaudio.socket

@raveit65
Copy link
Member

I got the same problem and cannot disable autostart apps using MATE

See,
#156 (comment)
#156 (comment)
#272

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

Successfully merging a pull request may close this issue.

3 participants