4

How to force Gedit always, any time, in any place open new doc in a new window? And never, nowhere open it in a new tab?

Melebius
  • 11,431
  • 9
  • 52
  • 78

1 Answers1

1

You need to alter .desktop shortcut:

  • Replace gedit %U with gedit -s %u.
  • Disable DBus activation.

The command line to do both modifications at once:

$ sed "s/\(Exec=gedit \)%U$/\1-s %u/;s/\(DBusActivatable=\).*/\1false/" /usr/share/applications/org.gnome.gedit.desktop | sudo tee /usr/local/share/applications/org.gnome.gedit.desktop

Trudy
  • 180
  • 1
  • 7