topic title: xinitrc-custom?
Posts: 5
dohcacr
Joined: 07 Jul 2014
#1
Just installed MX-14 on an old Toshiba laptop. Since I am putting this together for a windows user, I want to make it as painless an experience as possible. I want to make the insertion of a dvd or cd auto launch an appropriate application. By searching the forum I learned of xinitrc-custom, but my installation does not have that file in the home directory. How do I make media insertion initiate the launch of an appropriate application in MX-14?
Posts: 2,238
dolphin_oracle
Joined: 16 Dec 2007
#2
thunar (the file manager that is the MX default) has a volume manager built in that will direct cd's and dvd's to open an appropriate app. Its in the preferences for thunar.
Posts: 4,164
rokytnji
Joined: 20 Feb 2009
#3
MX14 uses Thunar. So Howdy and Welcome.
Installation

Thunar Volume Manager can be installed from the package thunar-volman in the official repositories.
Configuration

It can also be configured to execute certain actions when cameras and audio players are connected. After installing the plugin:

Launch Thunar and go to Edit > Preferences
Under the 'Advanced' tab, check 'Enable Volume Management'
Click configure and check the following items:
Mount removable drives when hot-plugged.
Mount removable media when inserted.
Also make desired changes (see the example below)

Here's an example setting for making Amarok play an audio CD.
Where clementine I guess gets subbed for Amorok


========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"https://wiki.archlinux.org/index.php/thunar#Automounting"
linktext was:"https://wiki.archlinux.org/index.php/th ... tomounting"
====================================


Edit: D.O. is faster than me when it comes to typing. __{{emoticon}}__
Posts: 65
balloon
Joined: 27 May 2014
#4
MX-14 usually uses Xfce.

To launch custom applications when Xfce starts up,
click the Applications Menu - Settings - Settings Manager
and then choose the"Session and Startup" option and click the tab"Application Autostart".
Posts: 5
dohcacr
Joined: 07 Jul 2014
#5
Thank you all for your responses. Sorry that it took me a while to respond to them, but I've been tied up with other matters. I looked into Thumar preferences, and found your instructions easy to follow, but the cds and dvds still don't launch. I suspect that it may be because of the command string I have entered after selecting"configure" when enabling volume managment.

For audio CDs I entered the command string clementine --cdplay %d
I picked that up from the amarok example in the doc at
========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"https://wiki.archlinux.org/index.php/thunar#Automounting"
linktext was:"https://wiki.archlinux.org/index.php/th ... tomounting"
====================================

I also tried /usr/bin/clementine --cdplay %d
Tried logging out and back in, but clementine still does not launch after inserting an audio cd.

I could use some more suggestions, if you have any ideas of where this process is going wrong.

UPDATE: GOT IT! used the command vlc dvd://
Now I need to work on clementine __{{emoticon}}__
Posts: 2,238
dolphin_oracle
Joined: 16 Dec 2007
#6
I'm not sure that clementine can autoplay a cd. VLC can though.

vlc cdda:///dev/cdrom
Posts: 5
dohcacr
Joined: 07 Jul 2014
#7
Cool, that will help. Thanks.
Posts: 2,238
dolphin_oracle
Joined: 16 Dec 2007
#8
fyi: VLC has a playlist view as well and it will pull the track info from the net. On my system, with a Bon Jovi album, clementine got the track info in the wrong order but vlc's was correct.