Desktop files are text files, with .desktop extension, that launches applications. In this tutorial, I wish to explore different ways you can use desktop files to run range of applications.
Search your distribution’s software repository to install them. On a typical Ubuntu like OS the terminal command would be
$ sudo apt-get install pavucontrol ffmpeg
Use following command to record your desktop.
ffmpeg -f alsa -i default -f x11grab -s 1366x768 -r 30 -i :0.0 -sameq filename.avi