13
0

WebSockets: fix path field in index.json

This commit is contained in:
Luciano Iam 2020-04-11 09:45:52 +02:00 committed by Robin Gareus
parent c96e392f0f
commit ad363d12a2
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -72,11 +72,9 @@ SurfaceManifest::to_json ()
{
std::stringstream ss;
std::string rel_path = Glib::path_get_basename (Glib::path_get_dirname (_path));
ss << "{"
<< "\"diskPath\":\"" << _path << "\""
<< ",\"path\":\"" << rel_path << "\""
<< ",\"path\":\"" << Glib::path_get_basename (_path) << "\""
<< ",\"name\":\"" << _name << "\""
<< ",\"description\":\"" << _description << "\""
<< "}";