GC postinst should not modify configuration files owned by other packages
Bug #521263 reported by
Luke Faraone
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ground Control |
Fix Released
|
Critical
|
Martin Owens |
Bug Description
debian/posinst contains these lines:
# We need to update the xdg-dirs to add a
# new default directory for projects
if ! grep -q '^PROJECTS=' /etc/xdg/
echo '# Added by groundcontrol' >> /etc/xdg/
echo 'PROJECTS=Projects' >> /etc/xdg/
fi;
This has to be removed, of course, but there are three things we can do from here: (from least to most work)
1) Do nothing, and leave the file unchanged
2) Add a maintainer script for xdg-user-dirs giving us the ability to modify the configuration file
3) Get the stanza added to the configuration file by default
Related branches
tags: | added: debian-packaging |
Changed in groundcontrol: | |
status: | New → Confirmed |
importance: | Undecided → Critical |
Changed in groundcontrol: | |
status: | Confirmed → Fix Committed |
assignee: | nobody → Martin Owens (doctormo) |
milestone: | none → 1.5 |
Changed in groundcontrol: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
If the xdg/user- dirs.defaults is left unchanged then Ground Control will assume that it is always deactivated.
It will never work.
We need someone to solve this problem, because this is the best I could come up with. If it's not allowed, then I'm all out of ideas and a real MOTU should let us know what the right way of doing this is.