Skip to content

Commit

Permalink
Cleans up "default" option for mimetypes in config pkg
Browse files Browse the repository at this point in the history
Pointed out by @emkll during review, the ".install" declarations use
directories as dest, so we can't write a file that way. Added to
postinst, along with the other setups.

Technically we could reuse the ".sd-app" mimetype config elsewhere, but
using a ".default" name for it keeps the door open on divergence in the
future, and matches what we've been testing as part of template
consolidation.
  • Loading branch information
Conor Schaefer committed Oct 22, 2020
1 parent 570592c commit 21d2e82
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions securedrop-workstation-config/debian/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ case "$1" in
systemctl restart paxctld
cp /opt/sdw/open-in-dvm.desktop /usr/share/applications/
cp /opt/sdw/mimeapps.list.sd-app /usr/share/applications/mimeapps.list
cp /opt/sdw/mimeapps.list.sd-app /opt/sdw/mimeapps.list.default
fi
;;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
mimeapps.list.sd-viewer opt/sdw/
mimeapps.list.sd-app opt/sdw/
mimeapps.list.sd-app opt/sdw/mimeapps.list.default
mimeapps.list.sd-devices-dvm opt/sdw/
open-in-dvm.desktop opt/sdw/
paxctld.conf opt/sdw/

0 comments on commit 21d2e82

Please sign in to comment.