Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I installed AppGrid and everything works great, but all apps images was saved in 'Downloads/appgrid' folder.

How can I change folder for image saving?

By the way, I'm using Lubuntu 14.04.

share|improve this question

1 Answer 1

up vote 2 down vote accepted

SOLVED

I edited file '/usr/share/appgrid/appdata/helpers.py', around line 11 there is:

if os.geteuid() != 0:
    dd = GLib.get_user_special_dir(GLib.UserDirectory.DIRECTORY_DOWNLOAD)
    downloads_dir = dd + '/appgrid/'
    if not os.path.exists(downloads_dir):
        os.mkdir(downloads_dir) 

I comment out 'dd' and changed it to:

if os.geteuid() != 0:
 #   dd = GLib.get_user_special_dir(GLib.UserDirectory.DIRECTORY_DOWNLOAD)
    downloads_dir = '/tmp/appgrid/'
    if not os.path.exists(downloads_dir):
        os.mkdir(downloads_dir)

so, now all images are saved in '/tmp/appgrid/'.

I don't know what will happen when I update the app. Is there any way to override this?

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.