summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorLuciano Iam <lucianito@gmail.com>2020-04-11 09:45:52 +0200
committerRobin Gareus <robin@gareus.org>2020-04-11 22:30:41 +0200
commitad363d12a2b38f491011dcd6cd4adcf277089867 (patch)
treedfca07eef1a5141760466841747d19a6e8e622e5 /libs
parentc96e392f0fc252fd6ae8d4d91a950bed146a8d51 (diff)
WebSockets: fix path field in index.json
Diffstat (limited to 'libs')
-rw-r--r--libs/surfaces/websockets/manifest.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/libs/surfaces/websockets/manifest.cc b/libs/surfaces/websockets/manifest.cc
index be5ac342be..3279f408b0 100644
--- a/libs/surfaces/websockets/manifest.cc
+++ b/libs/surfaces/websockets/manifest.cc
@@ -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 << "\""
<< "}";