View previous topic :: View next topic |
Author |
Message |
lucapost Veteran
Joined: 24 Nov 2005 Posts: 1419 Location: <ud|me|ts> - Italy
|
Posted: Sat Mar 03, 2007 10:43 am Post subject: Problemi dmenu [RISOLTO] |
|
|
Di alcuni problemi che riguardavano dmenu ho già trattato nell'Howto di dwm di lavish, ho deciso comunque di aprire un nuovo threads.
Ho appena aggiornato l'albero di portage, ecco qualche info:
Code: | jarod ~ # emerge --info
Portage 2.1.2-r13 (default-linux/amd64/2006.1, gcc-4.1.2, glibc-2.5-r0, 2.6.19-gentoo-r5 x86_64)
=================================================================
System uname: 2.6.19-gentoo-r5 x86_64 AMD Turion(tm) 64 X2 Mobile Technology TL-50
Gentoo Base System version 1.12.9
Timestamp of tree: Sat, 03 Mar 2007 09:31:01 +0000
dev-java/java-config: 1.3.7, 2.0.31-r3
dev-lang/python: 2.4.4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox: 1.2.18.1
sys-devel/autoconf: 2.13, 2.61
sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils: 2.17
sys-devel/gcc-config: 1.3.14
sys-devel/libtool: 1.5.23b
virtual/os-headers: 2.6.20-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=k8 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.ynet.sk/pub"
LC_ALL="en_GB.UTF-8"
LINGUAS="en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X alsa amd64 berkdb bitmap-fonts cli cracklib crypt dri fortran gdbm gpm gtk iconv isdnlog jpeg libg++ midi ncurses nls nptl nptlonly opengl pam pcre perl png ppds pppd python readline reflection session spl ssl tcpd truetype truetype-fonts type1-fonts unicode xorg zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" CAMERAS="canon" ELIBC="glibc" INPUT_DEVICES="mouse keyboard synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS |
Le versioni di dmenu disponibili sono le seguenti:
Code: | jarod ~ # eix -I dmenu
[I] x11-misc/dmenu
Available versions: [m](~)2.5 (~)2.6
Installed versions: 2.6(11:20:29 03/03/07)(savedconfig)
Homepage: http://tools.suckless.org/view.sh/x+tools
Description: a generic, highly customizable, and efficient menu for the X Window System |
Per richiamare dmenu, ho inserito questa riga nella configurazione di dwm:
Code: | jarod ~ # cat /etc/portage/savedconfig/x11-wm/dwm-3.7 |grep dmenu
{ MODKEY, XK_Menu, spawn, "exec=`/usr/bin/dmenu </home/lucapost/.dwm/menu -b` " }, \ |
dmenu-2.6 è stato correttamente installato con emerge.
Quando premo la combinazione di tasti per eseguire dmenu, correttamente mi compare la lista degli eseguibili che richiamo, il problema è che selezionando un qualsiasi programma quest'ultimo non viene eseguito, e dmenu esce.
Naturalemte i programmi sui quali ho testato il malfunzionamento sono anche xterm, firefox, ecc...
Ho provato anche a lanciare dmenu da terminale, ottenendo lo stesso risultato cioè che dmenu non esegue il programma lanciato, senza restituire alcun errore.
Non ho idea di come effettuare un'ulteriore debug, ne tantomeno come risolvere il problema. _________________ LP
Last edited by lucapost on Tue Mar 27, 2007 12:14 pm; edited 1 time in total |
|
Back to top |
|
|
lavish Bodhisattva
Joined: 13 Sep 2004 Posts: 4296
|
Posted: Tue Mar 27, 2007 6:04 am Post subject: |
|
|
Ciao!
Scusami se rispondo solo ora ma non avevo visto il thread
Nel caso ne avessi ancora bisogno, il tuo script non funziona perche' fai un assegnamento e non esegui l'applicazione da nessuna parte
Funzionerebbe togliendo "=", quindi:
Code: | { MODKEY, XK_Menu, spawn, "exec `/usr/bin/dmenu </home/lucapost/.dwm/menu -b` " }, \ |
Sposto anche il thread nel forum di discussione visto che non riguarda strettamente gentoo
Ciao! _________________ minimalblue.com | secgroup.github.io/ |
|
Back to top |
|
|
lucapost Veteran
Joined: 24 Nov 2005 Posts: 1419 Location: <ud|me|ts> - Italy
|
Posted: Tue Mar 27, 2007 12:13 pm Post subject: |
|
|
Ho aggiornato alla nuova versione: Code: |
lucapost@jarod ~ $ eix dmenu -cI
[D] x11-misc/dmenu (2.8@08/03/07 -> (~)2.6): a generic, highly customizable, and efficient menu for the X Window System |
Per richiamare dmenu ho lasciato così:
Code: | lucapost@jarod ~ $ cat /etc/portage/savedconfig/x11-wm/dwm-3.8 |grep dmenu
{ MODKEY, XK_Menu, spawn, "exe=`dmenu_path | dmenu -b` && exec $exe" }, \ |
...anche se ne risente di velocità di caricamento visto che aggiorna la lista dinamicamente... _________________ LP |
|
Back to top |
|
|
lavish Bodhisattva
Joined: 13 Sep 2004 Posts: 4296
|
Posted: Tue Mar 27, 2007 1:19 pm Post subject: |
|
|
lucapost wrote: | ...anche se ne risente di velocità di caricamento visto che aggiorna la lista dinamicamente... |
Prova a dare un occhio alla mia configurazione: http://www.minimalblue.com/projects/dwm.php
Come vedi io uso una lista statica e proprio quando devo (1 volta al mese penso ) con un M-r riaggiorno la lista
Ciao! _________________ minimalblue.com | secgroup.github.io/ |
|
Back to top |
|
|
lucapost Veteran
Joined: 24 Nov 2005 Posts: 1419 Location: <ud|me|ts> - Italy
|
Posted: Tue Mar 27, 2007 8:41 pm Post subject: |
|
|
alla fine sono giunto al compromesso di generare la lista degli eseguibili all'avvio di xinit, ho modifficato lo ~/.xinitrc aggiungento la riga:
Code: | lucapost@jarod ~ $ cat .xinitrc |grep lsx
lsx-suckless `echo $PATH | sed 's/:/ /g'` | sort -u > /tmp/.dmenu_list |
e nella configurazione di dwm:
Code: | lucapost@jarod ~ $ cat /etc/portage/savedconfig/x11-wm/dwm-3.8 |grep dmenu
{ MODKEY, XK_Menu, spawn, "exe=`cat /tmp/.dmenu_list | dmenu -b` && exec $exe" }, \ |
mandi. _________________ LP |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|