[sandbox] modifying the Xephyr window title (patch)

Daniel J Walsh dwalsh at redhat.com
Thu Jan 12 13:12:29 UTC 2012


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 05/16/2011 12:26 AM, Christoph A. wrote:
> On 04/22/2011 01:07 PM, Daniel J Walsh wrote:
>>> Hi,
>>>>
>>>> If most of your windows are sandboxed applications, your bar looks like:
>>>>
>>>> [Sandbox sandbo..] [Sandbox sandbo..] [Sandbox sandbo..]
>>>>
>>>> and it is hard to find a specific application.
>>>>
>>>> example of a current Xephyr title:
>>>> Sandbox sandbox_web_t:s0:c112,c991 -- /usr/bin/firefox
>>>>
>>>> with the modification in the attached patch titles will look like:
>>>>
>>>> /usr/bin/firefox (sandbox_web_t)
>>>>
>>>> and it should be easier to find a specific application.
>>>> In addition to the type I would find it handy to also include the
>>>> DISPLAY in the title (needed when using xsel for copy'n paste).
>>>>
>> Thanks, I like this a lot.  
> 
> Thanks for accepting these little patches.
> 
> The attached patch changes the window title a little more to display the
> program name instead of the full path to the executable.
> 
> old:
> /usr/bin/firefox (sandbox_web_t)
> /usr/bin/evince '/tmp/foobar.pdf' (sandbox_x_t)
> 
> 
> after applying the patch titles look like the following:
> firefox (sandbox_web_t)
> evince (sandbox_x_t)
> 

Any way to change the icon associated with Xephyr.  It would be cool to
show firefox or evince icon rather then the xephyr icon when run within
a sandbox?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iEYEARECAAYFAk3RdeIACgkQrlYvE4MpobO/wACgvESCxZA4tu3tWhWNxrni/k8v
dFYAmQHFdm1BCaHxr2BZlmbuAwCZl3af
=ymCs
-----END PGP SIGNATURE-----


More information about the selinux mailing list