! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
XFCE starts emacs incorrectly on startup through session save and .bash_login
Status:
RESOLVED: MOVED
Product:
Xfce4-session
Component:
General

Comments

Description hawkingfan2000 2018-02-20 04:16:17 CET
BODY:
When having emacs (version 27.0.50, but also works with 24 and presumably all other versions) auto start, either through the session saver, xfce Application Autostarter, or through standard methods such as .bash_login, emacs will fail to properly load in XFCE, as well as exhibit strange behavior.

CURRENT RESULTS OF TESTS:

# Session saving emacs:
When saving emacs through the automatic session saver in XFCE, then logging back in to load the session, emacs will launch in the proper virtual desktop and will act normally. A second instance of emacs (the "bad" one) will launch in the first desktop. When attempting to close the bad version of emacs, it relaunches. From my tests, bad emacs must be closed a total of 6 times for it to stop relaunching. The normal emacs session remains fine, and whether bad emacs exists or not, will close immediately without any more instances.

# Autolaunching emacs on login
When launching emacs through the XFCE Application Autostart, a bad emacs will be started. A normal emacs will not launch.

# Using .bash_login to autostart emacs on login
This is exactly similar to the previous experiment.

All of these issues persist whether the user has multiple desktops or one.

ISN'T THIS JUST EMACS?:
From my conclusions, no, it's not just emacs, and XFCE plays a roll. When testing emacs autostarting in different DEs (MATE has been tested so far), emacs does not exhibit this behavior. This seemingly has no link to how XFCE autostarts emacs (except in the first experiment case), as this issue persists even when started separately from XFCE's startup services. There must be some sort of issue with emacs and xfce starting at the same (technically near) the same time. I have submitted bug reports to the GNU Emacs bug reporting system in the case where XFCE isn't the full culprit here.

EXTENDED INFO:
Distrobution: Debian Testing, 4.14
Comment 1 Git Bot editbugs 2020-05-26 00:49:23 CEST
-- GitLab Migration Automatic Message --

This bug has been migrated to xfce.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.xfce.org/xfce/xfce4-session/-/issues/48.

Please create an account or use an existing account on one of our supported OAuth providers. 

If you want to fork to submit patches and merge requests please continue reading here: https://docs.xfce.org/contribute/dev/git/start#gitlab_forks_and_merge_requests

Also feel free to reach out to us on the mailing list https://mail.xfce.org/mailman/listinfo/xfce4-dev

Bug #14231

Reported by:
hawkingfan2000
Reported on: 2018-02-20
Last modified on: 2020-05-26

People

Assignee:
Xfce Bug Triage
CC List:
2 users

Version

Version:
4.12.0

Attachments

Additional information