# Is the 5.2 User Directory in the same place for the various linux distributions?

**URL:** <https://gramps.discourse.group/t/is-the-5-2-user-directory-in-the-same-place-for-the-various-linux-distributions/5076>\
**Category:** Beta Testing\
**Tags:** flatpak\
**Created:** [March 8, 2024, 3:14am UTC](https://gramps.discourse.group/t/is-the-5-2-user-directory-in-the-same-place-for-the-various-linux-distributions/5076 "2024-03-08T03:14:27Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![emyoulation](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/emyoulation/32/67_2.png) [@emyoulation](https://gramps.discourse.group/u/emyoulation)\
**Post date:** [March 8, 2024, 3:14am UTC](https://gramps.discourse.group/t/is-the-5-2-user-directory-in-the-same-place-for-the-various-linux-distributions/5076/1 "2024-03-08T03:14:27Z")

</div>

Why can’t I find the 5.2 gramps.ini in the same approximate place anymore?

On my Linux Fedora (for user “districtsupport”), the 5.1 version of Gramps stored the `gramps.ini` in:  
`/home/districtsupport/.gramps/gramps51`  
is wasn’t in:  
`/home/districtsupport/.gramps/gramps52`

While trying to update the wiki’s section about preferences, search tracked the 5.2 `gramps.ini` file to:  
`/home/districtsupport/.var/app/org.gramps_project.Gramps/config/gramps/gramps52`

Is that right?

(On Windows, the User Directory moved … but the path just changed from `%appdata%/gramps/gramps52` to `%``local``appdata%/gramps/gramps52` … which is reasonable.)

---

<div class="post-metadata">

**Author:** ![ennoborg](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/ennoborg/32/4659_2.png) [@ennoborg](https://gramps.discourse.group/u/ennoborg)\
**Post date:** [March 8, 2024, 10:44am UTC](https://gramps.discourse.group/t/is-the-5-2-user-directory-in-the-same-place-for-the-various-linux-distributions/5076/2 "2024-03-08T10:44:39Z")

</div>

It’s in the ‘right’ place when I run or install 5.2 from its source code. Are you running the Flatpak?

---

<div class="post-metadata">

**Author:** ![emyoulation](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/emyoulation/32/67_2.png) [@emyoulation](https://gramps.discourse.group/u/emyoulation)\
**Post date:** [March 8, 2024, 1:24pm UTC](https://gramps.discourse.group/t/is-the-5-2-user-directory-in-the-same-place-for-the-various-linux-distributions/5076/3 "2024-03-08T13:24:09Z")

</div>

> [@ennoborg](#):
>
> Are you running the Flatpak?

Ahhh… that’s it. Thanks.

I am new enough to Linux that “flatpak” read as no more than a term for a compression approach. Did not realize it sandboxed the application being installed.

Hadn’t really associated PortableApps implementations in those terms either.

---

<div class="post-metadata">

**Author:** ![Nick-Hall](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/nick-hall/32/95_2.png) [@Nick-Hall](https://gramps.discourse.group/u/Nick-Hall)\
**Post date:** [March 8, 2024, 1:52pm UTC](https://gramps.discourse.group/t/is-the-5-2-user-directory-in-the-same-place-for-the-various-linux-distributions/5076/4 "2024-03-08T13:52:22Z")

</div>

> [@emyoulation](#):
>
> Why can’t I find the 5.2 gramps.ini in the same approximate place anymore?

If the legacy directory `~/.gramps` exists, then it will continue to be used, otherwise we follow the [XDG base directory specification](https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html).

The default locations are:

Configuration files: `~/.config/gramps`  
Cache files: `~/.cache/gramps`  
Data files: `~/.local/share/gramps`

All these paths can be customised using environment variables. The legacy paths can also be forced by setting the `GRAMPSHOME` environment variable.

The defaults should be fine for most people though.

---

<div class="post-metadata">

**Author:** ![ennoborg](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/ennoborg/32/4659_2.png) [@ennoborg](https://gramps.discourse.group/u/ennoborg)\
**Post date:** [March 8, 2024, 1:54pm UTC](https://gramps.discourse.group/t/is-the-5-2-user-directory-in-the-same-place-for-the-various-linux-distributions/5076/5 "2024-03-08T13:54:09Z")

</div>

> [@emyoulation](#):
>
> Hadn’t really associated PortableApps implementations in those terms either.

Me neither, but that’s because in that, there’s no difference between 5.1 and 5.2. They’re both inside K:\PortableApps\GrampsPortable\Data\settings

But maybe I read your remark wrong, and does the Flatpak for 5.1 use the same sandbox as 5.2.

---

<div class="post-metadata">

**Author:** ![emyoulation](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/emyoulation/32/67_2.png) [@emyoulation](https://gramps.discourse.group/u/emyoulation)\
**Post date:** [March 8, 2024, 3:12pm UTC](https://gramps.discourse.group/t/is-the-5-2-user-directory-in-the-same-place-for-the-various-linux-distributions/5076/6 "2024-03-08T15:12:11Z")

</div>

> [@Nick-Hall](#):
>
> otherwise we follow the XDG base directory specification.

But that is a change for 5.2, right?

(The [“Is XDG Base Directory standard support in 5.2” came up as a question on the FaceBook group](https://www.facebook.com/groups/370692133138445/posts/2422946201246351/?comment_id=2422965907911047& __cft__ %5B0%5D=AZVxHqyjhfGUZO_COlBIhVfKzgIVOBAAPyOfKr8SkcfWYdFSVsqMzasT-bTE6_hhkOYzTolngssrVA8fm6p_4S1qSPrmcsn_lfhUvTZfrjN5CYtuiRSghfFJqHBWmjXLfcfGbiKO6Nv-wAK8qpL2r1copa0wH2p5Ap2YEwekWwhwv_5wus4_N7EwsCDyool8cag& __tn__ =R%5D-R). It seemed important to the poster… so I saw an opportunity to add to the wiki. But after confirming there was bullet point was in the Change List, I asked what benefit it provides. They were uncertain beyond the impression that it “keeps my $HOME clean and organized”.)

(While searching for that XDG-related question, found an interesting Crostini (Linux on ChromeOS) Reddit thread about [Gramps default image view](https://www.reddit.com/r/Crostini/comments/ggmlu4/default_image_viewer_from_within_gramps/) from 4 years ago.)

> [@ennoborg](#):
>
> But maybe I read your remark wrong, and does the Flatpak for 5.1 use the same sandbox as 5.2

Good question. Hadn’t used the FlatPak before.

I am trying gain a better understanding of the variations of installation. (Obviously, they must be significant… or there wouldn’t be so many distinctions of installing for different distributions.) Many of our answers are couched relative to the User Directory. So it is important to determine if the [Gramps User Directory](https://www.gramps-project.org/wiki/index.php/Gramps_Glossary#user_directory) linkified content needs to be expanded.

---

<div class="post-metadata">

**Author:** ![emyoulation](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/emyoulation/32/67_2.png) [@emyoulation](https://gramps.discourse.group/u/emyoulation)\
**Post date:** [March 8, 2024, 4:52pm UTC](https://gramps.discourse.group/t/is-the-5-2-user-directory-in-the-same-place-for-the-various-linux-distributions/5076/7 "2024-03-08T16:52:49Z")

</div>

Appended is a script that Perplexity composed for Fedora 39 to find which versions of Gramps are installed via various install methods. Can a generalized script be developed for any Linux distro?

 

```python
# Search for Gramps applications installed via Flatpak
echo "Gramps applications installed via Flatpak:"
flatpak list --app --columns=application,version,arch,origin,installation,app | grep Gramps

# Search for Gramps applications installed via DNF
echo "Gramps applications installed via DNF:"
dnf list installed | grep gramps

# Search for Gramps applications installed via RPM
echo "Gramps applications installed via RPM:"
rpm -qa | grep gramps

# Add more commands here to search for Gramps applications installed via other methods if needed

```

---

<div class="post-metadata">

**Author:** ![S.Mackay](https://avatars.discourse-cdn.com/v4/letter/s/b5a626/32.png) [@S.Mackay](https://gramps.discourse.group/u/S.Mackay)\
**Post date:** [March 9, 2024, 2:01pm UTC](https://gramps.discourse.group/t/is-the-5-2-user-directory-in-the-same-place-for-the-various-linux-distributions/5076/8 "2024-03-09T14:01:29Z")

</div>

There were various complaints for the Gramps 5.1 and earlier flatpaks opening too many holes in the flatpak sandbox. Specifically, there were complaints about the flatpak having access to the entire home directory even though a system install of Gramps would have that access too. So the first Gramps 5.2 flatpak has restricted the sandbox down to Pictures, Documents, and Downloads.

The easiest way to open up access to other directories in the first Gramps 5.2 flatpak is to install flatseal from flathub. Flatseal gives you a graphical interface to change sandbox permissions of any flatpak app on your system.

Another way of opening up more directories is to use cli commands to manually adjust permissions. If you need help with this, then please use the flatseal app instead because it is a lot easier with fewer chances of mistakes.

I am testing a second Gramps 5.2 flatpak with access to more data directories. I will make a new post and tag Nick.

---

<div class="post-metadata">

**Author:** ![ennoborg](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/ennoborg/32/4659_2.png) [@ennoborg](https://gramps.discourse.group/u/ennoborg)\
**Post date:** [March 9, 2024, 5:34pm UTC](https://gramps.discourse.group/t/is-the-5-2-user-directory-in-the-same-place-for-the-various-linux-distributions/5076/9 "2024-03-09T17:34:51Z")

</div>

I don’t think so, because they all have their own package managers. Debian and its derivatives often use apt, on the [command line](https://gramps-project.org/wiki/index.php/Gramps_5.2_Wiki_Manual_-_Command_Line), and they also often have synaptic, and even dnf was new to me when I tried Fedora. I knew rpm from RedHat, and that’s about it.

If we want, we can also distribute things as Snaps, and Appimages:

> **[Comparison Between Snaps, Flatpak, and AppImage Packages | Baeldung on Linux](https://www.baeldung.com/linux/snaps-flatpak-appimage)**
>
> Learn about various containerized application packaging formats in Linux.

---

<div class="post-metadata">

**Author:** ![S.Mackay](https://avatars.discourse-cdn.com/v4/letter/s/b5a626/32.png) [@S.Mackay](https://gramps.discourse.group/u/S.Mackay)\
**Post date:** [March 12, 2024, 2:15am UTC](https://gramps.discourse.group/t/is-the-5-2-user-directory-in-the-same-place-for-the-various-linux-distributions/5076/10 "2024-03-12T02:15:46Z")

</div>

The Gramps 5.2.0-1 flatpak went back to full home directory access like the Gramps 5.1 flatpaks and any system installation.

---

<div class="post-metadata">

**Author:** ![ennoborg](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/ennoborg/32/4659_2.png) [@ennoborg](https://gramps.discourse.group/u/ennoborg)\
**Post date:** [March 13, 2024, 3:32pm UTC](https://gramps.discourse.group/t/is-the-5-2-user-directory-in-the-same-place-for-the-various-linux-distributions/5076/11 "2024-03-13T15:32:55Z")

</div>

And I think it needs some expansion indeed, because with XDG, there is no single user directory anymore.

And that triggers another question: Are add-ons config or data?

---

<div class="post-metadata">

**Author:** ![Nick-Hall](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/nick-hall/32/95_2.png) [@Nick-Hall](https://gramps.discourse.group/u/Nick-Hall)\
**Post date:** [March 13, 2024, 5:18pm UTC](https://gramps.discourse.group/t/is-the-5-2-user-directory-in-the-same-place-for-the-various-linux-distributions/5076/12 "2024-03-13T17:18:51Z")

</div>

> [@ennoborg](#):
>
> And that triggers another question: Are add-ons config or data?

We have put them under the data directory.
