LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-25-2014, 04:57 PM   #1
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
Default apps when using multiple desktops


What tricks do you folks use to set default apps when using different desktops?

In my case I am trying to use both Cinnamon and Mate. The default file manager in Cinnamon is nemo and in Mate caja. Both desktops use ~/.local/applications/mimeapps.list to determine default apps. In either desktop I can select only one file manager or the other.

I could write an autostart script to change the inode/directory key, but I wonder whether there is a better solution.

Thanks.
 
Old 05-25-2014, 09:28 PM   #2
Paulo2
Member
 
Registered: Aug 2012
Distribution: Slackware64 15.0 (started with 13.37). Testing -current in a spare partition.
Posts: 928

Rep: Reputation: 515Reputation: 515Reputation: 515Reputation: 515Reputation: 515Reputation: 515
Just I don't know if this will work, but
if there is /usr/bin/startmate and startcinnamon,
you can put something like
cp -f "$HOME"/.local/applications/mimeapps.list-mate "$HOME"/.local/applications/mimeapps.list
and the same for Cinnamon.
Still remains the problem at logout, you must save mimeapps.list as mimeapps.list-mate(or cinnamon)
 
Old 05-25-2014, 10:07 PM   #3
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Original Poster
Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
Thanks. That is much the same idea as the autostart script I mentioned. All the script does is sed the inode/directory line to toggle between nemo and caja.
 
Old 05-25-2014, 11:45 PM   #4
Paulo2
Member
 
Registered: Aug 2012
Distribution: Slackware64 15.0 (started with 13.37). Testing -current in a spare partition.
Posts: 928

Rep: Reputation: 515Reputation: 515Reputation: 515Reputation: 515Reputation: 515Reputation: 515
Maybe making a link
ln -fs "$HOME"/.local/applications/mimeapps.list-mate "$HOME"/.local/applications/mimeapps.list
but this way I think you must do it for all desktops. I think you won't have a real mimeapps.list anymore,
but I don't know if this will work
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Lost my 4 default desktops/workspaces nnjond Linux - Newbie 2 08-19-2010 02:56 PM
LXer: Software runs Linux, Windows apps on Mac desktops LXer Syndicated Linux News 0 02-28-2007 10:31 PM
force apps in specific virtual desktops gollum26 Linux - Software 2 01-02-2005 07:17 PM
Multiple desktops and default applications Andramalech Linux - Newbie 8 12-07-2004 11:03 AM
different desktops for different apps? cpv204 Linux - Newbie 7 03-25-2003 08:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration