OESF Portables Forum

Everything Else => General Support and Discussion => Zaurus General Forums => Archived Forums => Software => Topic started by: wlaw on May 16, 2007, 09:40:36 pm

Title: Icon Missing After Installing
Post by: wlaw on May 16, 2007, 09:40:36 pm
Hi

I am a newbie on C3100. I believe I have installed KDEPIM 2.2.7 on it using the Package manage, however, I could not find the icon for it in the program menu.

How to add the icon  ?

Thank you !
Title: Icon Missing After Installing
Post by: Capn_Fish on May 16, 2007, 09:57:17 pm
This is probably a dumb question, but what ROM are you using (pdaXrom, Cacko, etc.)?
Title: Icon Missing After Installing
Post by: wlaw on May 16, 2007, 09:58:45 pm
Thank you for our prompt reply. My Z is running pdaXrom beta 3
Title: Icon Missing After Installing
Post by: sdjf on May 16, 2007, 10:12:01 pm
Are you sure it isn't in any of the tabs?  I don't know much about it, but from what I can see, it is a set of IPKs and not just one.  See this:

 http://www.pi-sync.net/html/release_notes.html (http://www.pi-sync.net/html/release_notes.html)

And while you're waiting for more knowledgable responses, see if any of the stuff turned up by a search for the folloing is helpful:

kdepim icon zaurus   [you might also add pdaXrom to the search list]

Do you have a console or terminal installed?  If not, read why I think having a console can help with installing ipks at:

http://www.sdjf.esmartdesign.com/tutorial.html (http://www.sdjf.esmartdesign.com/tutorial.html)

And as a Linux/Zaurus newbie, I recommend looking at the first couple of links on the following newbie page:

http://www.sdjf.esmartdesign.com/new.html (http://www.sdjf.esmartdesign.com/new.html)

I see Capn_Fish is helping you since I starting writing this, but I hope some of the above also helps!

sdjf
Title: Icon Missing After Installing
Post by: Capn_Fish on May 16, 2007, 10:23:32 pm
If you can figure out the terminal command, you can make your own "icon" (a.k.a. *.desktop file).

Look in /usr/share/applications for examples, and substitute your command to execute, the icon, the name, etc.

EDIT: If your icon doesn't show up after putting it in the .desktop file, try putting the full path to the icon in it.
Title: Icon Missing After Installing
Post by: sdjf on May 16, 2007, 10:35:54 pm
Capn_Fish, will it appear as just one icon instead of separate icons for each of the kdepim applications?

sdjf
Title: Icon Missing After Installing
Post by: wlaw on May 16, 2007, 10:43:58 pm
Quote
If you can figure out the terminal command, you can make your own "icon" (a.k.a. *.desktop file).

Look in /usr/share/applications for examples, and substitute your command to execute, the icon, the name, etc.

EDIT: If your icon doesn't show up after putting it in the .desktop file, try putting the full path to the icon in it.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=161499\"][{POST_SNAPBACK}][/a][/div]

Thank you , Capn_Fish! However, I don't understand what is mean by

substitute your command to execute, the icon, the name, etc.

can you give me an example ?

Also , how to putting it in the .desktop file

Thank you again !
Title: Icon Missing After Installing
Post by: sdjf on May 17, 2007, 01:52:58 am
Make sure it's actually installed with the following command from your console:

ipkg status | more

And look at the output to see if your kdepim is recognized, and what it is called.  I'm sorry I can't answer your other questions.  There oughta be a pdaXrom version that newbies can install without having to work so hard at it, IMNSHO.

The above command should show all installed packages, and the "| more" part makes it so that you only have to see one screenful at a time.  Just press the space bar (I think) to view the next screen, if there's more than one screen
Title: Icon Missing After Installing
Post by: wlaw on May 17, 2007, 03:26:14 am
Thank you sdif !

I get korganizer and kaddressbook with
status: install OK installed


So, what can I do next to make the icon appear and use this organizer ?

Thank you !
Title: Icon Missing After Installing
Post by: alijames on May 17, 2007, 03:59:27 am
Hi,

You probably need to restart your X server. The icons will then appear under the 'Office' Tab, or menu option. They certainly do for me.

Cheers,

Alistair
Title: Icon Missing After Installing
Post by: wlaw on May 17, 2007, 04:11:39 am
Yes, I have restarted many times, but there is no such icon under the office tab, what's wrong ?
Title: Icon Missing After Installing
Post by: Capn_Fish on May 17, 2007, 07:54:44 am
In the directory /usr/share/applications, there are a bunch of files with the extension (stuff after the '.') "desktop." You need to go there and make a copy of one of the files. Open the copy with a text editor (like leafpad). You should see almost English stuff. Where it says to execute the program the desktop file is for, substitute kdepim (or whatever the command is to launch it). Do the same for the name. For the icon, find what kdepim's icon is in /usr/share/pixmaps/. Substitute /usr/share/pixmaps/xyz.png for the icon name that is currently there, where xyz.png is the correct icon. Save the file and rename it to kdepim.desktop, then restart X. It should be somewhere for you to click.

HTH.
Title: Icon Missing After Installing
Post by: Jon_J on May 17, 2007, 10:55:34 am
check out this thread, there's some useful info in it about packages having their .desktop being files installed elsewhere besides the "usual" place.

"Assign Icon To Executable. How?, some GUI executables don't install icons"
https://www.oesf.org/forums/index.php?showtopic=23140 (https://www.oesf.org/forums/index.php?showtopic=23140)
Title: Icon Missing After Installing
Post by: sdjf on May 17, 2007, 11:41:18 am
Jon_J, thank you.  That thread is a wealth of information which I will want to add to the IPK documentation I am writing, as soon as I can digest it all.

wlaw, if you don't understand that thread, don't feel bad.  It wasn't exactly written for a newbie.  I'm not sure I can follow it without a lot of intense study, either!

I just had a similar problem installing a different application the other day, and here's what I would do, based on what worked for me installing an IPK whose icon didn't appear.  First, get lists of all files on your Zaurus that start with the same names as those 2 files:

find / -name korganizer*; find / -name kaddressbook*

There are no guarantees, but the lists you get should show files ending with image extensions (png,jpg,gif,etc) and desktop.  That will tell you where the important files are.

I suggest copying and pasting the output and saving it so you can post it all here so we can help you better.

Next, I would study that ikg status output again, and pick the name of some application that you know has an icon that works.  Do the same kind of 'find' for that and that should show you the "correct" places to move the one image and desktop file for each app that is needed.  I know there may be more image files than just the one needed, so figuring out which one to move may be tricky.

On my Sharp ROM, the "correct" place for the files are in the following directories, using "zfax" as an example:

/home/QtPalmtop/apps/Applications/zfax.desktop
/home/QtPalmtop/pics/zfax.png

sdjf
Title: Icon Missing After Installing
Post by: sdjf on May 17, 2007, 11:57:19 am
If the above doesn't work because there are too many image files, or some other reason, I strongly recommend installing "lsof", which I believe has a pdaXrom version somewhere.  You can read my page about "lsof" at http://www.sdjf.esmartdesign.com/ipks/lsof.html (http://www.sdjf.esmartdesign.com/ipks/lsof.html) but need to get the pdaXrom version, wherever it is.

Meanwhile, if the icons don't appear, you should be able to start the kdepim apps from the command line, for korganizer, it would be:

bash-2.05# korganizer &

lsof can help with debugging this problem, so if things don't work, I'll post further instructions on how to use it to help with your icon problem.  I don't have time to explain it now.

sdjf
Title: Icon Missing After Installing
Post by: desertrat on May 17, 2007, 04:50:52 pm
Quote
Jon_J, thank you.  That thread is a wealth of information which I will want to add to the IPK documentation I am writing, as soon as I can digest it all.
Here are some functions that I find useful, I have these in my .bashrc file:

Code: [Select]
function listpkg
{
# list all the installed packages
# usage: listpkg

    list1=`ipkg-link list /`
    # change the '/mnt/hd/install' to whatever other install locations you use
    list2=`ipkg-link list /mnt/hd/install`
    echo "$list1 $list2" | grep -F -v '*' | sort | less
}

function filepkg
{
# list files in installed package
# usage: filepkg

    if [ -f "/usr/lib/ipkg/info/$1.list" ]; then
        less "/usr/lib/ipkg/info/$1.list"
    # change the '/mnt/hd/install' to whatever other install locations you use
    elif [ -f "/mnt/hd/install/usr/lib/ipkg/info/$1.list" ]; then
        less "/mnt/hd/install/usr/lib/ipkg/info/$1.list"
    fi
}

function fileipk
{
# list files in ipk
# usage: fileipk

    if [ -z $1 ]; then
        echo "Usage: $0 "
    else
        tar zxf $1 -O ./data.tar.gz | tar zt
    fi
}

listpkg simply lists the installed packages
filepkg lists the installed by a particular package, it takes 1 argument - the package name - as given  by listpkg.
NB you will have to modify the above so that they'll look in the correct places for your installed packages. Perhaps one day I'll make them smarter and have them parse /etc/ipkg.conf for the info.
fileipk given a "packge.ipk" as argument will display what files will be installed by that ipk.
Title: Icon Missing After Installing
Post by: sdjf on May 17, 2007, 07:33:28 pm
Thanks! How come in .bashrc instead of in a script or function library?

The display on my Z is a bit wierd so I'll wget this page when I have more time to study it better.  Super busy right now, don't have time to test the stuff for at least a few days.

thanks again,
sdjf
Title: Icon Missing After Installing
Post by: wlaw on May 21, 2007, 03:05:28 am
Quote
Meanwhile, if the icons don't appear, you should be able to start the kdepim apps from the command line, for korganizer, it would be:

bash-2.05# korganizer &


sdjf
[div align=\"right\"][a href=\"index.php?act=findpost&pid=161545\"][{POST_SNAPBACK}][/a][/div]

I tried to type

"korganizer &"

but it still doesn't run. What can I do ?
Title: Icon Missing After Installing
Post by: Chero on May 21, 2007, 04:38:21 am
Quote
Quote

Meanwhile, if the icons don't appear, you should be able to start the kdepim apps from the command line, for korganizer, it would be:

bash-2.05# korganizer &


sdjf
[div align=\"right\"][a href=\"index.php?act=findpost&pid=161545\"][{POST_SNAPBACK}][/a][/div]

I tried to type

"korganizer &"

but it still doesn't run. What can I do ?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=161765\"][{POST_SNAPBACK}][/a][/div]

are you sure you installed the pdax-version of kdepimpi ?

The command for korganizer is : "kopi &"
The command for kaddressbook is : "kapi &"

Chero.
Title: Icon Missing After Installing
Post by: sdjf on May 21, 2007, 05:14:34 am
Quote
I tried to type "korganizer &" but it still doesn't run. What can I do ?
[div align=\"right\"][{POST_SNAPBACK}][/a][/div] (http://index.php?act=findpost&pid=161765\")

Chero's question about the version was excellent.  Please post the exact name of the IPK you installed and the URL where you installed it from.

Second, please try starting it from the command line using "kopi &" and/or "kapi &".

If it still doesn't start, please copy everything that appears in your console here so we can see if there are any important clues in that output.

Also, it would be helpful to also see if there is enough memory for your Zaurus to run it.   Just in case it might be an issue, enter "free" and also post the results of that command.

There are more things to try, but I don't want to make more suggestions until seeing results of the above suggestions.

Do you have the "lsof" command on your zaurus?  You can download it from [a href=\"https://www.oesf.org/forums/index.php?showtopic=18415&view=findpost&p=160227]https://www.oesf.org/forums/index.php?showt...ndpost&p=160227[/url]

My discussion of lsof (which could help with finding where to put missing icons) is at http://www.sdjf.esmartdesign.com/commands/lsof.html (http://www.sdjf.esmartdesign.com/commands/lsof.html)

sdjf
Title: Icon Missing After Installing
Post by: wlaw on May 21, 2007, 09:38:58 am
Quote
are you sure you installed the pdax-version of kdepimpi ?

The command for korganizer is : "kopi &"
The command for kaddressbook is : "kapi &"

Chero.

I got

bash:kopi:command not found

bash:kapi:command not found

in both cases !

What's wrong ?
Title: Icon Missing After Installing
Post by: wlaw on May 21, 2007, 09:50:21 am
Quote
Chero's question about the version was excellent.  Please post the exact name of the IPK you installed and the URL where you installed it from.

I download the file kdepim_2.2.7_for_SharpRom.ipk.zip  

from the page http://sourceforge.net/project/showfiles.php?group_id=104103 (http://sourceforge.net/project/showfiles.php?group_id=104103)

Is it correct ?
Title: Icon Missing After Installing
Post by: Chero on May 21, 2007, 11:06:13 am
Quote
Quote
Chero's question about the version was excellent.  Please post the exact name of the IPK you installed and the URL where you installed it from.

I download the file kdepim_2.2.7_for_SharpRom.ipk.zip  

from the page http://sourceforge.net/project/showfiles.php?group_id=104103 (http://sourceforge.net/project/showfiles.php?group_id=104103)

Is it correct ?
[div align=\"right\"][{POST_SNAPBACK}][/a][/div]
 (http://index.php?act=findpost&pid=161777\")

No. It says "_for_SharpRom" (pdaXrom is not a Sharp Rom).

Check the package from this feed : [a href=\"http://matrixmen.free.fr/zaurus/pdaxrom/oesf/feed/]http://matrixmen.free.fr/zaurus/pdaxrom/oesf/feed/[/url]

tip : packages for pdaXrom should all end on "_armv5tel.ipk"

Chero.