For what it's worth, I have this in my .emacs file to work around the issue of Emacs starting up the wrong size:
``` ;; https://bugs.launchpad.net/emacs/+bug/2011244 (defun fix-frame-size (&optional frame) (when (window-system) (if (not frame) (setq frame (car (frame-list)))) (let ((width (frame-width frame))) (if (< width 80) (progn (message "Fixing frame %s size from %d" frame width) (set-frame-size frame 80 35)) (message "Size of frame %s, %d, is fine, not fixing" frame width))))) (defun delayed-fix-frame-size (frame) ;; The frame resize sometimes doesn't work immediately after the frame is ;; opened. Might have to experiment with the delay to make sure it's long ;; enough. (run-at-time 0.25 nil 'fix-frame-size frame)) (add-hook 'after-make-frame-functions 'delayed-fix-frame-size 100) (fix-frame-size) ``` -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to gnome-shell in Ubuntu. https://bugs.launchpad.net/bugs/2011244 Title: emacs launching in GNOME is all messed up Status in GNU Emacs: New Status in emacs package in Ubuntu: Confirmed Status in gnome-shell package in Ubuntu: Confirmed Bug description: With the most recent Lunar updates, which I believe include both an Emacs update and a GNOME update, I have encountered multiple annoying / bizarre problems with launching Emacs in GNOME. In particular: 1) Sometimes Emacs launches as a tiny window rather than a window of the correct size. 2) Sometimes it gets into a state where when I click on the icon in the dock instead of bringing the open Emacs window to the front it launches a new Emacs every time I click. 3) Sometimes it fails to show up in the dock at all when I launch it. ProblemType: Bug DistroRelease: Ubuntu 23.04 Package: emacs 1:28.2+1-10ubuntu1 ProcVersionSignature: Ubuntu 6.1.0-16.16-generic 6.1.6 Uname: Linux 6.1.0-16-generic x86_64 ApportVersion: 2.26.0-0ubuntu2 Architecture: amd64 CasperMD5CheckResult: unknown CurrentDesktop: ubuntu:GNOME Date: Fri Mar 10 16:13:14 2023 InstallationDate: Installed on 2019-08-16 (1302 days ago) InstallationMedia: Ubuntu 19.04 "Disco Dingo" - Release amd64 (20190416) PackageArchitecture: all SourcePackage: emacs UpgradeStatus: Upgraded to lunar on 2022-11-24 (106 days ago) To manage notifications about this bug go to: https://bugs.launchpad.net/emacs/+bug/2011244/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp