Skip to content

Instantly share code, notes, and snippets.

@ayosec
Last active June 12, 2016 16:45
Show Gist options
  • Save ayosec/1ea0a73d3408714f535c to your computer and use it in GitHub Desktop.
Save ayosec/1ea0a73d3408714f535c to your computer and use it in GitHub Desktop.
Fix useless double-click selection in Gnome 3.16

New versions of Gnome have a broken behavior for double-click selections. Strings like URLs can'be be selected with double-click, as usual.

The correct behavior can be restored with:

$ dconf write  \
    /org/gnome/terminal/legacy/profiles:/:${PROFILE}/word-char-exceptions \
    '@ms ":-,.;/?%&#_=+@~·"'

See https://bugzilla.gnome.org/show_bug.cgi?id=730632#c33

@gsauthof
Copy link

The - character should prefix all other, because apparently, otherwise it is interpreted as range meta character. Analogously to regex character classes, e.g. as in [0-9] vs. [-09].

Btw, do you know the meaning of the @ms part?

@gsauthof
Copy link

@ms stands for maybe-string-gvariant-type, it seems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment