! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
cpugraph doesn't show in kiosk mode
Status:
RESOLVED: WORKSFORME
Product:
Xfce4-cpugraph-plugin
Component:
General

Comments

Description mad 2008-03-06 08:37:32 CET
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.12) Gecko/20080208 Fedora/2.0.0.12-1.fc8 Firefox/2.0.0.12
Build Identifier: 

I configured kiosk mode with a restricted panel. Everything went fine. After the configuration was finished I removed the ~/.config directory from user root and test to test the kiosk mode. Restarting xfce worked flawless with root (no wonder here), even with user test it was ok. Problem is that the cpugraph I configured into the panel does not show in the panel of user test. Every other icon/applet is shown (Workspace, Launchers, DateTime, ...).

When I deactivate the kiosk mode for the panel - deleting the line 'CustomizePanel=root' from kioskrc - and restart xfce the cpugraph is shown in the panel.


Reproducible: Always

Steps to Reproduce:
1.Create a panel with cpugraph as any user.
2.Copy the panel data from ~/.config/xfce4/panel to /etc/xdg/xfce4/panel.
3.Remove the ~/.config/xfce4/panel directory.
4.Activate kiosk mode (Adding 'CustomizePanel=root' to kioskrc).
5.Relogin user.
Actual Results:  
cpugraph is not shown in panel, every other icon/app is shown.

Expected Results:  
cpugraph should be visible in panel.

# uname -a
Linux localhost.localdomain 2.6.23.15-137.fc8 #1 SMP Sun Feb 10 17:48:34 EST 2008 i686 i686 i386 GNU/Linux

# rpm -qa | grep xfce
xfce4-icon-theme-4.4.2-1.fc8
libxfcegui4-4.4.2-1.fc8
xfce4-netload-plugin-0.4.0-6.fc8
libxfce4util-4.4.2-1.fc8
xfce-mcs-manager-4.4.2-1.fc8
xfce-mcs-plugins-4.4.2-2.fc8
xfce4-session-4.4.2-1.fc8
xfce4-panel-4.4.2-1.fc8
xfce4-screenshooter-plugin-1.0.0-6.fc8
xfce4-datetime-plugin-0.5.0-3.fc8
xfce4-session-engines-4.4.2-1.fc8
libxfce4mcs-4.4.2-1.fc8
xfce4-taskmanager-0.4.0-0.2.rc2.fc6
xfce-utils-4.4.2-3.fc8
xfce4-cpugraph-plugin-0.4.0-2.fc8

# cat /etc/fedora-release
Fedora release 8 (Werewolf)
Comment 1 Mike Massonnet editbugs 2008-03-07 22:06:19 CET
Can you provide the panel and kioskrc configuration files?
Thanks
Comment 2 mad 2008-03-10 07:36:54 CET
Created attachment 1554 
Archive with kiosk a panel directory
Comment 3 mad 2008-03-26 12:22:09 CET
Can I help you with other information?
Comment 4 Mike Massonnet editbugs 2008-03-26 19:46:39 CET
Bad news, I tried your config and it worked just fine, tho the cpugraph version I have is 0.3 (Debian/sid).  I compiled therefore version 0.4, and surprisingly it is also working.

I think you can fetch for errors via startx (or startxfce4), by redirecting the error output to a file like: startxfce4 2> xerrors

And then grep that file for "cpugraph".
Comment 5 mad 2008-03-31 11:41:29 CEST
I tried your suggestion but there wasn't any hint of cpugraph in the error file. What I did after that is the following:

- Login in with ssh on the remote computer
- Execute: strace xfce4-panel >errors 2>&1
- Panels appears on local computer

There is a difference in the output. The following is an excerpt of the output of root's strace:

fstat64(6, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
fcntl64(6, F_GETFD)                     = 0x1 (flags FD_CLOEXEC)
getdents64(6, /* 7 entries */, 4096)    = 256
stat64("/usr/share/xfce4/panel-plugins/cpugraph.desktop", {st_mode=S_IFREG|0644,
 st_size=1501, ...}) = 0
open("/usr/share/xfce4/panel-plugins/cpugraph.desktop", O_RDONLY) = 7
fstat64(7, {st_mode=S_IFREG|0644, st_size=1501, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7
ce9000
read(7, "[Xfce Panel]\nType=X-XFCE-PanelPl"..., 4096) = 1501
read(7, "", 4096)                       = 0
close(7)                                = 0
munmap(0xb7ce9000, 4096)                = 0
access("/usr/libexec/xfce4/panel-plugins/xfce4-cpugraph-plugin", F_OK) = 0
stat64("/usr/share/xfce4/panel-plugins/screenshooter.desktop", {st_mode=S_IFREG|
0644, st_size=196, ...}) = 0
open("/usr/share/xfce4/panel-plugins/screenshooter.desktop", O_RDONLY) = 7
fstat64(7, {st_mode=S_IFREG|0644, st_size=196, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7
ce9000
read(7, "[Xfce Panel]\nType=X-XFCE-PanelPl"..., 4096) = 196
read(7, "", 4096)                       = 0

Now the same portion from the normal user:

fstat64(6, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
fcntl64(6, F_GETFD)                     = 0x1 (flags FD_CLOEXEC)
getdents64(6, /* 24 entries */, 4096)   = 912
stat64("/usr/lib/xfce4/panel-plugins/pager.desktop", {st_mode=S_IFREG|0644, st_size=4144, ...}) = 0
open("/usr/lib/xfce4/panel-plugins/pager.desktop", O_RDONLY) = 7
fstat64(7, {st_mode=S_IFREG|0644, st_size=4144, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7d84000
read(7, "[Xfce Panel]\nType=X-XFCE-PanelPl"..., 4096) = 4096
read(7, "-XFCE-Module-Path=/usr/lib/xfce4"..., 4096) = 48
read(7, "", 4096)                       = 0

There isn't even a hint of cpugraph. How can that be?
Comment 6 Mike Massonnet editbugs 2008-05-11 21:15:43 CEST
Sorry for the delay.  I was cleaning up my ~/qemu directory and crossed a file that reminded me the kiosk issue.

As I can read, there is no real way to fix it (no hint at the horizon).  You could provide a more useful strace log with: strace -eopen,stat64 xfce4-panel.  As attachment would be good.

Mike
Comment 7 Florian Rivoal editbugs 2010-05-29 09:45:46 CEST
Sorry, but I can't reproduce it either. Unless more information on the circumstances of the problem are provided, there is nothing that I can do.

Bug #3923

Reported by:
mad
Reported on: 2008-03-06
Last modified on: 2010-10-03

People

Assignee:
Florian Rivoal
CC List:
3 users

Version

Attachments

Archive with kiosk a panel directory (1.24 KB, application/octet-stream)
2008-03-10 07:36 CET , mad
no flags

Additional information