1
0
Fork 0

Open issues from kassandra

This commit is contained in:
Malte Brandy 2018-07-29 17:03:43 +02:00
parent 22ef2847aa
commit baef6d2c6d
No known key found for this signature in database
GPG key ID: 226A2D41EF5378C9
2 changed files with 12 additions and 6 deletions

View file

@ -1,4 +1,4 @@
{ fetchFromGitHub, stdenv, ninja, meson, pkgconfig, glib, cairo, gdk_pixbuf, glib_networking, pango, libudev, xorg, libxslt, docbook_xml_xslt, git, libuuid, dbus, libsoup, docbook_xml_dtd_45, docbook5_xsl, gettext, autoconf, libtool, utillinux, libxkbcommon }:
{ fetchFromGitHub, intltool, stdenv, ninja, meson, pkgconfig, glib, cairo, gdk_pixbuf, glib_networking, pango, libudev, xorg, libxslt, docbook_xml_xslt, git, libuuid, dbus, libsoup, docbook_xml_dtd_45, docbook5_xsl, gettext, autoconf, libtool, utillinux, libxkbcommon }:
stdenv.mkDerivation rec {
name = "eventd";
version = "v0.24.1";
@ -27,6 +27,7 @@ stdenv.mkDerivation rec {
docbook_xml_xslt
docbook_xml_dtd_45
libuuid
intltool
dbus
];
preConfigure = ''

View file

@ -12,6 +12,7 @@ use task_hookrs::cache::TaskCache;
use task_hookrs::task::{Task, TaskBuilder};
use task_hookrs::priority::TaskPriority;
use task_hookrs::status::TaskStatus;
use task_hookrs::uda::UDAValue::Str as UDAStr;
use dialog::rofi::RofiDialogProvider;
use dialog::DialogProvider;
@ -297,10 +298,6 @@ impl Kassandra {
self.sort_mailbox(&*AK_MAILBOX, false)?;
// CHECK_UNREAD_CHATS
// CHECK_INBOXES
// maralorn.de
// kiva
// ak
process_task(self, &*MAINTENANCE)?;
process_task(self, &*SORT_INBOX)?;
process_task(self, &*SORT_INBOX_KIVA)?;
@ -445,7 +442,7 @@ Do you want to change the state? (Esc to cancel)",
}
pub fn sort(&mut self, uuid: &Uuid) -> Result<()> {
let task_name = print_task(self.cache.get(uuid).chain_err(|| "mising uuid")?);
let task_name = print_task(self.cache.get(uuid).chain_err(|| "missing uuid")?);
let partof = self.select_entry_point(
format!("Select Project for Task\n{}", task_name),
uuid,
@ -838,6 +835,14 @@ Do you want to change the state? (Esc to cancel)",
self.cache.write()?;
{
let task = self.cache.get(uuid).chain_err(|| "Uuid not found")?;
let github_url = task.uda().get("githuburl");
let gitlab_url = task.uda().get("gitlaburl");
if let Some(UDAStr(url)) = github_url {
str2cmd("firefox --new-window").arg(url).output()?;
}
if let Some(UDAStr(url)) = gitlab_url {
str2cmd("firefox --new-window").arg(url).output()?;
}
if task.gen_name() == Some(&"mail-task".to_owned()) {
let message_id = task.gen_id()
.chain_err(|| "mail-task has no genid")?