[genivi-dlt] [Patch] Default directory usage for Windows and Linux

Helwing, Lutz Lutz_Helwing at mentor.com
Thu Jan 21 11:31:29 EST 2016

Hi all,

at the moment most default directories are based on the application path determined by QApplication::applicationDirPath().
There are several #ifdef Sections for Windows/Linux.

The current Problem is that one of our teams has a "Ready To Run" installation of DLT-Viewer installed on a Network drive, used by multiple users. As the current application path is used for the settings/config.ini file, every user is changing the settings in the same config.ini file.

The Linux code is often much better, as the config files are stored in the path determined by QDir::homepath(). So the config files is always stored in a user depended path.

Furthermore the default cache path is currently also determined by QApplication::applicationDirPath(). Which is not very performant when using network drives. Instead QDir::tempPath should be used

The proposed patch shows which path settings should be changed. For a simpler and cleaner code, the Linux path variant is preferred, even for Windows. So with Windows i would even suggest to use e.g.


which would expand to "c:\Users\<USERNAME>\.dlt\filters\"

Please discuss on the list if this would introduce any problems to your setups.
If no objections arise within one week from now i will integrate this change into master.



Lutz Helwing
Senior Engineer

+49 (89) 57096 - 297<tel:+49%287721%294060-422>


+49 (89) 57096 - 400

<mailto:Oliver_Hartfuss at mentor.com>lutz_helwing at mentor.com<mailto:lutz_helwing at mentor.com>

[Mentor                                                    Automotive]
Mentor Graphics Development (Deutschland) GmbH
Arnulfstrasse 201
D-80634 München

Mentor Graphics Development (Deutschland) GmbH
Geschäftsführung: Dean Freed, Walter Vermijs, Shannon Wetzel
Handelsregister: Amtsgericht Freiburg i.Br., HRB 705237
Sitz der Gesellschaft: Peterzeller Straße 8, 78048 Villingen-Schwenningen
USt-Id Nummer: DE268786819

Confidentiality Notice: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by return e-mail and destroy all copies of the original message.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.genivi.org/pipermail/genivi-diagnostic-log-and-trace_lists.genivi.org/attachments/20160121/17f93c40/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 7787 bytes
Desc: image001.png
URL: <http://lists.genivi.org/pipermail/genivi-diagnostic-log-and-trace_lists.genivi.org/attachments/20160121/17f93c40/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Default-directory-usage-for-WIN-and-LINUX-Config-Fil.patch
Type: text/x-patch
Size: 2693 bytes
Desc: 0001-Default-directory-usage-for-WIN-and-LINUX-Config-Fil.patch
URL: <http://lists.genivi.org/pipermail/genivi-diagnostic-log-and-trace_lists.genivi.org/attachments/20160121/17f93c40/attachment.patch>

More information about the genivi-diagnostic-log-and-trace mailing list