Difference between revisions of "Projects/KNS2/Layout"

< Projects‎ | KNS2
Jump to: navigation, search
 
 
(9 intermediate revisions by 2 users not shown)
Line 2: Line 2:
  
 
== Main ==
 
== Main ==
KNewStuff 2 will have all its files in one dir, one for each app using it. Default will be (on unix sys) ~/.kde/share/apps/<appname>/newstuff/
+
KNewStuff 2 will have all its files in one dir, one for each app using it. Default will be KStandardDirs::locate("appdata", "addons").
 +
 
 +
To initialize it call [[../Handler|Handler::initLayout()]];
 +
 
 +
'''NOTE:''' .desktop (metadata) files will be copied in $KDEHOME/services/. You can use KTrader to locate them.
 +
 
 +
They will be namespaced this way:
 +
$appname-$pkgname-$pkgversion-addon.desktop
 +
 
 +
Packages will be renamed as:
 +
$pkgname-$pkgversion.kns
 +
 
 +
And the file containing release notes will be called
 +
$pkgname-$pkgversion.txt
  
 
== Layout ==
 
== Layout ==
 
The following layout will be used:
 
The following layout will be used:
  
* newstuff/ ''<-- Note: this name may change''
+
* '''addons/''' ''<-- Note: this name may change''
 +
** installed-list ''<-- List of installed packages?''
 
** ''May we store here infos/configs that applies appwide?''
 
** ''May we store here infos/configs that applies appwide?''
** $packageName-$packageVersion/
+
** '''$packageName-$packageVersion/'''
 
*** metadata file (see the [[../Packager|packager section]] for additional informations)
 
*** metadata file (see the [[../Packager|packager section]] for additional informations)
 
*** (optional) Icon
 
*** (optional) Icon
*** $packageName/
+
*** (optional) Release notes for package
**** <package content>
+
*** '''$packageName/'''
** $packageName2-$packageVersion2/
+
**** $file1
 +
**** ...
 +
** '''$packageName2-$packageVersion2/'''
 
*** metadata file
 
*** metadata file
 
*** (optional) Icon
 
*** (optional) Icon
*** $packageName2/
+
*** (optional) Release notes for package2
**** <package2 content>
+
*** '''$package2Name/'''
 +
**** $file1
 +
**** ...
 +
** '''Packages/'''
 +
*** package.kns
 +
*** package2.kns
 
** ...
 
** ...

Latest revision as of 10:14, 15 March 2007

noframe
 
Warning
Things you see here are work in progress. Please don't trust them.


[edit] Main

KNewStuff 2 will have all its files in one dir, one for each app using it. Default will be KStandardDirs::locate("appdata", "addons").

To initialize it call Handler::initLayout();

NOTE: .desktop (metadata) files will be copied in $KDEHOME/services/. You can use KTrader to locate them.

They will be namespaced this way: $appname-$pkgname-$pkgversion-addon.desktop

Packages will be renamed as: $pkgname-$pkgversion.kns

And the file containing release notes will be called $pkgname-$pkgversion.txt

[edit] Layout

The following layout will be used:

  • addons/ <-- Note: this name may change
    • installed-list <-- List of installed packages?
    • May we store here infos/configs that applies appwide?
    • $packageName-$packageVersion/
      • metadata file (see the packager section for additional informations)
      • (optional) Icon
      • (optional) Release notes for package
      • $packageName/
        • $file1
        • ...
    • $packageName2-$packageVersion2/
      • metadata file
      • (optional) Icon
      • (optional) Release notes for package2
      • $package2Name/
        • $file1
        • ...
    • Packages/
      • package.kns
      • package2.kns
    • ...

This page was last modified on 15 March 2007, at 10:14. This page has been accessed 4,742 times. Content is available under Creative Commons License SA 3.0 as well as the GNU Free Documentation License 1.2.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V.Legal