Add slack desktop file using chromium

Due to the new forced and hyped huddle feature.
This is not working with firefox …

I also streamline the definition of all the browser desktop files.
This commit is contained in:
Daniel Siepmann 2023-01-04 15:46:11 +01:00
parent 75fd0a2896
commit c03eb3d353
Signed by: Daniel Siepmann
GPG key ID: 33D6629915560EF4

View file

@ -95,26 +95,31 @@
};
desktopEntries = {
toggl = {
name = "Toggl Time Tracking";
type = "Application";
exec = "firefox --new-instance -P toggl --class=\"time-tracking\" https://track.toggl.com/timer";
};
mailhog-ui = {
name = "Mailhog";
type = "Application";
exec = "firefox --new-instance -P mailhog --class=\"mailhog\" https://mailhog.localhost";
};
microsoft-teams = {
name = "Microsoft Teams";
type = "Application";
exec = "${pkgs.chromium}/bin/chromium --class=\"chat\" --new-window --user-agent=\"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36\" --new-window --app=https://teams.microsoft.com/";
exec = "${pkgs.chromium}/bin/chromium --class=\"chat\" --new-window --app=https://teams.microsoft.com/ --user-agent=\"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36\"";
};
slack = {
name = "Slack";
type = "Application";
exec = "${pkgs.chromium}/bin/chromium --class=\"chat\" --new-window --app=https://slack.com/";
};
phone = {
name = "Phone (Sipgate)";
type = "Application";
exec = "${pkgs.chromium}/bin/chromium --class=\"phone\" --new-window --app=https://app.sipgate.com/w3/phone/phone";
};
toggl = {
name = "Toggl Time Tracking";
type = "Application";
exec = "firefox --class=\"time-tracking\" --new-instance -P toggl https://track.toggl.com/timer";
};
mailhog-ui = {
name = "Mailhog";
type = "Application";
exec = "firefox --class=\"mailhog\" --new-instance -P mailhog https://mailhog.localhost";
};
};
mime.enable = true;