m1gin 156

Allow some protocols (like apt://) to be able to lunch in Chromium:

Source: https://bugs.launchpad.net/snapd/+bug/1776873/comments/36​​​​​​​

  1. apt-get build-dep snapd
  2. TMPDIR=$(mktemp -d)
  3. cd $TMPDIR
  4. apt-get -y source snapd
  5. sed -i 's/"http", "https", "mailto", "snap", "help"/"http", "https", "mailto", "snap", "help", "apt", "zoommtg", "slack"/' snapd-*/usersession/userd/launcher.go
  6. sed -i 's/!osutil.GetenvBool(reExecKey, true)/true/' snapd-*/cmd/cmd_linux.go
  7. cd snapd-* && dch -l$(hostname) fix_missing_app_types
  8. cd ..
  9. cd snapd-* && DEB_BUILD_OPTIONS=nocheck debuild -b -uc -us
  10. cd ..
  11. sudo dpkg -i snapd_*.deb
  12. sudo service snapd restart
  13. killall snap
Add to: