right click on desktop; how to modify?

Ralf Mardorf ralf.mardorf at alice-dsl.net
Tue Aug 22 10:38:24 CEST 2017


On Tue, 22 Aug 2017 09:09:58 +1000, Jim Dean wrote:
>This and associated questions have been asked a number of times on the
>forum and the answer is always the same. It requires a code change as
>that menu is hardcoded

Actually a workaround would be to write a very simple xfce4-terminal
wrapper script. If it gets launched with the Desktop path, launch it
with the desired options instead, else don't change the options.

On Debian based distros, such as Ubuntu it's possible to use the
"divert" command. IIRC the line would look like this (if not, Google
is your temporarily friend):

sudo dpkg-divert --add --rename --divert /usr/bin/xfce4-terminal.real /usr/bin/xfce4-terminal

/usr/bin/xfce4-terminal would be renamed to /usr/bin/xfce4-terminal.real ,
even if it should be upgraded, it automatically would be renamed.

Now it's possible to store a wrapper script /usr/bin/xfce4-terminal .



More information about the Xfce mailing list