19 lines
508 B
Nix

{ config, pkgs, lib, ... }:
{
xdg = {
desktopEntries = {
packettracer8_workaround = {
name = "Cisco Packet Tracer 9; Opening Exams Workaround";
exec = "${pkgs.ciscoPacketTracer9}/bin/packettracer9 %u";
type = "Application";
mimeType = [ "x-scheme-handler/pttp" ];
noDisplay = true;
};
};
mimeApps.defaultApplications = {
"x-scheme-handler/pttp" = [ "packettracer9_workaround.desktop" ];
};
};
}