After editing context menu entries (by editing files in
/usr/share/contractor) I have to restart the file manager to see the changes.
How to restart Pantheon Files with a command so that I don't have to log out and in?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
Run the command
pkill pantheon-files in the terminal The
pkill command sends a signal to terminate the process with name
pantheon-files; a process is a running instance of a program. Reopen the file manager by clicking on the icon on the dock or from the application menu. By clicking on the icon, a new process is started for the program.
For me at least for Elementary Juno the process shows as io.elementary.files - if i kill these processes then it will close.
One easy way to do this is use htop, press F4,and search for io.elementary.files, select a process then F9 to kill.