Update XDG information in support of bug report 892.

pull/1/head
Darrell Anderson 12 years ago
parent e1437f5661
commit 81fe3b6728

@ -230,7 +230,7 @@ public class KCModule extends TQWidget {
/** /**
Sets the RootOnly message. Sets the RootOnly message.
This message will be shown at the top of the module of the This message will be shown at the top of the module of the
corresponding desktop file contains the line X-KDE-RootOnly=true. corresponding desktop file contains the line X-TDE-RootOnly=true.
If no message is set, a default one will be used. If no message is set, a default one will be used.
@short Sets the RootOnly message. @short Sets the RootOnly message.
@see KCModule#rootOnlyMsg @see KCModule#rootOnlyMsg

@ -136,7 +136,7 @@ public class KCModuleInfo implements QtSupport {
public native String handle(); public native String handle();
/** /**
@return the weight of the module which determines the order of the pages in @return the weight of the module which determines the order of the pages in
the KCMultiDialog. It's set by the X-KDE-Weight field. the KCMultiDialog. It's set by the X-TDE-Weight field.
@short @short
*/ */

@ -75,7 +75,7 @@ public class KCModuleLoader implements QtSupport {
test function. If it is unsure whether a module should be shown, it should test function. If it is unsure whether a module should be shown, it should
be made available, leaving the decision to the user. be made available, leaving the decision to the user.
If false is returned, the module should not be loaded in any interface. If false is returned, the module should not be loaded in any interface.
A module declares it needs to be tested by having "X-KDE-Test-Module=true" in A module declares it needs to be tested by having "X-TDE-Test-Module=true" in
its desktop file. When that line exists, the following code must be available its desktop file. When that line exists, the following code must be available
in the module's library: in the module's library:
<pre> <pre>

@ -75,7 +75,7 @@ public class KDEDesktopMimeType extends KMimeType {
/** /**
Overload of userDefinedServices but also allows you to pass a list of urls for this file. Overload of userDefinedServices but also allows you to pass a list of urls for this file.
This allows for the menu to be changed depending on the exact files via This allows for the menu to be changed depending on the exact files via
the X-KDE-GetActionMenu extension. the X-TDE-GetActionMenu extension.
@short Overload of userDefinedServices but also allows you to pass a list of urls for this file. @short Overload of userDefinedServices but also allows you to pass a list of urls for this file.
*/ */
// TQValueList<KDEDesktopMimeType::Service> userDefinedServices(const TQString& arg1,KConfig& arg2,bool arg3,const KURL::List& arg4); >>>> NOT CONVERTED // TQValueList<KDEDesktopMimeType::Service> userDefinedServices(const TQString& arg1,KConfig& arg2,bool arg3,const KURL::List& arg4); >>>> NOT CONVERTED

@ -115,7 +115,7 @@ import org.kde.qt.TQObject;
Type=Service Type=Service
Name=Foo Info Name=Foo Info
ServiceTypes=KFilePlugin ServiceTypes=KFilePlugin
X-KDE-Library=kfile_foo X-TDE-Library=kfile_foo
MimeType=application/x-foo MimeType=application/x-foo
PreferredGroups=FooInfo PreferredGroups=FooInfo
PreferredItems=Items,Size PreferredItems=Items,Size

@ -194,7 +194,7 @@ public class KMimeType extends KServiceType {
If this mimetype inherits from ("is also") another mimetype, If this mimetype inherits from ("is also") another mimetype,
return the name of the parent. return the name of the parent.
For instance a text/x-log is a special kind of text/plain, For instance a text/x-log is a special kind of text/plain,
so the definition of text/x-log can say "X-KDE-IsAlso=text/plain". so the definition of text/x-log can say "X-TDE-IsAlso=text/plain".
Or an smb-workgroup is a special kind of inode/directory, etc. Or an smb-workgroup is a special kind of inode/directory, etc.
This mechanism can also be used to rename mimetypes and preserve compat. This mechanism can also be used to rename mimetypes and preserve compat.
Note that this notion doesn't map to the servicetype inheritance mechanism, Note that this notion doesn't map to the servicetype inheritance mechanism,

@ -29,10 +29,10 @@ import org.kde.qt.TQFrame;
install a desktop file there to be recognized by the panel. install a desktop file there to be recognized by the panel.
Besides standard keys like "Name", "Comment" and "Icon" there are Besides standard keys like "Name", "Comment" and "Icon" there are
two panel applet specific keys: two panel applet specific keys:
<li><b>X-KDE-Library </b></li> <li><b>X-TDE-Library </b></li>
Used by the panel to locate the applet DSO (Dynamic Shared Object) Used by the panel to locate the applet DSO (Dynamic Shared Object)
Example: X-KDE-Library=libexampleapplet Example: X-TDE-Library=libexampleapplet
<li><b>X-KDE-UniqueApplet </b></li> <li><b>X-TDE-UniqueApplet </b></li>
Similar to KApplication and KUniqueApplication there are Similar to KApplication and KUniqueApplication there are
two types of panel applets. Use unique applets when it makes no two types of panel applets. Use unique applets when it makes no
sence to run more than one instance of a applet in the panel. A sence to run more than one instance of a applet in the panel. A
@ -40,8 +40,8 @@ import org.kde.qt.TQFrame;
applets when you need instance specific configuration. An example applets when you need instance specific configuration. An example
is the koolclock applet where you might want to run two instances is the koolclock applet where you might want to run two instances
in your panel, one configured as analog clock, the other one as in your panel, one configured as analog clock, the other one as
digital clock. X-KDE-UniqueApplet is a booleanean key which defaults digital clock. X-TDE-UniqueApplet is a booleanean key which defaults
to "false". Example: X-KDE-UniqueApplet=true to "false". Example: X-TDE-UniqueApplet=true
Back to panel applet DSOs, the following conventions are used for %KDE: Back to panel applet DSOs, the following conventions are used for %KDE:
Name: lib<appletname>applet.la Name: lib<appletname>applet.la
LDFLAGS: -module -no-undefined LDFLAGS: -module -no-undefined

@ -28,18 +28,18 @@ import org.kde.qt.TQFrame;
install a desktop file there to be recognized by the panel. install a desktop file there to be recognized by the panel.
Besides standard keys like "Name", "Comment" and "Icon" there are Besides standard keys like "Name", "Comment" and "Icon" there are
two panel extension specific keys: two panel extension specific keys:
<li><b>X-KDE-Library </b></li> <li><b>X-TDE-Library </b></li>
Used by the panel to locate the extension DSO (Dynamic Shared Object) Used by the panel to locate the extension DSO (Dynamic Shared Object)
Example: X-KDE-Library=libexampleextension Example: X-TDE-Library=libexampleextension
<li><b>X-KDE-UniqueExtension </b></li> <li><b>X-TDE-UniqueExtension </b></li>
Similar to KApplication and KUniqueApplication there are Similar to KApplication and KUniqueApplication there are
two types of panel extensions. Use unique extensions when it makes no two types of panel extensions. Use unique extensions when it makes no
sence to run more than one instance of an extension in the panel. A sence to run more than one instance of an extension in the panel. A
good example for unique extensions is the taskbar extension. Use normal good example for unique extensions is the taskbar extension. Use normal
extensions when you need instance specific configuration. An example extensions when you need instance specific configuration. An example
is a subpanel extension where you might want to run more than one instances. is a subpanel extension where you might want to run more than one instances.
X-KDE-UniqueExtension is a booleanean key which defaults X-TDE-UniqueExtension is a booleanean key which defaults
to "false". Example: X-KDE-UniqueExtension=true to "false". Example: X-TDE-UniqueExtension=true
Back to panel extension DSOs, the following conventions are used for KDE: Back to panel extension DSOs, the following conventions are used for KDE:
Name: lib<extensionname>extension.la Name: lib<extensionname>extension.la
LDFLAGS: -module -no-undefined LDFLAGS: -module -no-undefined

@ -16,7 +16,7 @@ import org.kde.qt.TQWidget;
object in your library, see KLibFactory. This factory is only used to construct object in your library, see KLibFactory. This factory is only used to construct
the menu object. the menu object.
Finally, you also have to provide a desktop file describing your dynamic menu. The Finally, you also have to provide a desktop file describing your dynamic menu. The
relevant entries are: Name, Comment, Icon and X-KDE-Library (which contains the relevant entries are: Name, Comment, Icon and X-TDE-Library (which contains the
library name without any extension). This desktop file has to be installed in library name without any extension). This desktop file has to be installed in
$TDEDIR/share/apps/kicker/menuext/. $TDEDIR/share/apps/kicker/menuext/.
@author The kicker maintainers, Michael Goffioul <tdeprint@swing.be> @author The kicker maintainers, Michael Goffioul <tdeprint@swing.be>

@ -154,7 +154,7 @@ public class KRun extends TQObject {
Set the preferred service for opening this URL, after Set the preferred service for opening this URL, after
its mimetype will have been found by KRun. IMPORTANT: the service is its mimetype will have been found by KRun. IMPORTANT: the service is
only used if its configuration says it can handle this mimetype. only used if its configuration says it can handle this mimetype.
This is used for instance for the X-KDE-LastOpenedWith key, for This is used for instance for the X-TDE-LastOpenedWith key, for
the recent documents list. the recent documents list.
@param desktopEntryName the desktopEntryName of the service, e.g. "kate". @param desktopEntryName the desktopEntryName of the service, e.g. "kate".
@short Set the preferred service for opening this URL, after its mimetype will have been found by KRun. @short Set the preferred service for opening this URL, after its mimetype will have been found by KRun.
@ -313,7 +313,7 @@ public class KRun extends TQObject {
-# The mime type must inherit application/x-executable or application/x-executable-script. -# The mime type must inherit application/x-executable or application/x-executable-script.
To allow a script to run when the above rules are satisfied add the entry To allow a script to run when the above rules are satisfied add the entry
@code @code
X-KDE-IsAlso=application/x-executable-script X-TDE-IsAlso=application/x-executable-script
@endcode @endcode
to the mimetype's desktop file. to the mimetype's desktop file.
@short Returns wether the <code>url</code> of <code>mimetype</code> is executable. @short Returns wether the <code>url</code> of <code>mimetype</code> is executable.

@ -221,7 +221,7 @@ public class KServiceGroup extends KSycocaEntry {
By default, "Settings/" is the kcontrol base group ("settings") By default, "Settings/" is the kcontrol base group ("settings")
and "System/Screensavers/" is the screensavers base group ("screensavers"). and "System/Screensavers/" is the screensavers base group ("screensavers").
This allows moving the groups without breaking those apps. This allows moving the groups without breaking those apps.
The base group is defined by the X-KDE-BaseGroup key The base group is defined by the X-TDE-BaseGroup key
in the .directory file. in the .directory file.
@return the base group name, or null if no base group @return the base group name, or null if no base group
@ -263,12 +263,12 @@ public class KServiceGroup extends KSycocaEntry {
*/ */
// KServiceGroup::Ptr group(const TQString& arg1); >>>> NOT CONVERTED // KServiceGroup::Ptr group(const TQString& arg1); >>>> NOT CONVERTED
/** /**
Returns the group of services that have X-KDE-ParentApp equal Returns the group of services that have X-TDE-ParentApp equal
to <code>parent</code> (siblings). to <code>parent</code> (siblings).
@param parent the name of the service's parent @param parent the name of the service's parent
@return the services group @return the services group
@short Returns the group of services that have X-KDE-ParentApp equal to <code>parent</code> (siblings). @short Returns the group of services that have X-TDE-ParentApp equal to <code>parent</code> (siblings).
*/ */
// KServiceGroup::Ptr childGroup(const TQString& arg1); >>>> NOT CONVERTED // KServiceGroup::Ptr childGroup(const TQString& arg1); >>>> NOT CONVERTED
/** /**

@ -59,13 +59,13 @@ import org.kde.qt.TQObject;
Please note that when including property names containing arithmetic operators like - or +, then you have Please note that when including property names containing arithmetic operators like - or +, then you have
to put brackets around the property name, in order to correctly separate arithmetic operations from to put brackets around the property name, in order to correctly separate arithmetic operations from
the name. So for example a constraint expression like the name. So for example a constraint expression like
X-KDE-Blah < 4 X-TDE-Blah < 4
needs to be written as needs to be written as
[X-KDE-Blah] < 4 [X-TDE-Blah] < 4
otherwise it could also be interpreted as otherwise it could also be interpreted as
Substract the numeric value of the property "KDE" and "Blah" from the property "X" and make sure it Substract the numeric value of the property "KDE" and "Blah" from the property "X" and make sure it
is less than 4. is less than 4.
Instead of the other meaning, make sure that the numeric value of "X-KDE-Blah" is less than 4. Instead of the other meaning, make sure that the numeric value of "X-TDE-Blah" is less than 4.
See also the formal syntax defined in {@link #tradersyntax} . See also the formal syntax defined in {@link #tradersyntax} .
@author Torben Weis <weis@kde.org> @author Torben Weis <weis@kde.org>

@ -19,7 +19,7 @@ import java.util.ArrayList;
see kapplication.h see kapplication.h
If your application is used to open files, it should also support the --tempfile If your application is used to open files, it should also support the --tempfile
option (see KCmdLineArgs.addTempFileOption()), to delete tempfiles after use. option (see KCmdLineArgs.addTempFileOption()), to delete tempfiles after use.
Add X-KDE-HasTempFileOption=true to the .desktop file to indicate this. Add X-TDE-HasTempFileOption=true to the .desktop file to indicate this.
@author Preston Brown <pbrown@kde.org> @author Preston Brown <pbrown@kde.org>
@short Maintains only a single instance of a running application at a time. @short Maintains only a single instance of a running application at a time.

@ -92,7 +92,7 @@ public class Plugin extends TQObject implements KXMLGUIClientInterface {
plugins are enabled and which are disabled. What happens by default (i.e. plugins are enabled and which are disabled. What happens by default (i.e.
for new plugins that are not in that config file) is controlled by for new plugins that are not in that config file) is controlled by
<code>enableNewPluginsByDefault.</code> It can be overridden by the plugin if it <code>enableNewPluginsByDefault.</code> It can be overridden by the plugin if it
sets the X-KDE-PluginInfo-EnabledByDefault key in the .desktop file sets the X-TDE-PluginInfo-EnabledByDefault key in the .desktop file
(with the same name as the .rc file) (with the same name as the .rc file)
If a disabled plugin is already loaded it will be removed from the GUI If a disabled plugin is already loaded it will be removed from the GUI
factory and deleted. factory and deleted.

@ -1,3 +1,3 @@
[Desktop Entry] [Desktop Entry]
Type=ServiceType Type=ServiceType
X-KDE-ServiceType=JSBindingPlugin/Binding X-TDE-ServiceType=JSBindingPlugin/Binding

@ -3,7 +3,7 @@ Name=EmbedJS
Name[xx]=xxEmbedJSxx Name[xx]=xxEmbedJSxx
Exec=embedjs %i %m -caption "%c" Exec=embedjs %i %m -caption "%c"
Icon=embedjs Icon=embedjs
Categories=Qt;KDE;Debugger;Development; Categories=Qt;TDE;Debugger;Development;
Type=Application Type=Application
DocPath=embedjs/embedjs.html DocPath=embedjs/embedjs.html
Comment=A TDE KPart Application Comment=A TDE KPart Application

@ -7,4 +7,4 @@ Name=ButtonMaker
StartupNotify=true StartupNotify=true
Terminal=false Terminal=false
Type=Application Type=Application
X-KDE-SubstituteUID=false X-TDE-SubstituteUID=false

@ -7,4 +7,4 @@ Name=Envelope Maker
StartupNotify=true StartupNotify=true
Terminal=false Terminal=false
Type=Application Type=Application
X-KDE-SubstituteUID=false X-TDE-SubstituteUID=false

@ -6,6 +6,6 @@ Exec=kjscmd --exec
Icon=konsole Icon=konsole
Terminal=false Terminal=false
X-DCOP-ServiceType=Multi X-DCOP-ServiceType=Multi
Categories=Qt;KDE;Development;Debugger; Categories=Qt;TDE;Development;Debugger;
InitialPreference=10 InitialPreference=10

@ -1,7 +1,7 @@
[Desktop Entry] [Desktop Entry]
Name=KJSEmbed Script Runner Name=KJSEmbed Script Runner
Type=Service Type=Service
X-KDE-Library=libjavascript X-TDE-Library=libjavascript
X-KDE-Script-Runner=JavaScript/kjs X-TDE-Script-Runner=JavaScript/kjs
ServiceTypes=KScriptRunner/KScriptRunner ServiceTypes=KScriptRunner/KScriptRunner
Comment=Javascript scripts from inside the application. Comment=Javascript scripts from inside the application.

@ -2,4 +2,4 @@
Name=Swap tabs and spaces. Name=Swap tabs and spaces.
Comment=Swap tabs and space indentation in text. Comment=Swap tabs and space indentation in text.
Type=JavaScript/kjs Type=JavaScript/kjs
X-KDE-ScriptName=swaptabs.js X-TDE-ScriptName=swaptabs.js

@ -2,4 +2,4 @@
Name=MyCustomObject Name=MyCustomObject
ServiceTypes=JSBindingPlugin/Binding ServiceTypes=JSBindingPlugin/Binding
Type=Service Type=Service
X-KDE-Library=libcustomobjectplugin X-TDE-Library=libcustomobjectplugin

@ -2,4 +2,4 @@
Name=MyCustomTQObject Name=MyCustomTQObject
ServiceTypes=JSBindingPlugin/Binding ServiceTypes=JSBindingPlugin/Binding
Type=Service Type=Service
X-KDE-Library=libcustomqobjectplugin X-TDE-Library=libcustomqobjectplugin

@ -2,4 +2,4 @@
Name=ImageFX Name=ImageFX
ServiceTypes=JSBindingPlugin/Binding ServiceTypes=JSBindingPlugin/Binding
Type=Service Type=Service
X-KDE-Library=libimagefxplugin X-TDE-Library=libimagefxplugin

@ -2,4 +2,4 @@
Name=KFileItem Name=KFileItem
ServiceTypes=JSBindingPlugin/Binding ServiceTypes=JSBindingPlugin/Binding
Type=Service Type=Service
X-KDE-Library=libfileitemplugin X-TDE-Library=libfileitemplugin

@ -2,4 +2,4 @@
Name=Process Name=Process
ServiceTypes=JSBindingPlugin/Binding ServiceTypes=JSBindingPlugin/Binding
Type=Service Type=Service
X-KDE-Library=libqprocessplugin X-TDE-Library=libqprocessplugin

@ -6,4 +6,4 @@ MimeType=text/html;text/xml;
Icon=konqueror Icon=konqueror
Name=KMOZILLA Name=KMOZILLA
ServiceTypes=KParts/ReadOnlyPart,Browser/View ServiceTypes=KParts/ReadOnlyPart,Browser/View
X-KDE-Library=libkmozillapart X-TDE-Library=libkmozillapart

@ -6,4 +6,4 @@ Icon=
Name=XNotepad (XPart example) Name=XNotepad (XPart example)
MimeType=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++;text/x-diff; MimeType=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++;text/x-diff;
ServiceTypes=KParts/ReadOnlyPart ServiceTypes=KParts/ReadOnlyPart
X-KDE-Library=libxp_notepadpart X-TDE-Library=libxp_notepadpart

Loading…
Cancel
Save