From kde-devel Thu Aug 22 08:22:00 2019 From: Boudewijn Rempt Date: Thu, 22 Aug 2019 08:22:00 +0000 To: kde-devel Subject: Re: Portability of KDE Applications Message-Id: <30153753.SoHxmLJVjm () boud-thinkstation-e31> X-MARC-Message: https://marc.info/?l=kde-devel&m=156646216713933 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--nextPart22092328.98ifRCp3X3" --nextPart22092328.98ifRCp3X3 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" On woensdag 21 augustus 2019 19:18:10 CEST =D0=9D=D0=B8=D0=BA=D0=B8=D1=82= =D0=B0 =D0=A1=D0=B8=D1=80=D0=B3=D0=B8=D0=B5=D0=BD=D0=BA=D0=BE wrote: > Hi all, >=20 > Has anyone had issues with KDE Apps (based on kde frameworks) portability? >=20 > I mean, the app can use different types of file: .rc, .knsrc, .png, > additinal binary files, etc > The problem appears, if you installed this files non standart installetion > prefix, like /opt. I would put most of those files in in the executable using the qrc system. = That works for icons, settings rc file, xmlgui rc files (which, for Krita, = I renamed to .xmlgui, since the rc suffix was confusing all my users). Not = sure about knsrc files since the last attempt at integrating GHNS into Krit= a was a failure. > Obviously, I can forward-pass installation prefix path, binary path, etc > from Cmake to the aplication, but I am interested, is there support for > situtation like this from KDE frameworks? >=20 > Just an example: the app have a few .rc files for menus, can I set > additional search path for kde core addons (better from cmake, but settin= gs > path for example from main.cpp not bad too, if it need done only one time= ), > and use not absolute path? That's solved by going the qrc route. > I know, that Kde apps more target to kde platform, but the application is= a > part of KdeEdu project, and portability is very important for us (for our > application), because we target for students, and the students often > haven't administration rights on work computers, used for education. Are you only targeting Linux, or also other operating systems? For Linux, a= ppimage probably is the best solution since it is the simplest for the end = user. =2D-=20 Boudewijn Rempt | https://www.valdyas.org | https://www.krita.org --nextPart22092328.98ifRCp3X3 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQSMAF7AhefiiFQpoYR1oJyAKY3l3wUCXV5QqAAKCRB1oJyAKY3l 3yJ+AKDIJ11rYXrmAHVoBBXirVjLuWVEtACgg6gSMNsqUtcgDaNdbveMSc3IbOY= =1/Q0 -----END PGP SIGNATURE----- --nextPart22092328.98ifRCp3X3--