https://bugzilla.novell.com/show_bug.cgi?id=395715
User rpmcruz@alunos.dcc.fc.up.pt added comment
https://bugzilla.novell.com/show_bug.cgi?id=395715#c1
Ricardo Cruz changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |rpmcruz@alunos.dcc.fc.up.pt
--- Comment #1 from Ricardo Cruz 2008-06-07 18:41:30 MDT ---
As a side note, the combination works from a yast tool in GTK. Just not in the
yast control center. Most users however will try to follow the bug report
instructions from the control center, so it makes sense to support it from
there...
This is btw what you need to do to implement -- just ask for a filename to then
execute the tool /sbin/save_y2logs:
void YGUI::askSaveLogs()
{
string filename = askForFileOrDirectory (GTK_FILE_CHOOSER_ACTION_SAVE,
"/tmp/y2logs.tgz", "*.tgz *.tar.gz", "Save y2logs to...");
if (!filename.empty()) {
std::string command = "/sbin/save_y2logs";
command += " '" + filename + "'";
yuiMilestone() << "Saving y2logs: " << command << endl;
int ret = system (command.c_str());
if (ret == 0)
yuiMilestone() << "y2logs saved to " << filename <<
endl;
else {
char *error = g_strdup_printf (
"Error: couldn't save y2logs: \"%s\" (exit
value: %d)",
command.c_str(), ret);
yuiError() << error << endl;
errorMsg (error);
g_free (error);
}
}
}
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.