[Kstars-devel] How does one set the install prefix for QStandardPaths?

Jasem Mutlaq mutlaqja at ikarustech.com
Sat Aug 16 06:44:52 UTC 2014


Hi Akarsh,

I believe it is suppose to pick it up from environment variables. With
neon5, I just use neon5-env and all environment variables setup and ready,
and then I can launch any KF5 apps from within the shell without any
issues. Here are my environment variables:

SESSION=kde-plasma
XDG_DATA_HOME=/home/jasem/.project-neon5-kde//local/share
KDEHOME=/home/jasem/.project-neon5-kde/
KDEVARTMP=/var/tmp/project-neon5-kde-jasem
DEFAULTS_PATH=/usr/share/gconf/kde-plasma.default.path
XDG_CONFIG_DIRS=/opt/project-neon5/etc/xdg:/etc/xdg/xdg-kde-plasma:/usr/share/upstart/xdg:/etc/xdg:/etc/xdg
DESKTOP_SESSION=kde-plasma
GDMSESSION=kde-plasma
XDG_CONFIG_HOME=/home/jasem/.project-neon5-kde//config
XDG_CACHE_HOME=/home/jasem/.project-neon5-kde//cache
XDG_DATA_DIRS=/opt/project-neon5/share:/usr/share:/usr/share/kde-plasma:/usr/local/share/:/usr/share/:/usr/share
KDETMP=/tmp/project-neon5-kde-jasem
QT_PLUGIN_PATH=/opt/project-neon5/plugins:/opt/project-neon5/lib/x86_64-linux-gnu/plugins:/opt/project-neon5/lib/x86_64-linux-gnu/plugins/kf5:/home/jasem/.kde/lib/kde4/plugins/:/usr/lib/kde4/plugins/

Regards,
Jasem




On Fri, Aug 15, 2014 at 11:02 AM, Akarsh Simha <akarshsimha at gmail.com>
wrote:

> Hi folks
>
> Sorry to be asking what might be a newbie question, but I can't seem
> to find out how to do this, so here goes.
>
> I'm installing the KF5 branch in some prefix. It installs fine, but it
> cannot find any of its resources, which are in $PREFIX/share/kstars,
> because QStandardPaths is looking for them in:
> ~/.local/share/kstars
> /usr/local/share/kstars
> /usr/share/kstars
> as reported by the error dialog (see my most recent commit for this
> change).
> How do I tell QStandardPaths to search my ${PREFIX}?
>
> Regards
> Akarsh
> _______________________________________________
> Kstars-devel mailing list
> Kstars-devel at kde.org
> https://mail.kde.org/mailman/listinfo/kstars-devel
>



-- 
Best Regards,
Jasem Mutlaq
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kstars-devel/attachments/20140816/6bac99c5/attachment.html>


More information about the Kstars-devel mailing list