\FBDESKTOPTOJSON\FR - Online Linux Manual PageSection : 8
Updated : 2014\-04\-02
Source : KDE Frameworks Frameworks 5.0
Note : KDE Frameworks: KService
NAMEdesktoptojson − Converts a .desktop file to a .json file.
SYNOPSISdesktoptojson −−input DESKTOP−FILE −−output JSON−FILE desktoptojson {−−version | −−help}
DESCRIPTIONThe KService framework uses information contained in .desktop files to locate services, including plugins for Qt5−based applications and libraries. The Qt5 plugin system, however, uses JSON data embedded in the plugin itself. desktoptojson allows the information contained in a .desktop file to also be used as the embedded data for a Qt5 plugin by converting the .desktop file entries into JSON data. The generated JSON data is a JSON object that maps the entries from the [Desktop Entry] group of the .desktop file. Any other groups are ignored. Most entries are just converted to JSON strings, but certain entries (such as Hidden and X−KDE−PluginInfo−EnabledByDefault) are known to be boolean values and converted as such, and similarly some (such as X−KDE−ServiceTypes and X−KDE−PluginInfo−Depends) are always converted to arrays of strings.
OPTIONS−−input DESKTOP−FILE The .desktop file to convert. −−output JSON−FILE The file to write the generated JSON data to. −−help Show a brief help text. −−version Show version information.
USAGEMost users of this utility will use the CMake macro kservice_desktop_to_json as part of the process of building a plugin. add_library(myplugin MODULE ${myplugin_SRCS})
kservice_desktop_to_json(myplugin myplugin.desktop)
This will produce the JSON file myplugin.json, which can be referenced from the K_PLUGIN_FACTORY_WITH_JSON or Q_PLUGIN_METADATA macros.
BUGSPlease use KDE's bugtracker[1] to report bugs.
AUTHORSScarlett Clark <scarlett@scarlettgatelyclark.com> Wrote the original documentation. Alex Merry <alexmerry@kde.org> Edited the documentation.
NOTES 1. KDE's bugtracker https://bugs.kde.org 0
Johanes Gumabo
Data Size : 9,853 byte
man-desktoptojson.8Build : 2024-12-29, 07:25 :
Visitor Screen : x
Visitor Counter ( page / site ) : 3 / 259,193
Visitor ID : :
Visitor IP : 18.221.25.133 :
Visitor Provider : AMAZON-02 :
Provider Position ( lat x lon ) : 39.962500 x -83.006100 : x
Provider Accuracy Radius ( km ) : 1000 :
Provider City : Columbus :
Provider Province : Ohio , : ,
Provider Country : United States :
Provider Continent : North America :
Visitor Recorder : Version :
Visitor Recorder : Library :
Online Linux Manual Page : Version : Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.29
Online Linux Manual Page : Library : lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page : Library : lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base : Version : Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base : Library : lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36
Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.
ERROR : Need New Coding : (rof_escape_sequence|91|desktoptojson.8|10|\FBDESKTOPTOJSON\FR" "8" "2014\-04\-02" "KDE Frameworks Frameworks 5.0" "KDE Frameworks: KService" |.TH "\FBDESKTOPTOJSON\FR" "8" "2014\-04\-02" "KDE Frameworks Frameworks 5.0" "KDE Frameworks: KService"
)