@@ -164,36 +164,6 @@ namespace linuxdeploy {
164164 return true ;
165165 }
166166
167- // bool DesktopFile::addDefaultKeys(const std::string& executableFileName) {
168- // ldLog() << "Adding default values to desktop file:" << path() << std::endl;
169- //
170- // auto rv = true;
171- //
172- // auto setDefault = [&rv, this](const std::string& section, const std::string& key, const std::string& value) {
173- // if (entryExists(section, key)) {
174- // DesktopFileEntry entry;
175- //
176- // // this should never return false
177- // auto entryExists = getEntry(section, key, entry);
178- // assert(entryExists);
179- //
180- // ldLog() << LD_WARNING << "Key exists, not modified:" << key << "(current value:" << entry.value() << LD_NO_SPACE << ")" << std::endl;
181- // rv = false;
182- // } else {
183- // auto entryOverwritten = setEntry(section, DesktopFileEntry(key, value));
184- // assert(!entryOverwritten);
185- // }
186- // };
187- //
188- // setDefault("Desktop Entry", "Name", executableFileName);
189- // setDefault("Desktop Entry", "Exec", executableFileName);
190- // setDefault("Desktop Entry", "Icon", executableFileName);
191- // setDefault("Desktop Entry", "Type", "Application");
192- // setDefault("Desktop Entry", "Categories", "Utility;");
193- //
194- // return rv;
195- // }
196-
197167 bool DesktopFile::validate () const {
198168 // FIXME: call desktop-file-validate
199169 return true ;
0 commit comments