web-dev-qa-db-fra.com

Conky n'affiche pas les icônes du bureau

J'ai installé le style Inifinity sur Conky sur mon système Ubuntu 12.04 en utilisant XFCE4 comme WM et bureau.

http://www.unixmen.com/infinity-a-stunning-theme-for-conky-ubuntu-linuxmint-Fedora/

Cela fonctionne bien, le problème est que mes icônes de bureau ne s'afficheront pas.

Ma .conkyrc le fichier est ici:

#########################################################################################
#    Conky Theme : Infinity                                                                                                                                                                                          #
#    Created by     : Harshit Yadav                                                                                                                                                                              #
#    Version           : 1.0                                                                                                                                                                                                  # 
#    Feel Free to distribute                                                                                                                                                                                         #
#    For Installation Instrcutions See Read Me                                                                                                                                                       #
########################################################################################


# Conky settings #
background yes
update_interval 1

cpu_avg_samples 2
net_avg_samples 2

override_utf8_locale yes

double_buffer yes
no_buffers yes

text_buffer_size 2048
#imlib_cache_size 0

temperature_unit Fahrenheit

# Window specifications #

own_window yes
own_window_type override
own_window_class Conky
own_window_transparent yes
own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below

border_inner_margin 0
border_outer_margin 0

## This Resolution is set according to the sreen resolution of 1366x768 
## Adjust Accoring to yours

minimum_size 1024 768
maximum_width 1024

alignment tr
gap_x 10
gap_y 55

# Graphics settings #
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no

# Text settings #
use_xft yes
xftfont caviar dreams:size=8
xftalpha 0.5

uppercase no

temperature_unit celsius


default_color FFFFFF

# Lua Load  #
lua_load ~/.lua/scripts/haunted.lua
lua_draw_hook_pre clock_rings

## Adjust these fields according to the your screen size i have modded them for 1366X768

TEXT
${offset 600}${color EAEAEA}${font GE Inspira:pixelsize=80}${time %l:%M %p}
${offset 650}${font}${voffset -84}${voffset 10}${color FFA300}${font GE Inspira:pixelsize=42}${time %d} ${voffset -15}${color EAEAEA}${font GE Inspira:pixelsize=22}${time  %B} ${time %Y}${font}${voffset 70}${font GE Inspira:pixelsize=58}${offset -550}${time %A}${font}
${offset 650}${voffset -100}${font Ubuntu:pixelsize=10}${color FFA300}HD ${offset 9}$color${fs_free /} / ${fs_size /}${offset 30}${color FFA300}RAM ${offset 9}$color$mem / $memmax${offset 30}${color FFA300}CPU ${offset 9}$color${cpu cpu0}%
${voffset 10}${offset 270}${color 2c2c2c}${hr 4}
${image ~/.conky/rev-eng.png}


${offset 130}${voffset 222}${font Santana:size=9:style=Bold}root : ${font Santana:size=9}${fs_used /}/${fs_size /}
${offset 130}${voffset 10}${font Santana:size=9:style=Bold}home: ${font Santana:size=9}${fs_used /home}/${fs_size /home}$font
${offset 120}${voffset 12}${color ffffff}${font Santana:size=9:style=Bold}swap: ${font Santana:size=8} ${swap} / ${swapfree}$font
${offset 570}${voffset -110} ${color EAEAEA}Linux ${kernel} kernel
${offset 570}${voffset 5} Uptime :${uptime}
${offset 825}${voffset -80}${color ffffff}${font Santana:size=10:style=Bold}${exec whoami}@${nodename}
${offset 825}${voffset 0}${color ffffff}${font Santana:size=8}${top name 5} ${top mem 5}
${offset 700}${voffset 130}${color ffffff}${font Santana:size=8}IP Address :${addr eth0}
${offset 705}${voffset 10}${color ffffff}${font Santana:size=8}Down :${downspeed eth0} k/s ${offset 8}Up:${upspeed eth0} k/s
${offset 703}${voffset 10}${color ffffff}${font Santana:size=8}TCP Connections: ${tcp_portmon 1 65535 count}

Beaucoup d'endroits sur le NET ont suggéré de modifier les paramètres sur le own_window_type override partie, j'ai essayé les 3; normal, desktop and override

desktop et normal n'affiche qu'un fond noir et masque totalement mon bureau. Alors que override affichera au moins mon fond d'écran.

Si je fais un clic droit dessus n'importe où, un menu contextuel apparaît sur le bureau. Donc ça y arrive mais pas d'icônes.

http://i.imgur.com/stthsQP.png
http://i.imgur.com/Zr9WBmp.png

De plus, si je clique avec le bouton droit de la souris sur l'endroit où une icône doit se trouver, cela affichera le menu contextuel de ce fichier, donc cela ne fonctionnera tout simplement pas.

1
jfreak53

Il semble que ce problème soit causé par XFWM et Compositor. Cela peut être résolu en activant le compositeur pour XFWM:

Settings -> Settings Manager -> Window Manager Tweaks -> Compositor -> Enable Display Compositing

Les paramètres par défaut sont activés et il suffit de l'activer. Ensuite, changez votre configuration pour conky en ceci:

own_window yes
own_window_type desktop
own_window_transparent yes
own_window_argb_visual yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

Cela fonctionne maintenant à 100% pour moi dans XFCE.

2
jfreak53