Author Topic: Make Xmms Launch With Parameters  (Read 2055 times)

Nighthawk98TJ

  • Newbie
  • *
  • Posts: 12
    • View Profile
Make Xmms Launch With Parameters
« 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!!

Stubear

  • Hero Member
  • *****
  • Posts: 1164
    • View Profile
    • http://
Make Xmms Launch With Parameters
« Reply #1 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
SL-C1000, Hand converted to English with Japanese Input
Running X apps via X/Qt
iRiver USB host cable; Diatec P-Cord usb power cable (extendable); Acro's Reel Cable USB (A to A, B, Mini-B,  & Mini-B 8pin); GreenHouse 1Gb PicoDrive+; 2x256Mb Hagiwara SD cards; 128Mb Transcend CF card; 512Mb PQI CF card; AmbiCom WL1100C-CF 11B WLAN card

Nighthawk98TJ

  • Newbie
  • *
  • Posts: 12
    • View Profile
Make Xmms Launch With Parameters
« Reply #2 on: April 07, 2005, 08:43:26 pm »
Great!  Thank you!!!