XRRScreenResources *res = XRRGetScreenResources(fl_display, DefaultRootWindow(fl_display));
if (!res) {
- vlog.error(_("Failed to get XRRScreenResources for root window"));
+ vlog.error(_("Failed to get system monitor configuration"));
return -1;
}
XRRCrtcInfo *crtc = XRRGetCrtcInfo(fl_display, res, res->crtcs[i]);
if (!crtc) {
- vlog.error(_("Failed to get XRRCrtcInfo for crtc %d"), i);
+ vlog.error(_("Failed to get information about CRTC %d"), i);
continue;
}
if (monitor_found) {
XRROutputInfo *output = XRRGetOutputInfo(fl_display, res, crtc->outputs[j]);
if (!output) {
- vlog.error(_("Failed to get XRROutputInfo for crtc %d, output %d"), i, j);
+ vlog.error(_("Failed to get information about output %d for CRTC %d"), j, i);
continue;
}
std::vector<MonitorIndicesParameter::Monitor> monitors = fetchMonitors();
if (monitors.size() <= 0) {
- vlog.error(_("Failed to get monitors"));
+ vlog.error(_("Failed to get system monitor configuration"));
return indices;
}
std::vector<MonitorIndicesParameter::Monitor> monitors = fetchMonitors();
if (monitors.size() <= 0) {
- vlog.error(_("Failed to get monitors"));
+ vlog.error(_("Failed to get system monitor configuration"));
// Don't return, store the configuration anyways.
}
#endif
char* homeDir = NULL;
- if (getvnchomedir(&homeDir) == -1) {
- throw Exception(_("Failed to read server history file, "
- "can't obtain home directory path."));
- }
+ if (getvnchomedir(&homeDir) == -1)
+ throw Exception(_("Could not obtain the home directory path"));
char filepath[PATH_MAX];
snprintf(filepath, sizeof(filepath), "%s%s", homeDir, SERVER_HISTORY);
#endif
char* homeDir = NULL;
- if (getvnchomedir(&homeDir) == -1) {
- throw Exception(_("Failed to write server history file, "
- "can't obtain home directory path."));
- }
+ if (getvnchomedir(&homeDir) == -1)
+ throw Exception(_("Could not obtain the home directory path"));
char filepath[PATH_MAX];
snprintf(filepath, sizeof(filepath), "%s%s", homeDir, SERVER_HISTORY);
/* Write parameters to file */
FILE* f = fopen(filepath, "w+");
if (!f)
- throw Exception(_("Failed to write configuration file, can't open %s: %s"),
+ throw Exception(_("Could not open \"%s\": %s"),
filepath, strerror(errno));
-
+
fprintf(f, "%s\n", IDENTIFIER_STRING);
fprintf(f, "\n");
char* homeDir = NULL;
if (getvnchomedir(&homeDir) == -1)
- throw Exception(_("Failed to read configuration file, "
- "can't obtain home directory path."));
+ throw Exception(_("Could not obtain the home directory path"));
snprintf(filepath, sizeof(filepath), "%sdefault.tigervnc", homeDir);
delete[] homeDir;
if (!f) {
if (!filename)
return NULL; // Use defaults.
- throw Exception(_("Failed to read configuration file, can't open %s: %s"),
+ throw Exception(_("Could not open \"%s\": %s"),
filepath, strerror(errno));
}
}
if (invalidParameterName)
- vlog.info(_("Unknown parameter %s on line %d in file %s"),
- line, lineNr, filepath);
+ vlog.error(_("Failed to read line %d in file %s: %s"),
+ lineNr, filepath, _("Unknown parameter"));
}
fclose(f); f=0;
char* homeDir = NULL;
if (getvnchomedir(&homeDir) == -1) {
- vlog.error(_("Could not create VNC home directory: can't obtain home "
- "directory path."));
+ vlog.error(_("Could not obtain the home directory path"));
} else {
int result = mkdir(homeDir, 0755);
if (result == -1 && errno != EEXIST)
vncServerName[VNCSERVERNAMELEN-1] = '\0';
} catch (rfb::Exception& e) {
vlog.error("%s", e.str());
- abort_vncviewer(_("Error reading configuration file \"%s\":\n\n%s"),
- vncServerName, e.str());
+ abort_vncviewer(_("Unable to load the specified configuration "
+ "file:\n\n%s"), e.str());
}
}
}