@masc
A word to the desktop-files in Linux
This is the end of the MLVAPP.pro-file:
#linux-g++ {
#Add desktop file
# EXTRA_FILES += \
# mlvapp.desktop
# for(FILE,EXTRA_FILES){
# QMAKE_POST_LINK += $$quote(cp $${FILE} $${DESTDIR/usr/share/applications/}$$escape_expand(\n\t))
# }
#}
I guess, this was a try to install a desktop file. But this cannot work for two reasons:
First:
"/usr/share/applications" contains desktop-files, that´s true. But these deskop-files are system-wide. For doing something system-wide in Linux, you must logged in as root or use sudo. You will be asked for the root-password then, to proceed.
Second:
"$$quote(cp $${FILE} $${DESTDIR/usr/share/applications/}$$escape_expand(\n\t))"
What is DESTDIR? /usr/share/application is a valid path in Linux. The makefile, created by qmake-qt5, shows:
cp mlvapp.desktop
The destination is missing.
I for my part do not want to install mlvapp system-wide. I want it locally in my home-folder ( /home/myusername/ ). So my way for building mlvapp is:
- download the static version from ffmpeg for linux from the ffmpeg-website
- copy ffmpeg to ~/bin
- cloning mlvapp from git
- making the buildfile with qmake-qt5
- compiling with make
I wrote a little bash-script for doing this, because sometimes I´m a bit lazy

OK, mlvapp is compiled. All I like to have know, is a little desktop-file. Not because it´s necessary for mlvapp to start. No, I like nice little buttons and icons to press. (That´s a reason, I love to visit the "Deutsches Museum in München". Many buttons to press there...
I do not want to have this desktop-file system-wide to avoid using the root-password. Fortunately, I can create this desktop-file locally in my home-folder. OK, which file must go to what place, now?
mlvapp.desktopTheat goes to a hidden folder in $HOME
$HOME/.local/share/applications
MLVAPP.png (in RetinaIMG)The png-icon has a resolution of 512x512 px. So it must go to another hidden folder in my home-directory
$HOME/.local/share/icons/hicolor/512x512/apps
Another possibility should be, I guess:
$HOME/./icons/hicolor/512x512/apps
mlvappThe bin-file should go to a place, which is describes in the $PATH envirement-variable
$HOME/bin
Did I tell you, that I´m sometimes a bit lazy. So I wrote some lines into the MLVAPP.pro-file. Now qmake-qt5 and make are doing the job for me. Now I have the mlvapp-starter in the multimedia-part of the KDE-Quickstart-menue. And I appended it to my desktop.
#linux-g++ {
#Add desktop file
# EXTRA_FILES += \
# mlvapp.desktop
# for(FILE,EXTRA_FILES){
# QMAKE_POST_LINK += $$quote(cp $${FILE} $${DESTDIR/usr/share/applications/}$$escape_expand(\n\t))
# }
#}
target.path = $$(HOME)/bin
desktop.path = $$(HOME)/.local/share/applications
desktop.files += mlvapp.desktop
icon512.path = $$(HOME)/.local/share/icons/hicolor/512x512/apps
icon512.files += RetinaIMG/MLVAPP.png
INSTALLS += target desktop icon512
The way to install mlvapp and a desktop-file is now:
qmake-qt5
make
make install
Note, that is only valid for Linux-openSUSE with KDE. It should run on Kubuntu as well. Ubuntu with gnome or Ubuntumate could b different. I cannot test Gnome, but I have ubuntumate. I will give ubuntumate a try next days