Posts: 24
Honeypuck
Joined: 19 Jan 2012
#1
Hey all,

I want the clipboard manager 'Parcellite' to be automatically started when booting AntiX. So I put the following line at the end of the file .icewm/startup in my HOME directory:

Code: Select all

 /usr/bin/parcellite
The entire startup file (which is executable) looks like this:

Code: Select all

#!/bin/bash

## Auto update menu
#python ~/.icewm/icemenuyap2.py > ~/.icewm/application ##This is old menu##

auto-icewm-menu.sh &

#killall icewmtray
#icewmtray &
#sleep 2 && wicd-client &
#Use feh to set wallpaper
eval `cat ~/.fehbgrox-ice` &

conky &

## Set desktop icons
#pcmanfm --desktop &
rox --pinboard=antiX-ice &

# set live keyboard
setxkbmap de

########## PLAY STARTUP SOUND #########
#play /usr/share/sounds/Pardus_Rocks/Pardus_Rocks-Logout.ogg > /dev/null 2>&1 &

# Auto-mount usb devices in rox /media. Do not use with /etc/udev/rules.d/99-usbstorage.rules
# Do not use if you use Thunar or pcmanfm file managers.
#sleep 5 && devmon --exec-on-drive"rox /media" &

## Set wallpaper via nitrogen
#rm $HOME/.config/nitrogen/bg-saved.cfg
#ln -s $HOME/.config/nitrogen/bg-saved-icewm.cfg $HOME/.config/nitrogen/bg-saved.cfg 
#nitrogen --restore &

sleep 5 && volumeicon &

#Beim Start den Clipboardmanager 'Parcellite' ausführen - Run 'Parcellite' on startup
/usr/bin/parcellite
Parcellite is started when booting the computer, alas with it comes a kind of a zombie window. The content is only black and the icon in the 'window header' as well as in the taskbar shows the windows as belonging to an executable file or program.

I can neither close the windows nor kill it via xkill from the command line. Closing 'Parcellite' doesn't help either, but it has to belong to that programme as it only appears when I put the aforementioned line into the startup file.
I tried having IceWM send 'Parcellite' into the background by modifying the line to:

Code: Select all

/usr/bin/parcellite &
but that doesn't work.

Does someone have any thoughts on that?
What am I doing wrong?

Thanks a lot for your help!
Last edited by Honeypuck on 26 Jan 2012, 22:45, edited 1 time in total.
Posts: 4,164
rokytnji
Joined: 20 Feb 2009
#2
What does

Code: Select all

apt-cache policy gtk
and

Code: Select all

apt-cache policy glib 
Show?

.
Requirements
gtk >= 2.10.0
glib >= 2.14.0

========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://parcellite.sourceforge.net/?page_id=2"
linktext was:"http://parcellite.sourceforge.net/?page_id=2"
====================================
Posts: 24
Honeypuck
Joined: 19 Jan 2012
#3
Thanks a lot for the quick response. Could you name a specific package I should be looking for, or rather have apt-get look for?
When I look up the policy for gtk, I get this message (translated):

Code: Select all

# apt-cache policy gtk
N: Package gtk could not be found
The same goes for glib.

The output of

Code: Select all

dpkg -l | grep gtk
is too large to post here and as far as I can tell, all the packages listed belong to specific programs not gtk in general.

I figured that I do not have all the necessary GTK-packages installed, so I installed pretty much all GTK2 related stuff, as far as they seemed plausibly related to the problem.

Still, I get the same message that apt-get cannot find the desired package.

When I check for installed versions of gtk, I get told that the following are on my system:

Code: Select all

dpkg -l | grep gtk*
..
ii  libgtk-3-0                           3.2.3-1
ii  libgtk2.0-0                         2.24.8-3 
..
I have the feeling that the too packages might confict with another...

For glib I get:

Code: Select all

dpkg -l | grep glib
..
 ii  libglib2.0-0                        2.30.2-5
..
At least the package versions should be new enough to support 'Parcellite', the program itself runs fine.
What should I do now?
Posts: 4,164
rokytnji
Joined: 20 Feb 2009
#4
Sorry for the gtk and glib apt-policy commands earlier. I was busy at my motorcycle shop and was in a hurry when I posted. 4:45 am here right now also so I am a bit groggy.

What version of parcellite are you using? I just ask because of this Debian bug report for parcellite.


========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=637272"
linktext was:"http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=637272"
====================================


I found this

========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://packages.debian.org/source/testing/gtk+2.0"
linktext was:"http://packages.debian.org/source/testing/gtk+2.0"
====================================


and this

========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://packages.debian.org/source/testing/glib2.0"
linktext was:"http://packages.debian.org/source/testing/glib2.0"
====================================

Code: Select all

@biker:~$ apt-cache policy glib2.0
libglib2.0-0:
  Installed: 2.30.2-4
  Candidate: 2.30.2-4
  Version table:
 *** 2.30.2-4 0
        901 http://ftp.us.debian.org/debian/ testing/main i386 Packages
        100 /var/lib/dpkg/status
libglib2.0-dev:
  Installed: (none)
  Candidate: 2.30.2-4
  Version table:
     2.30.2-4 0
        901 http://ftp.us.debian.org/debian/ testing/main i386 Packages
libglib2.0-doc:
  Installed: (none)
  Candidate: 2.30.2-4
  Version table:
     2.30.2-4 0
        901 http://ftp.us.debian.org/debian/ testing/main i386 Packages
libglib2.0-cil:
  Installed: (none)
  Candidate: 2.12.10-2
  Version table:
     2.12.10-2 0
        901 http://ftp.us.debian.org/debian/ testing/main i386 Packages
libtaglib2.0-cil:
  Installed: (none)
  Candidate: 2.0.3.7+dfsg-1
  Version table:
     2.0.3.7+dfsg-1 0
        901 http://ftp.us.debian.org/debian/ testing/main i386 Packages
libglib2.0-0-dbg:
  Installed: (none)
  Candidate: 2.30.2-4
  Version table:
     2.30.2-4 0
        901 http://ftp.us.debian.org/debian/ testing/main i386 Packages
libglib2.0-bin:
  Installed: (none)
  Candidate: 2.30.2-4
  Version table:
     2.30.2-4 0
        901 http://ftp.us.debian.org/debian/ testing/main i386 Packages
libglib2.0-data:
  Installed: 2.30.2-4
  Candidate: 2.30.2-4
  Version table:
 *** 2.30.2-4 0
        901 http://ftp.us.debian.org/debian/ testing/main i386 Packages
        100 /var/lib/dpkg/status
libglib2.0-dbg:
  Installed: (none)
  Candidate: (none)
  Version table:
libglib2.0-0-refdbg:
  Installed: (none)
  Candidate: 2.30.2-4
  Version table:
     2.30.2-4 0
        901 http://ftp.us.debian.org/debian/ testing/main i386 Packages
libglib2.0-cil-dev:
  Installed: (none)
  Candidate: 2.12.10-2
  Version table:
     2.12.10-2 0
        901 http://ftp.us.debian.org/debian/ testing/main i386 Packages
@biker:~$ apt-cache policy gtk+2.0
libgtk2.0-0:
  Installed: 2.24.8-2
  Candidate: 2.24.8-2
  Version table:
 *** 2.24.8-2 0
        901 http://ftp.us.debian.org/debian/ testing/main i386 Packages
        100 /var/lib/dpkg/status
libgtk2.0-doc:
  Installed: (none)
  Candidate: 2.24.8-2
  Version table:
     2.24.8-2 0
        901 http://ftp.us.debian.org/debian/ testing/main i386 Packages
libgtk2.0-dev:
  Installed: (none)
  Candidate: 2.24.8-2
  Version table:
     2.24.8-2 0
        901 http://ftp.us.debian.org/debian/ testing/main i386 Packages
libgtk2.0-cil-dev:
  Installed: (none)
  Candidate: 2.12.10-2
  Version table:
     2.12.10-2 0
        901 http://ftp.us.debian.org/debian/ testing/main i386 Packages
libgtk2.0-cil:
  Installed: (none)
  Candidate: 2.12.10-2
  Version table:
     2.12.10-2 0
        901 http://ftp.us.debian.org/debian/ testing/main i386 Packages
libgtk2.0-bin:
  Installed: 2.24.8-2
  Candidate: 2.24.8-2
  Version table:
 *** 2.24.8-2 0
        901 http://ftp.us.debian.org/debian/ testing/main i386 Packages
        100 /var/lib/dpkg/status
monodoc-gtk2.0-manual:
  Installed: (none)
  Candidate: 2.12.10-2
  Version table:
     2.12.10-2 0
        901 http://ftp.us.debian.org/debian/ testing/main i386 Packages
libgwengui-gtk2-0:
  Installed: (none)
  Candidate: 4.3.0-1
  Version table:
     4.3.0-1 0
        901 http://ftp.us.debian.org/debian/ testing/main i386 Packages
libgtk2.0-common:
  Installed: 2.24.8-2
  Candidate: 2.24.8-2
  Version table:
 *** 2.24.8-2 0
        901 http://ftp.us.debian.org/debian/ testing/main i386 Packages
        100 /var/lib/dpkg/status
gtk2.0-examples:
  Installed: (none)
  Candidate: 2.24.8-2
  Version table:
     2.24.8-2 0
        901 http://ftp.us.debian.org/debian/ testing/main i386 Packages
libgtk2.0-0-dbg:
  Installed: (none)
  Candidate: 2.24.8-2
  Version table:
     2.24.8-2 0
        901 http://ftp.us.debian.org/debian/ testing/main i386 Packages
gtk2.0-binver-2.10.0:
  Installed: (none)
  Candidate: (none)
  Version table:
lazarus-ide-gtk2-0.9.30:
  Installed: (none)
  Candidate: 0.9.30-3
  Version table:
     0.9.30-3 0
        901 http://ftp.us.debian.org/debian/ testing/main i386 Packages
lcl-gtk2-0.9.30:
  Installed: (none)
  Candidate: 0.9.30-3
  Version table:
     0.9.30-3 0
        901 http://ftp.us.debian.org/debian/ testing/main i386 Packages
librccgtk2-0:
  Installed: (none)
  Candidate: 0.2.9-3
  Version table:
     0.2.9-3 0
        901 http://ftp.us.debian.org/debian/ testing/main i386 Packages
uim-gtk2.0:
  Installed: (none)
  Candidate: 1:1.7.1-3
  Version table:
     1:1.7.1-3 0
        901 http://ftp.us.debian.org/debian/ testing/main i386 Packages
Should have been the right commands to search for gtk and glib in apt with apt-cache policy command.
I don't run parcellite so all I can do is help you search to make sure all correct dependencies are installed for parcellite to run and that you are running the fixed parcellite version stated in the bug report also.

/usr/bin/parcellite & command looks OK though for .icewm/startup to open it up after login. Maybe a sleep 2 option might help like you have in wicd startup line. Give it time to finish loading desktop before opening parcellite.

Code: Select all

sleep 2 && /usr/bin/parcellite &
Posts: 325
male
Joined: 04 Nov 2011
#5
Change

Code: Select all

...## Set wallpaper via nitrogen
#rm $HOME/.config/nitrogen/bg-saved.cfg
#ln -s $HOME/.config/nitrogen/bg-saved-icewm.cfg $HOME/.config/nitrogen/bg-saved.cfg 
#nitrogen --restore &

sleep 5 && volumeicon &

#Beim Start den Clipboardmanager 'Parcellite' ausführen - Run 'Parcellite' on startup
/usr/bin/parcellite
in

Code: Select all

...
...
sleep 5 && volumeicon &

parcellite &
Posts: 24
Honeypuck
Joined: 19 Jan 2012
#6
@rokytnji & male:

Your suggestions for modifying the startup file do not work, unfortunately, this annoying window appears nonetheless.

I checked for fulfilled dependencies, and everything looks fine, like in rokytnji's code example.

Here is my output:

Code: Select all

root@AntiX:~# apt-cache policy glib2.0
libglib2.0-0:
  Installiert: 2.30.2-5
  Kandidat:    2.30.2-5
  Versionstabelle:
 *** 2.30.2-5 0
        100 /var/lib/dpkg/status
     2.30.2-4 0
        500 http://ftp.de.debian.org/debian/ testing/main i386 Packages
libglib2.0-dev:
  Installiert: (keine)
  Kandidat:    2.30.2-4
  Versionstabelle:
     2.30.2-4 0
        500 http://ftp.de.debian.org/debian/ testing/main i386 Packages
libglib2.0-doc:
  Installiert: 2.30.2-4
  Kandidat:    2.30.2-4
  Versionstabelle:
 *** 2.30.2-4 0
        500 http://ftp.de.debian.org/debian/ testing/main i386 Packages
        100 /var/lib/dpkg/status
libglib2.0-cil:
  Installiert: 2.12.10-2
  Kandidat:    2.12.10-2
  Versionstabelle:
 *** 2.12.10-2 0
        500 http://ftp.de.debian.org/debian/ testing/main i386 Packages
        100 /var/lib/dpkg/status
libtaglib2.0-cil:
  Installiert: (keine)
  Kandidat:    2.0.3.7+dfsg-1
  Versionstabelle:
     2.0.3.7+dfsg-1 0
        500 http://ftp.de.debian.org/debian/ testing/main i386 Packages
libglib2.0-0-dbg:
  Installiert: (keine)
  Kandidat:    2.30.2-4
  Versionstabelle:
     2.30.2-4 0
        500 http://ftp.de.debian.org/debian/ testing/main i386 Packages
libglib2.0-bin:
  Installiert: (keine)
  Kandidat:    2.30.2-4
  Versionstabelle:
     2.30.2-4 0
        500 http://ftp.de.debian.org/debian/ testing/main i386 Packages
libglib2.0-data:
  Installiert: 2.30.2-5
  Kandidat:    2.30.2-5
  Versionstabelle:
 *** 2.30.2-5 0
        100 /var/lib/dpkg/status
     2.30.2-4 0
        500 http://ftp.de.debian.org/debian/ testing/main i386 Packages
libglib2.0-dbg:
  Installiert: (keine)
  Kandidat:    (keine)
  Versionstabelle:
libglib2.0-0-refdbg:
  Installiert: (keine)
  Kandidat:    2.30.2-4
  Versionstabelle:
     2.30.2-4 0
        500 http://ftp.de.debian.org/debian/ testing/main i386 Packages
libglib2.0-cil-dev:
  Installiert: (keine)
  Kandidat:    2.12.10-2
  Versionstabelle:
     2.12.10-2 0
        500 http://ftp.de.debian.org/debian/ testing/main i386 Packages
root@AntiX:~# apt-cache policy gtk+2.0
libgtk2.0-0:
  Installiert: 2.24.8-3
  Kandidat:    2.24.8-3
  Versionstabelle:
 *** 2.24.8-3 0
        500 http://ftp.de.debian.org/debian/ testing/main i386 Packages
        100 /var/lib/dpkg/status
libgtk2.0-doc:
  Installiert: 2.24.8-3
  Kandidat:    2.24.8-3
  Versionstabelle:
 *** 2.24.8-3 0
        500 http://ftp.de.debian.org/debian/ testing/main i386 Packages
        100 /var/lib/dpkg/status
libgtk2.0-dev:
  Installiert: (keine)
  Kandidat:    2.24.8-3
  Versionstabelle:
     2.24.8-3 0
        500 http://ftp.de.debian.org/debian/ testing/main i386 Packages
libgtk2.0-cil-dev:
  Installiert: (keine)
  Kandidat:    2.12.10-2
  Versionstabelle:
     2.12.10-2 0
        500 http://ftp.de.debian.org/debian/ testing/main i386 Packages
libgtk2.0-cil:
  Installiert: 2.12.10-2
  Kandidat:    2.12.10-2
  Versionstabelle:
 *** 2.12.10-2 0
        500 http://ftp.de.debian.org/debian/ testing/main i386 Packages
        100 /var/lib/dpkg/status
libgtk2.0-bin:
  Installiert: 2.24.8-3
  Kandidat:    2.24.8-3
  Versionstabelle:
 *** 2.24.8-3 0
        500 http://ftp.de.debian.org/debian/ testing/main i386 Packages
        100 /var/lib/dpkg/status
monodoc-gtk2.0-manual:
  Installiert: (keine)
  Kandidat:    2.12.10-2
  Versionstabelle:
     2.12.10-2 0
        500 http://ftp.de.debian.org/debian/ testing/main i386 Packages
libgwengui-gtk2-0:
  Installiert: (keine)
  Kandidat:    4.3.1-1
  Versionstabelle:
     4.3.1-1 0
        500 http://ftp.de.debian.org/debian/ testing/main i386 Packages
libgtk2.0-common:
  Installiert: 2.24.8-3
  Kandidat:    2.24.8-3
  Versionstabelle:
 *** 2.24.8-3 0
        500 http://ftp.de.debian.org/debian/ testing/main i386 Packages
        100 /var/lib/dpkg/status
gtk2.0-examples:
  Installiert: 2.24.8-3
  Kandidat:    2.24.8-3
  Versionstabelle:
 *** 2.24.8-3 0
        500 http://ftp.de.debian.org/debian/ testing/main i386 Packages
        100 /var/lib/dpkg/status
libgtk2.0-0-dbg:
  Installiert: (keine)
  Kandidat:    2.24.8-3
  Versionstabelle:
     2.24.8-3 0
        500 http://ftp.de.debian.org/debian/ testing/main i386 Packages
gtk2.0-binver-2.10.0:
  Installiert: (keine)
  Kandidat:    (keine)
  Versionstabelle:
lazarus-ide-gtk2-0.9.30.2:
  Installiert: (keine)
  Kandidat:    0.9.30.2-1
  Versionstabelle:
     0.9.30.2-1 0
        500 http://ftp.de.debian.org/debian/ testing/main i386 Packages
lcl-gtk2-0.9.30.2:
  Installiert: (keine)
  Kandidat:    0.9.30.2-1
  Versionstabelle:
     0.9.30.2-1 0
        500 http://ftp.de.debian.org/debian/ testing/main i386 Packages
librccgtk2-0:
  Installiert: (keine)
  Kandidat:    0.2.9-3
  Versionstabelle:
     0.2.9-3 0
        500 http://ftp.de.debian.org/debian/ testing/main i386 Packages
uim-gtk2.0:
  Installiert: (keine)
  Kandidat:    1:1.7.1-3
  Versionstabelle:
     1:1.7.1-3 0
        500 http://ftp.de.debian.org/debian/ testing/main i386 Packages
Versions maybe a bit newer, but the same packages are installed.

In case I haven't been clear enough, Parcellite works just fine, whether started manually or via the startup script, even with that window. Thus I would guess that this is actually not a Parcellite or GTK issue, but rather a problem with IceWM.

Maybe someone can suggest me an alternative clipboard manager, I could deploy. It's only that I know Parcellite from the GNOME desktop, and there it works fine. If there is another clipboard program out there, where you can set an individual keyboard shortcut to invoke the list óf copied items, I'd be more than happy to use that one, provided it can be added to the startup script.
Posts: 162
drg
Joined: 22 Feb 2010
#7
Maybe clipit.
Check it out at packages.debian.org, wheezy or sid versions.
It has a recommended package called xdotool to"simulate X11 keyboard/mouse input" (and may have nothing to do with what you want). Also a link to
========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://clipit.rspwn.com/"
linktext was:"http://clipit.rspwn.com/"
====================================
Posts: 1,062
Dave
Joined: 20 Jan 2010
#8
Try adding the daemon option to parcellite in your startup, as you are running it in non daemon mode it will probably open the window for parcellite configuration. Also it seems that it must wait for setxkbmap de to finish ( this may or may not be a problem ), I would add a & to the end of that line as well.

the modified parts should then look like

setxkbmap de &
and
parcellite -d &
Posts: 279
afab4
Joined: 17 Oct 2009
#9
Try this in your startup: Works on my rig

Code: Select all

sleep 5 && volumeicon &
sleep 5 && parcellite &
Posts: 24
Honeypuck
Joined: 19 Jan 2012
#10
Thanks a lot for the last two suggestions, I finally got it to work with a mixture of the proposals.
Here is the code that works:

Code: Select all

setxkbmap de &
sleep 5 && parcellite &
Thanks a lot for your help! __{{emoticon}}__ __{{emoticon}}__ __{{emoticon}}__
Posts: 325
male
Joined: 04 Nov 2011
#11
Genau!

Sometimes it helps to get to run applications sequentially

Code: Select all

...
sleep 5 && volumeicon &

sleep 8 && keepassx &

sleep 10 && parcellite &