Bug 1615742

Summary: pmchart shows /root folder by default when we open a view
Product: Red Hat Enterprise Linux 8 Reporter: nikhil kshirsagar <nkshirsa>
Component: pcpAssignee: Nathan Scott <nathans>
Status: CLOSED ERRATA QA Contact: Jan Kurik <jkurik>
Severity: low Docs Contact:
Priority: unspecified    
Version: 8.0CC: agerstmayr, jkurik, mgoodwin, mnewsome, nathans, patrickm, pcp-maint
Target Milestone: rcKeywords: Bugfix, Triaged
Target Release: 8.5Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: pcp-5.3.0-4.el8 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-11-09 17:49:39 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
screenshot none

Description nikhil kshirsagar 2018-08-14 07:15:49 UTC
Created attachment 1475763 [details]
screenshot

Description of problem:
when we open a view in pmchart, the default folder is /root. It should be previous folder used for earlier archives loaded in the chart

Version-Release number of selected component (if applicable):
pcp-3.12.2-5.el7.x86_64



Steps to Reproduce:
1. start pmchart, click new tab
2. create a chart using any archive in /var/log/pcp/pmlogger/...
3. click open view and click on "archive" button and see the folder shown is /root not earlier one used which has all the archives


Expected results:
for convenient, older archives folder should be loaded by default, i shouldn't have to navigate again to /var/log/pcp/pmlogger/...

Comment 8 Nathan Scott 2021-05-14 01:54:43 UTC
This is fixed upstream now with the following commit:

commit f15e34b06bd25dce5fafa68eeee04f2b5a27e9a0
Author: Nathan Scott <nathans>
Date:   Fri May 14 11:10:56 2021 +1000

    pmchart: save changes to users prefered archive location
    
    Use the users QSettings configuration file to hold any new
    preference given for archive locations, and restore this at
    pmchart startup time.
    
    Similarly save and restore locations for exported images.
    
    While in here, some janitorial work has been done in terms
    of dropping paths to configuration files not used in many,
    many years now.
    
    Resolves Red Hat BZ #1615742

Comment 11 errata-xmlrpc 2021-11-09 17:49:39 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (pcp bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2021:4171