Bug#489993: gnome-panel: Terminal=true in desktop files does not work

2008-07-09 Thread Josselin Mouette
Le mercredi 09 juillet 2008 à 11:54 +0800, Paul Wise a écrit :
 Package: gnome-panel
 Version: 2.20.3-5
 Severity: normal
 
 Whenever I try to launch an app that has Terminal=true in its desktop
 file, I get this error message,
 
 Could not launch application
 Failed to execute child process -x (No such file or directory)

Could you show us the output of the following command?
gconftool -R /desktop/gnome/applications/terminal

Thanks,
-- 
 .''`.
: :' :  We are debian.org. Lower your prices, surrender your code.
`. `'   We will add your hardware and software distinctiveness to
  `-our own. Resistance is futile.


signature.asc
Description: Ceci est une partie de message	numériquement signée


Bug#489993: gnome-panel: Terminal=true in desktop files does not work

2008-07-09 Thread Paul Wise
On Wed, 2008-07-09 at 11:13 +0200, Josselin Mouette wrote:

 Could you show us the output of the following command?

Argh, settings don't look correct:

[EMAIL PROTECTED]:~$ gconftool -R /desktop/gnome/applications/terminal
 exec_arg = -x
 exec = 

Works after unsetting them or changing to a non-custom term in prefs.

I guess this bug should be closed unless you would expect gnome-panel to
work in the situation where the gconf value for the exec key is invalid
or not executable.

-- 
bye,
pabs

http://wiki.debian.org/PaulWise


signature.asc
Description: This is a digitally signed message part


Bug#489993: gnome-panel: Terminal=true in desktop files does not work

2008-07-08 Thread Paul Wise
Package: gnome-panel
Version: 2.20.3-5
Severity: normal

Whenever I try to launch an app that has Terminal=true in its desktop
file, I get this error message,

Could not launch application
Failed to execute child process -x (No such file or directory)

It seems that gnome-panel is attempting to execute a program called -x:

[EMAIL PROTECTED]:~$ strace -f -F -p `pgrep gnome-panel` 21 | grep -i htop
lstat64(/usr/share/applications/htop.desktop, {st_mode=S_IFREG|0644, 
st_size=210, ...}) = 0
open(/usr/share/applications/htop.desktop, O_RDONLY|O_LARGEFILE) = 30
[pid 17552] execve(/home/pabs/bin/-x, [-x, htop], [/* 28 vars */]) = -1 
ENOENT (No such file or directory)
[pid 17552] execve(/usr/local/bin/-x, [-x, htop], [/* 28 vars */]) = -1 
ENOENT (No such file or directory)
[pid 17552] execve(/usr/bin/-x, [-x, htop], [/* 28 vars */] unfinished 
...
[pid 17552] execve(/bin/-x, [-x, htop], [/* 28 vars */] unfinished ...
[pid 17552] execve(/usr/bin/X11/-x, [-x, htop], [/* 28 vars */]) = -1 
ENOENT (No such file or directory)
[pid 17552] execve(/usr/games/-x, [-x, htop], [/* 28 vars */]) = -1 
ENOENT (No such file or directory)
[pid 17552] execve(/usr/local/games/-x, [-x, htop], [/* 28 vars */]) = -1 
ENOENT (No such file or directory)
^C

The desktop file looks like this (same issue with other files):

$ cat /usr/share/applications/htop.desktop
[Desktop Entry]
Encoding=UTF-8
Version=0.7
Name=Htop
Type=Application
Comment=Show System Processes
Terminal=true
Exec=htop
Path=
Icon=htop
Categories=ConsoleOnly;System;Application;
GenericName=Process Viewer

Here is what the environment looks like:

$ cat  /proc/`pgrep gnome-panel`/environ | tr '\0' '\n'
SHELL=/bin/bash
USER=pabs
SSH_AUTH_SOCK=/tmp/keyring-ynOWyQ/ssh
GNOME_KEYRING_SOCKET=/tmp/keyring-ynOWyQ/socket
USERNAME=pabs
PATH=/home/pabs/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games:/usr/local/games
DESKTOP_SESSION=gnome
GDM_XSERVER_LOCATION=local
PWD=/home/pabs
GNOME_KEYRING_PID=4751
LANG=en_AU.UTF-8
GDM_LANG=en_AU.UTF-8
GDMSESSION=gnome
SHLVL=0
HOME=/home/pabs
LOGNAME=pabs
REMOTECONSOLE=3.0.0.16
XDG_DATA_DIRS=/usr/local/share/:/usr/share/:/usr/share/gdm/
WINDOWPATH=7
DISPLAY=:0.0
XAUTHORITY=/home/pabs/.Xauthority
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-u0HVwadxm7,guid=3775a6498af0a6acb0c4f5cf48737c16
GPG_AGENT_INFO=/tmp/seahorse-F2YBCT/S.gpg-agent:4883:1
GTK_RC_FILES=/etc/gtk/gtkrc:/home/pabs/.gtkrc-1.2-gnome2
GTK_MODULES=gnomebreakpad
SESSION_MANAGER=local/chianamo:/tmp/.ICE-unix/4756
GNOME_DESKTOP_SESSION_ID=Default

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.25-2-686 (SMP w/2 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages gnome-panel depends on:
ii  gnome-about2.22.3-1  The GNOME about box
ii  gnome-control-center   1:2.22.2.1-1  utilities to configure the GNOME d
ii  gnome-desktop-data 2.22.3-1  Common files for GNOME 2 desktop a
ii  gnome-menus2.22.2-1  an implementation of the freedeskt
ii  gnome-panel-data   2.20.3-5  common files for the GNOME Panel
ii  libatk1.0-01.22.0-1  The ATK accessibility toolkit
ii  libbonobo2-0   2.22.0-1  Bonobo CORBA interfaces library
ii  libbonoboui2-0 2.22.0-1  The Bonobo UI library
ii  libc6  2.7-12GNU C Library: Shared libraries
ii  libcairo2  1.6.4-6   The Cairo 2D vector graphics libra
ii  libdbus-glib-1-2   0.76-1simple interprocess messaging syst
ii  libecal1.2-7   2.22.3-1  Client library for evolution calen
ii  libedataserver1.2-92.22.3-1  Utility library for evolution data
ii  libedataserverui1.2-8  2.22.3-1  GUI utility library for evolution 
ii  libgconf2-42.22.0-1  GNOME configuration database syste
ii  libglade2-01:2.6.2-1 library to load .glade files at ru
ii  libglib2.0-0   2.16.4-1  The GLib library of C routines
ii  libgnome-desktop-2 2.22.3-1  Utility library for loading .deskt
ii  libgnome-menu2 2.22.2-1  an implementation of the freedeskt
ii  libgnome2-02.20.1.1-1The GNOME 2 library - runtime file
ii  libgnomeui-0   2.20.1.1-1The GNOME 2 libraries (User Interf
ii  libgnomevfs2-0 1:2.22.0-4GNOME Virtual File System (runtime
ii  libgtk2.0-02.12.10-2 The GTK+ graphical user interface 
ii  liborbit2  1:2.14.13-0.1 libraries for ORBit2 - a CORBA ORB
ii  libpanel-applet2-0 2.20.3-5  library for GNOME Panel applets
hi  libpango1.0-0  1.20.4-1  Layout and rendering of internatio
ii  libwnck22  2.22.3-1  Window Navigator Construction Kit 
ii  libx11-6