Home > Krita > Enhancements in Krita GHNS Utility

Enhancements in Krita GHNS Utility

Hi Kde Community,

 In this week, I interacted with my mentor more and learned some new issues and committed two commits for GHNS.

 1). commit – 6cd1bbf92cdd0259d7a220ff4c9dc8a848947afb

 After downloading the resources using GHNS, they are not updating automatically in the docker section. This commit solves the problem by introducing a new function named “loadingResourceFile()” in libs/widgets/KoResourceServer.h. This function creates a resource using the downloaded file and adds it to the Resource server, which helps to upload the function.

 2). commit – f4e5d3a75008a93e25fc0b3491130fb84c357ef7

 In GHNS download dialog, once we select uninstall the resources, the resources are need to remove in docker but they are not updating. In this commit, this one is solved by using the above commit logic only.

Pic which shows the GHNS Dialog

 3). Thing I didn’t understand.

 -> While GHNS is running, it is giving the wrong address of the downloaded file

 Ex: /home/legend/.kde/share/apps/krita/paintoppresets//141694-TestPreset2.kpp — this one is the output address.

It should look like this /home/legend/.kde/share/apps/krita/paintoppresets/141694-TestPreset2.kpp.

here InstallPath = /home/legend/.kde/share/apps/krita/paintoppresets

FileName = 141694-TestPreset2.kpp

So, I think while joining these two, something is wrong. I didn’t getwhere this code is ?

 -> Another task is I didn’t get where GHNS is loading the status of the installed files. This one is used to remove files using remove button in the docker.

 I will fix these things as soon as possible. But this week, I enjoyed a lot in working with my mentor. 🙂

Advertisements
Categories: Krita
  1. Dave
    May 16, 2011 at 7:02 pm

    Hi. Just a thought. I notice you have the path coded as InstallPath = /home/legend/.kde/share/apps/krita/paintoppresets. What happens on distros such as openSUSE where the correct path would normally be InstallPath = /home/legend/.kde4/share/apps/krita/paintoppresets ?

    Keep up the good work!
    Dave

    • May 16, 2011 at 8:45 pm

      okay, I didn’t think about different Distros till now. I will look into that also . Thanks 🙂

  2. May 16, 2011 at 10:14 pm

    That path would be provided by KDE anyway (since the “legend” part is unknown, of course).
    The KDE equivalent of QDesktopServices::storageLocation(QDesktopServices::DataLocation), or something like that 🙂

  3. cloose
    May 17, 2011 at 2:40 pm

    srikanth2legend :
    okay, I didn’t think about different Distros till now. I will look into that also . Thanks

    Most .knsrc files I saw used TargetDir instead of InstallPath. Maybe something like TargetDir=paintoppresets works?

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: