I
I
igorianru2019-01-03 19:23:48
Qt
igorianru, 2019-01-03 19:23:48

How to get path to Linux desktop (ubuntu) or how to install app.desktop to qt desktop (qmake)?

Hello.
Help me figure out how to get the path to the desktop for desktop.path in the app.pro file .
As a result, when installing the compiled deb package, the app.desktop file was installed on the desktop. Now it looks like this:

desktop.target = desktop
desktop.path = "/home/igor/Рабочий\ стол/"
desktop.file  += passwer.desktop

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vitaly, 2019-01-03
@vt4a2h

Well, Qt and qmake have nothing to do with it at all. You need to do this in the deb package build system. I would tell you how to do it in rpm, but I didn't deal with deb at all. But, almost 100% there is some standard environment variable or function.

J
Jacob E, 2019-01-05
@Zifix

The question is worded incorrectly. After all, you just need to copy the shortcut to your desktop after installation? Well, do it in the post install script of the deb package .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question