After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 720698 - Add an app folder setting
Add an app folder setting
Status: RESOLVED FIXED
Product: gsettings-desktop-schemas
Classification: Core
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: gsettings-desktop-schemas-maint
gsettings-desktop-schemas-maint
Depends on:
Blocks:
 
 
Reported: 2013-12-18 20:53 UTC by Matthias Clasen
Modified: 2014-01-10 19:42 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Add an app folder setting (1.96 KB, patch)
2013-12-18 20:53 UTC, Matthias Clasen
needs-work Details | Review
Add an app folder setting (3.30 KB, patch)
2014-01-10 11:23 UTC, Matthias Clasen
committed Details | Review
gnome-software patch (12.45 KB, patch)
2014-01-10 11:25 UTC, Matthias Clasen
reviewed Details | Review

Description Matthias Clasen 2013-12-18 20:53:23 UTC
This setting is needed for gnome-shell and gnome-software to
communicate about application folders, which are configured
in gnome-software and displayed in gnome-shell.
Comment 1 Matthias Clasen 2013-12-18 20:53:25 UTC
Created attachment 264500 [details] [review]
Add an app folder setting
Comment 2 Bastien Nocera 2013-12-19 10:54:03 UTC
Review of attachment 264500 [details] [review]:

Wouldn't it be better to have child schemas? Make the folders contain a list of "folder names" which would also be identifiers for the various schemas.
Comment 3 Jasper St. Pierre (not reading bugmail) 2013-12-19 16:47:56 UTC
(In reply to comment #2)
> Wouldn't it be better to have child schemas? Make the folders contain a list of
> "folder names" which would also be identifiers for the various schemas.

We do not support arbitrary nesting of folders.
Comment 4 Bastien Nocera 2013-12-19 17:14:35 UTC
(In reply to comment #3)
> (In reply to comment #2)
> > Wouldn't it be better to have child schemas? Make the folders contain a list of
> > "folder names" which would also be identifiers for the various schemas.
> 
> We do not support arbitrary nesting of folders.

That doesn't matter. The folders settings contains a list of GSettings paths to children. Each child would contain a key that enumerates the desktop files you want in your folder, another key is the folder name.

That means that you don't have to rewrite all the folders when you change the name of a single one, and you can easily add more metadata without breaking existing configurations.

See what the wacom plugin uses in g-s-d:
https://git.gnome.org/browse/gnome-settings-daemon/tree/data/org.gnome.settings-daemon.peripherals.wacom.gschema.xml.in.in
Comment 5 Matthias Clasen 2014-01-03 21:03:23 UTC
hmm, I can't say I'm very interested in rewriting this. There is really no need to optimize this for localized changes, as far as I can see - there's only going to be a handful of folders, each containing at most a screenful of apps.
Comment 6 Bastien Nocera 2014-01-07 07:24:32 UTC
This implementation would break the day we choose to implement live app folders editing in gnome-shell, or if we want to setup locked down folders. So I'm not going to accept that implementation.
Comment 7 Jasper St. Pierre (not reading bugmail) 2014-01-07 07:29:17 UTC
(In reply to comment #6)
> This implementation would break the day we choose to implement live app folders
> editing in gnome-shell

Why?
Comment 8 Bastien Nocera 2014-01-07 07:33:22 UTC
(In reply to comment #7)
> (In reply to comment #6)
> > This implementation would break the day we choose to implement live app folders
> > editing in gnome-shell
> 
> Why?

Because you'd be modifying all the folders' definitions by changing a single one. It's also terribly inefficient.
Comment 9 Matthias Clasen 2014-01-10 11:23:25 UTC
Created attachment 265904 [details] [review]
Add an app folder setting

This schema is needed for gnome-shell and gnome-software to
communicate about application folders, which are configured
in gnome-software and displayed in gnome-shell.
Comment 10 Matthias Clasen 2014-01-10 11:25:32 UTC
Created attachment 265905 [details] [review]
gnome-software patch
Comment 11 Bastien Nocera 2014-01-10 11:27:55 UTC
Review of attachment 265904 [details] [review]:

Excellent.
Comment 12 Jasper St. Pierre (not reading bugmail) 2014-01-10 16:30:56 UTC
Review of attachment 265905 [details] [review]:

::: data/org.gnome.software.gschema.xml
@@ -19,3 @@
       <summary>The last update timestamp</summary>
     </key>
-    <key name="app-folders" type="a{sas}">

Why does this schema still exist? Shouldn't we delete this, now that it's in gsettings-desktop-schemas?
Comment 13 Matthias Clasen 2014-01-10 16:51:21 UTC
yeah, will do when I push the patch
Comment 14 Matthias Clasen 2014-01-10 19:41:59 UTC
Attachment 265904 [details] pushed as 207d474 - Add an app folder setting