Sublime Forum

Clipboard cleared on exit

#1

I recently updated from a 2021 release to the latest version of Sublime Text (4200) and I noticed that any text copied is lost when the application is closed.
This is undesirable behavior as it makes it impossible to use the app to quickly open files, copy contents, Alt+F4 and paste into another window. I’ve searched through the settings and found nothing relevant.
It was working find with the old version of the app.

How can I turn this off?

Installed using APT on Ubuntu 24.04.3 LTS (MATE).

Thanks,
Amis

0 Likes

#2

Text reamains in clipboard on my Windows 10/11, Debian 13 (Gnome on X.org) and Ubuntu 25 (Gnome on Wayland) setups after closing Sublime Text 4200.

0 Likes

#3

Maybe it is some kind of setting I already have? I have these preferences currently:

{
	"font_size": 14,
	"hot_exit": false,
	"remember_open_files": false,
	"theme": "Adaptive.sublime-theme",
	"update_check": false,
	"word_wrap": false,
	"themed_title_bar" : false,
	"gtk_client_side_window_decorations" : false,
	"color_scheme": "Packages/Color Scheme - Default/Monokai.sublime-color-scheme",
	"tab_completion": false,
	"remember_workspace": false,
	"caret_style": "smooth",
	"auto_complete_delay": 500,
	"auto_complete": false,
	"translate_tabs_to_spaces": true,
	"open_files_in_new_window": "always",
	"index_files": true,
}

EDIT: I’ve cleared my settings (should’ve done before posting) and it didn’t change anything

0 Likes

#4

I installed various versions from apt and determined that the last working version was 4126 and the next available - 4142 - and everything after that is broken for me.

Reading the changelog I don’t see anything that is related to clipboard handling.

0 Likes

#5

Are you using MATE with Wayland? In Wayland the clipboard is not retained when you close a program. It is only saved if there is some kind of clipboard history feature, which GNOME (and I believe KDE) includes. Standalone Wayland compositors typically do not.

(I’m using GNOME/Wayland mostly now, but I have successfully used wl-clip-persist on Niri and Sway. I’d build it from the latest git version and run with wl-clip-persist" --clipboard regular --ignore-event-on-error --reconnect-tries 1.)

0 Likes

#6

I’m still using Xorg, wayland is installed but not used.

  Display: x11 server: X.Org v: 21.1.11 with: Xwayland v: 23.2.6
    compositor: marco v: 1.26.2 driver: X: loaded: nvidia
0 Likes