[X2Go-Dev] [PATCH] allow user to set his preferred applications in ~/.x2go/applications

Mike Gabriel mike.gabriel at das-netzwerkteam.de
Tue Dec 4 15:13:35 CET 2012


Hi Reinhard,

On Di 04 Dez 2012 14:03:40 CET Reinhard Tartler wrote:

> On Tue, Dec 4, 2012 at 1:58 PM, Mike Gabriel
> <mike.gabriel at das-netzwerkteam.de> wrote:
>
>> I see a push for this patch is still pending. I have two comments on the
>> patch (belated, sorry):
>>
>> It would be fine to have the default/preferred applications configurable
>> system-wide and on a per-user basis. Can you add that?
>
> Err, the "system-wide" is currently hardcoded in the binary. Do you
> want to source additionally from some file in
> /etc/x2goserver/applications? What file should have precedence, the
> system-wide file or the file in the user home? And why?

As a file name: /etc/x2go/rootless-commands? ~/.x2go/rootless-commands?
Or ,,default-applications'' at same locations? Your choice. Only  
,,applications'' is already reserved. Config folders are either  
/etc/x2go or ~/.x2go.

About precedence: the common behaviour is that user configs supersede  
system-wide configs, isn't it? So let's go that way...(?)

>> Then: the name applications in ~/.x2go and /etc/x2go is already reserved.
>> Expected is a directory or dir-symlink that contains / points to a folder
>> with .desktop files. This is used in the x2gogetapps script and is part of
>> the X2Go Published Applications feature.
>
> Where is the specification/documentation for that? What would be the

ENO specs yet, or rather: they are inside the code... :-(

> best place for this configuration setting?

see above...

>>
>> Please consider using another name instead of ,,applications'' for the
>> proposed environment file.
>
> For instance X2GO_DEFAULT_APP_WWWBROWSER?

prepending X2GO is surely a good idea. Actually, I like those variable  
names...

Mike




-- 

DAS-NETZWERKTEAM
mike gabriel, rothenstein 5, 24214 neudorf-bornstein
fon: +49 (1520) 1976 148

GnuPG Key ID 0x25771B31
mail: mike.gabriel at das-netzwerkteam.de, http://das-netzwerkteam.de

freeBusy:
https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xfb
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digitale PGP-Unterschrift
URL: <http://lists.x2go.org/pipermail/x2go-dev/attachments/20121204/5a850409/attachment.pgp>


More information about the x2go-dev mailing list