On Mon, May 01, 2023 at 10:03:30AM +0800, Hongyi Zhao wrote: > On Mon, May 1, 2023 at 7:31 AM Hongyi Zhao wrote: > > > > On Sun, Apr 30, 2023 at 10:46 PM wrote: > > > > > > On Sun, Apr 30, 2023 at 10:36:17PM +0800, Hongyi Zhao wrote: > > > > Hi here, > > > > > > > > When I double-click on a TeX document to open it, Emacs will show the > > > > scratch window instead of the TeX document window [...] > > > What OS/desktop environment are you using? > > > > $ inxi -S > > System: > > Host: X10DAi Kernel: 5.19.0-21-generic x86_64 bits: 64 Desktop: GNOME 43.0 > > Distro: Ubuntu 22.10 (Kinetic Kudu) So it's GNOME, I see. Sorry to say that I lost track of GNOME years ago, so I'm not that much of an expert... > A very strange thing is that if I double-click on a very simple tex > file, this issue does not occur, as shown in the attached screenshot: This is strange indeed. I guess that there is a context menu (perhaps right-clicking on the file) which offers you "open with..." or similar. What happens then? Cheers -- t