pCD 1.5 - CD-audio player

Audio editors, music players, video players, burning software, etc.
Post Reply
Message
Author
Sylvander
Posts: 4416
Joined: Mon 15 Dec 2008, 11:06
Location: West Lothian, Scotland, UK

#106 Post by Sylvander »

1. "Does boxpup use the standard puppy event management system?"
As a newbie, this is all unknown to me, but I did manage to find "Menu->System->Puppy event manager".
Don't see any way in there to make configuration changes so that pCD would autoplay rather than Xfmedia player.

aragon
Posts: 1698
Joined: Mon 15 Oct 2007, 12:18
Location: Germany

#107 Post by aragon »

please look at the picture below. that's the event-manager (version in 4.10).

activate both items might do the trick.

aragon
Attachments
eventm.png
(37.71 KiB) Downloaded 837 times

Sylvander
Posts: 4416
Joined: Mon 15 Dec 2008, 11:06
Location: West Lothian, Scotland, UK

#108 Post by Sylvander »

Both of those boxes are already ticked. :(

seeker
Posts: 89
Joined: Thu 27 Nov 2008, 00:43
Location: Indiana, USA

#109 Post by seeker »

my guess would be to edit /usr/local/bin/defaultmediaplayer like this

Code: Select all

 #!/bin/sh
#exec gxineshell "$@"
exec pCD "$@"
Don't really know till you try.

aragon
Posts: 1698
Joined: Mon 15 Oct 2007, 12:18
Location: Germany

#110 Post by aragon »

yes but 4.2 has also defaultmusicplayer (maybe defaultaudioplayer) which is set to pmusic i think.

aragon

Sylvander
Posts: 4416
Joined: Mon 15 Dec 2008, 11:06
Location: West Lothian, Scotland, UK

#111 Post by Sylvander »

1 Searched for files with default in their name.

2. No file found named defaultaudioplayer, or anything similar.

3. Only /usr/local/bin/defaultmediaplayer found.
Made the suggested changes, but all that did was result in NO autoplay of ANY audio/media player.

4. Put things back as they had been and Xfmedia player now autoplays as previously.

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#112 Post by disciple »

Maybe we should have defaultcdplayer, defaultcdripper, defaultcdburner and defaultdvdplayer as well.
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

User avatar
ecomoney
Posts: 2178
Joined: Fri 25 Nov 2005, 07:00
Location: Lincolnshire, England
Contact:

#113 Post by ecomoney »

Sylvander, thank you for your support. About 70% of people I introduce Puppy Linux to return to Windows OS. I ask them why. Once of the constant replies I get is "I just want the damn thing to play a cd when I put one in, is that too much to ask?"....amongst several others.
01micko wrote:I think our efforts would be better spent on other issues
If our aim is to be "friendly to Linux Newbies", then we should not expect them to embark on learning curves for them to be able to be able to do the things Windows did for them automatically. They see "Plays CD's without needing to read a manual" as a "feature". :)

I think our efforts as Linux Developers are best spent making a Linux Starter Distro as immediately easy to use as Windows....and leave manual-reading to those who have an interest in knowing how Linux works (and they eventually will) to read the manual.

The thing is....I dont personally care a jot whether it plays CD automatically or not...I just Ive seen a lot of new Linux users that do. Any "Product", free or commercial, is doomed to failure if it does not listen to its "target market".
Puppy Linux's [url=http://www.murga-linux.com/puppy/viewtopic.php?p=296352#296352]Mission[/url]

Sorry, my server is down atm!

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#114 Post by disciple »

We could really do without the hyperbole.
"Menu->Multimedia->pCD CD-audio player" involves reading a menu, not a manual.
You're not asking for Puppy to be made easier, you're either asking for him to be made more automatic, or more like Windows, either of which is OK.
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#115 Post by disciple »

Okay, so I:
1. Changed the event manager settings to automatically run the handler when a disk is inserted, as described above.
2. Opened /usr/local/bin/drive_all and changed line 137 (I'm in Puppy 4.1.1, but my event manager is probably not stock) to start pcd

Code: Select all

...
  1) #audio
   ln -snf /dev/${ONEDRVNAME} /dev/cdrom
   exec pcd
   ;;
3. Inserted an audio CD. It didn't work.
4. Restarted my computer in case it made my (probably non stock) event manager actually respect the automatically run handler setting.
5. Inserted an audio CD, and pCD opened.

So it should be very straightforward - you just need to write a new handler dialogue to give you the choice of what to do instead.
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

Sylvander
Posts: 4416
Joined: Mon 15 Dec 2008, 11:06
Location: West Lothian, Scotland, UK

#116 Post by Sylvander »

a. Not sure I follow instructions in step 1, but the correct boxes are ticked in the "Event Manager".

b. Carried out steps 2 through 5, but all that happens is that there is now NO autoplay of ANY audio/media player.

c. Now restoring copy of previous /usr/local/bin/drive_all file.

d. Restarted xwin ["Ctrl+Alt+backstep" then xwin], and Xfmedia now autoplays as originally.

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#117 Post by disciple »

I presume in step 2 you found the place in the file that looked the same as the fragment I posted except it didn't run pcd?
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

Sylvander
Posts: 4416
Joined: Mon 15 Dec 2008, 11:06
Location: West Lothian, Scotland, UK

#118 Post by Sylvander »

Almost [but not quite] perfect success! :D

1. Found the following 3 lines [129 to 131] in the old copy of /usr/local/bin/drive_all file.

Code: Select all

1) #audio
   ln -snf /dev/${ONEDRVNAME} /dev/cdrom
   exec defaultmediaplayer cdda://
2. Replaced those 3 lines with:

Code: Select all

1) #audio
   ln -snf /dev/${ONEDRVNAME} /dev/cdrom
   exec pcd
3. Now when I close the drawer with an audio CD in...
pCD opens, but doesn't play.
It's necessary to click on the play button, and then the 1st track plays.
Would be better if it autoplayed the 1st track, followed by all the others.

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#119 Post by zigbert »

Sylvander wrote:pCD opens, but doesn't play.
It's necessary to click on the play button, and then the 1st track plays.
Would be better if it autoplayed the 1st track, followed by all the others.
I'll put it to the todo-list


Sigmund

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#120 Post by 01micko »

I am of the opinion, if playing an audio cd is to be the default action when a cd is inserted, that it should be an option. I don't always want to play my cd. I may want to rip it with pcdripper or ripoff or copy it with Pburn.

Rob, maybe I should have said that earlier :) . I feel many people would would echo my opinion. This is why I said that it wouldn't be worth pursuing.

Just my 2 cents.
Puppy Linux Blog - contact me for access

alex12
Posts: 82
Joined: Fri 30 Jan 2009, 03:33

#121 Post by alex12 »

Wow! There has been a lot of progress since .2.

User avatar
ecomoney
Posts: 2178
Joined: Fri 25 Nov 2005, 07:00
Location: Lincolnshire, England
Contact:

#122 Post by ecomoney »

Well Done Sylvander/Zigbert! :) A significant contribution to "just works", and another reason for people not to throw away an old P.C. It can now be used as a simple CD player, by those with *no previous linux knowledge*. :D

Im actually on a clients machine now with only puppy 2.15ce (without hotplug), so I cannot test. 01Micko, yes I see that there is a case for people that wish to customize their system or use particular apps for playing/ripping. pCD has a "rip" function included now, so this covers the two main functions that are possible/desired by users when they insert a CD. For someone new to linux, with no previous knowledge, finding out how to do that would involve many hours of research (especially if it involves editing BASH scripts).

Overall I believe having pcd open and play the cd (with the rip button visible) would at least do the most commonly desired option (to play the cd) and the audio from it would act at least as a confirmation to the user that the correct disk was entered before they pressed the "rip" button if so desired.

Doing nothing is not an option :wink:
Puppy Linux's [url=http://www.murga-linux.com/puppy/viewtopic.php?p=296352#296352]Mission[/url]

Sorry, my server is down atm!

User avatar
trapster
Posts: 2117
Joined: Mon 28 Nov 2005, 23:14
Location: Maine, USA
Contact:

#123 Post by trapster »

ecomoney wrote:
If our aim is to be "friendly to Linux Newbies", then we should not expect them to embark on learning curves for them to be able to be able to do the things Windows did for them automatically.
Yes, let's leave learning and thinking out of it.

...
trapster
Maine, USA

Asus eeepc 1005HA PU1X-BK
Frugal install: Slacko
Currently using full install: DebianDog

Sylvander
Posts: 4416
Joined: Mon 15 Dec 2008, 11:06
Location: West Lothian, Scotland, UK

#124 Post by Sylvander »

1. "let's leave learning and thinking out of it"
Ever since I 1st got a PC at Xmas 2006. I've been thinking and learning on that topic EVERY SINGLE DAY.
But that's a necessity as dictated by NEED, NOT the object of the exercise.
And my wife and 3 "kids" [born 1975, 1979, 1984] refuse to expend the effort that I do in learning about PC's.
They are ordinary PC users; I'm an "enthusiast".
I'm struggling to get them to take an interest in Puppy Linux, making backups, etc, so I need additional difficulties on things that aught to be simple, like I need a hole in the head.

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#125 Post by disciple »

Can somebody please explain to me what on earth learning and thinking have to do with it?
For someone new to linux, with no previous knowledge, finding out how to do that would involve many hours of research
?
Or 30 seconds of reading the menu?
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

Post Reply