Help - Search - Members - Calendar
Full Version: Application Icon On Qtopia Taskbar
OESF Forums > Distros, Development, and Model Specific Forums > Everything Development > Python

I'm trying to get my application's icon to get onto the Qtopia taskbar. I have the following appname.desktop file:

[Desktop Entry]
Comment=Spaced Repetition Software
Display=640x480/144dpi,480x640/144dpi lives in /home/QtPalmtop/bin and contains:

/usr/bin/env PYTHONPATH=/home/QtPalmtop/lib/python2.4 /home/zaurus/Documents/python/

The application icon appears in the main launcher. If I click it, the application launches, but I don't see the application icon on the task bar (the place where currently open applications are listed). So if I move away to another application, there is no way to get back to Anki because there is no task bar icon.

Can someone suggest what might be the problem here?

Thanks in advance!
I've been able to solve my problem. Unfortunately, the solution required writing more code, so I don't see it as the best option. For now, though, it will more than suffice.

It seems like a Bash script doesn't quite cut it (no icon gets drawn). A symlink doesn't work, either (presumably, it's because it doesn't find the required imports, cause they aren't in any of the locations Python searches).

#!/usr/bin/env python
This launch script should be placed in /opt/QtPalmtop/bin.  

Chown it to root:qpe and chmod it to 755.

It's required for the application to correctly start up in Qtopia.  Without it,
it doesn't seem possible to launch the app from the main application launcher,
have the application icon appear on the task bar, and keep the entire app
source tree away from /opt/QtPalmtop/bin.

It should be possible to avoid using this script if the application we're
trying to launch is installed into somewhere where Python can find it.  

import traceback
import sys

The location of the log file the launcher will write to.
LOG_FILE = '/home/zaurus/anki_qpe_launcher.txt'

The location of where the source files for AnkiQT Lite reside.
SOURCE_DIR = '/home/zaurus/Documents/python/ankiqpe'

    f = open(LOG_FILE, 'w')
        for i in range(0, len(sys.argv)):
            f.write('sys.argv[%d]: %s\n' % (i, sys.argv[i]))


        import ankiqt_lite_main
    except Exception, e:
Have you seen these previous posts?

Possibly these will help?


QUOTE(Stubear @ Jan 31 2008, 10:20 AM) *

Thanks... I'm surprised my initial search of the forums didn't return those. They are a great help!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2016 Invision Power Services, Inc.