English 中文(简体)
是否为Gnome 3设定用户形象的图象/图像?
原标题:Is there an API for setting user profile icon/tile pictures for Gnome 3?

我正试图从方案角度为Gnome 3/GDM 3用户简介/功能/面貌确定Gnome3/GDM用户账户。 这是我第一次尝试为北纬度地区设计一个简单方案,而我不熟悉亚普森,而我的搜索却很少产生有用的信息。 似乎人们可以把数据写到一面档案中,但这种数据似乎受到影响(或也许我的档案类型/细节是错误的)。 I found from ,this Forum post that the information is Deposit in auser-specific summary under /var/lib/Accounts 然而,服务/用户 我希望我的方案与经常用户的特权和书面(直接)一起操作到这个档案中,将需要更高的特权(尽管一个没有资格的用户能够通过Gnome环境GUI为其账户指明一个形象)。

理想的情况是,我也希望对KE/KDM和Gnome 2版本也这样做。 任何信息都将受到高度赞赏。 感谢!

问题回答

页: 1

关于任何特殊和专才,请can<>em>, >永远由全球合作体系的外地更新职能putpxx。 传统上,在用户记录中,“Real name”是GECOS的第一部分,直至第1个,。 不同的系统在<条码>、

在Gnome 2号,“they”用作你的个人面目。 然而,在各种情况下,用户可以发现另一套住房(包括根基:如网络档案系统、加密的回路,等等),因此,在某个时候(我认为3.0)放弃了这一系统,而倾向于使用/瓦尔/布/折扣/反照相服务/电源/月值/元。

In the spirit of Gnome 3, the new system (the one you most likely want to use) is the Accounts Services DBus service. You can obtain a user object over DBus, and alter it. The interface is org.freedesktop.Accounts / org.freedesktop.Accounts.User and has methods like SetRealName and SetIconFile. There are also a “bunch” of other methods for things like location, language, eMail, …

PS: you can also use libaccountsservice to interact with it without calling the DBus yourself. EG: void act_user_set_real_name (ActUser *user, const char *real_name) and void act_user_set_icon_file (ActUser *user, const char *icon_file) are exported from that library.

然而,I don t知道K(或K的哪一个版本)是否在考虑这一行文服务。 因此,如果你真的想要建立科索沃信息,我不敢知道......。

对于其价值来说,你也只能让用户自己调整。

       gnome-control-center user-accounts




相关问题
Accessing samba shares with gio in python

I am trying to make a simple command line client for accessing shares via the Python bindings of gio (yes, the main requirement is to use gio). I can see that comparing with it s predecessor gnome-...

D. 注重全球无大型企业倒闭的窗口

我看上去了我需要把重点放在如此加速的钥匙(shortcuts)工作的德国技术合作公司/GDK光盘。 是否有任何人知道全球海洋研究公司是否甚至允许一个板块的窗户以主为主,如果是,......

Submenu items in Nautilus right-click menu

I am trying to write an extension for nautilus, which add an item to the menu that appears when you right-click a file (as shown in image) However, I would like to add a submenu to my custom menu ...

Add a changing icon to Ubuntu Panel

What would be the most simple way of adding and changing an icon in the Ubuntu (Gnome) Panel? I m looking for something as simple as shell scripting, but I m not restricted to that. Will write a ...

In Mono/Gnome, how can I look up the icon for a mime type?

Gnome.Icon and Gnome.ThumbnailFactory both want me to pass in a URI of a file whose icon I want -- I only have a MIME type, which I want to look up an icon for. Is there a GNOME C# API function which ...