The source project of this merge request has been removed.
fix the case where .xsession contains a full path
Some users (me) may have a symlink ~/.xsession
to any X session file in /etc/X11/Sessions
. These often contain full paths to launch the WM. This MR strips the directory from the filename. This way ufetch
only prints the WM name, as opposed to the full path.