[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: Portability of KDE Applications
From:       Никита Сиргиенко <warquark () gmail ! com>
Date:       2019-08-22 9:38:21
Message-ID: CAEBv07q=izZSkNJiWzF46UB7nB=yXg0sf8xvV_tihVY02PEJWw () mail ! gmail ! com
[Download RAW message or body]

> Are you only targeting Linux, or also other operating systems? For Linux,
appimage probably is the best solution since it is the simplest for the end
user.
Well, we also trying to target on Windows - this is also bring other
problems, but the application portability problems presents here too.

Also, thanks all for answers.

=D1=87=D1=82, 22 =D0=B0=D0=B2=D0=B3. 2019 =D0=B3. =D0=B2 11:22, Boudewijn R=
empt <boud@valdyas.org>:

> 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,
> >
> > Has anyone had issues with KDE Apps (based on kde frameworks)
> portability?
> >
> > 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). No=
t
> sure about knsrc files since the last attempt at integrating GHNS into
> Krita was a failure.
>
> > Obviously, I can forward-pass installation prefix path, binary path, et=
c
> > from Cmake to the aplication, but I am interested, is there support for
> > situtation like this from KDE frameworks?
> >
> > 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
> settings
> > 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 o=
ur
> > 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,
> appimage probably is the best solution since it is the simplest for the e=
nd
> user.
>
>
> --
> Boudewijn Rempt | https://www.valdyas.org | https://www.krita.org

[Attachment #3 (text/html)]

<div dir="ltr"><div class="gmail_default" style="font-size:small">&gt; <span \
class="gmail-im"></span> Are you only targeting Linux, or also other operating \
systems? For  Linux, appimage probably is the best solution since it is the simplest 
for the end user.</div><div class="gmail_default" style="font-size:small">Well, we \
also trying to target on Windows - this is also bring other problems, but the \
application portability problems presents here too.</div><div class="gmail_default" \
style="font-size:small"><br></div><div class="gmail_default" \
style="font-size:small">Also, thanks all for answers.</div></div><br><div \
class="gmail_quote"><div dir="ltr" class="gmail_attr">чт, 22 авг. 2019 г. в \
11:22, Boudewijn Rempt &lt;<a \
href="mailto:boud@valdyas.org">boud@valdyas.org</a>&gt;:<br></div><blockquote \
class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex">On woensdag 21 augustus 2019 19:18:10 CEST \
Никита Сиргиенко wrote:<br> &gt; Hi all,<br>
&gt; <br>
&gt; Has anyone had issues with KDE Apps (based on kde frameworks) portability?<br>
&gt; <br>
&gt; I mean, the app can use different types of file: .rc, .knsrc, .png,<br>
&gt; additinal binary files, etc<br>
&gt; The problem appears, if you installed this files non standart installetion<br>
&gt; prefix, like /opt.<br>
<br>
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 Krita was a failure.<br> <br>
&gt; Obviously, I can forward-pass installation prefix path, binary path, etc<br>
&gt; from Cmake to the aplication, but I am interested, is there support for<br>
&gt; situtation like this from KDE frameworks?<br>
&gt; <br>
&gt; Just an example: the app have a few .rc files for menus, can I set<br>
&gt; additional search path for kde core addons (better from cmake, but settings<br>
&gt; path for example from main.cpp not bad too, if it need done only one time),<br>
&gt; and use not absolute path?<br>
<br>
That&#39;s solved by going the qrc route.<br>
<br>
&gt; I know, that Kde apps more target to kde platform, but the application is a<br>
&gt; part of KdeEdu project, and portability is very important for us (for our<br>
&gt; application), because we target for students, and the students often<br>
&gt; haven&#39;t administration rights on work computers, used for education.<br>
<br>
Are you only targeting Linux, or also other operating systems? For Linux, appimage \
probably is the best solution since it is the simplest for the end user.<br> <br>
<br>
-- <br>
Boudewijn Rempt | <a href="https://www.valdyas.org" rel="noreferrer" \
target="_blank">https://www.valdyas.org</a> | <a href="https://www.krita.org" \
rel="noreferrer" target="_blank">https://www.krita.org</a></blockquote></div>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic