OESF Portables Forum

Everything Else => Zaurus Distro Support and Discussion => Distros, Development, and Model Specific Forums => Archived Forums => Sharp ROMs => Topic started by: Nighthawk98TJ on April 07, 2005, 08:25:06 pm

Title: Make Xmms Launch With Parameters
Post by: Nighthawk98TJ on April 07, 2005, 08:25:06 pm
Hey All,

I am attempting to setup XMMS with Sharp 3.10 so that when I launch the icon, it launches with a few command line parameters (-p -e /mnt/card/Music/*.*)... however, when I edit /opt/QtPalmtop/apps/Applications/xmms.desktop, I change the "Exec=" line to be:

Exec=xmms -p -e /mnt/card/Music/*.*

(tried with quotes too... doesn't work!)

... and then after restarting Qtopia and hitting the icon, it won't launch XMMS.  If I do this command from the console, it works as needed.

Are there any suggestions as to how I can get this functioning?

My end goal is to bind this command to a button on the Z to launch XMMS, enqueue my sons and play them with one keypress.

BTW, I have a 5500 running 3.10.

Thank you!!
Title: Make Xmms Launch With Parameters
Post by: Stubear on April 07, 2005, 08:32:37 pm
You can't pass parameters via qtopia, if you want arguemnts for your app then you have to write a shell script to do that and then call the shell script from the .desktop file.

Example for you case
Code: [Select]
#!/bin/bash
xmms -p -e /mnt/card/Music/*
- it's linux so you don't need 2 * (unless you are doing that to ignore directory)

Save that as xmms-start.sh, then chmod +x xmms-start.sh, copy xmms-start.sh to /home/Qtopia/bin then change your Exec= to Exec=xmms-start.sh

Stu
Title: Make Xmms Launch With Parameters
Post by: Nighthawk98TJ on April 07, 2005, 08:43:26 pm
Great!  Thank you!!!