Re: rewriting local apps menu code

Stéphane Graber <stgraber-GeWIH/[email protected]>
Newsgroups gmane.linux.terminal-server.devel
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Vagrant Cascadian wrote:
> so, finishing what gadi started, i've got a bzr branch which handles
> LOCAL_APPS_MENU stuff a little differently...
> 
>   bzr get http://llama.freegeek.org/~vagrant/bzr/ltsp/ltsp-genmenu
> 
> the main difference is, rather than using ~/.local/ directories and tweaking
> files in the user's home directory, it generates a temporary directory and sets
> XDG_DATA_DIRS, which is a list of directories to search for menu and icon
> related entries:
> 
>   http://standards.freedesktop.org/basedir-spec/basedir-spec-0.5.html
> 
> as i read it, it shouldn't interfere with customizations made in the user's
> home directory, though if programs (or distros) are relying on setting
> XDG_DATA_DIRS with custom paths, we might run into trouble with that.

We actually use desktop-profiles to set custom XDG_DATA_DIRS for our
customers so it's something that'd have to be tested and fixed (if
needed) before I feel comfortable with it going to trunk.

> 
> the code is actually a good deal simpler by doing it this way, since we don't
> have to back up and restore user customizations. and it only affects the given
> login session, so if a user has an unexpected logout, it won't break future
> sessions by leaving cruft in the home dir.

I can see the improvement but also the potential regression, as said
above, I'm fine with it and like the idea, as soon as we're sure people
already using XDG_DATA_DIRS to set custom profiles won't see regressions
. (it's mainly about making sure we append value to XDG_DATA_DIRS and
not overwrite it or make something that's not compatible with the
desktop profiles).

> 
> should i merge it? :)

Not yet :)
I hope to have some time next week to look at it, maybe even this
weekend (though testing using VNC isn't that easy ...).

> 
> live well,
>   vagrant

Stéphane
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkmD9xgACgkQjxyfqkjBhux3pgCfWZP/IKz3fZkIBSaLQDf5MW3C
OTUAn3v8800hqzyqLHnpWjq5fv2fNXHG
=Qvl6
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_____________________________________________________________________
Ltsp-developer mailing list.   To un-subscribe, or change prefs, goto:
      https://lists.sourceforge.net/lists/listinfo/ltsp-developer
For additional LTSP help,   try #ltsp channel on irc.freenode.net
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.