LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 10-22-2013, 09:38 PM   #1
Kallaste
Member
 
Registered: Nov 2011
Distribution: Slackware
Posts: 363

Rep: Reputation: 85
Audacious associating with Firefox . . . can't find workaround


I am trying to find out where Firefox stores its default stylesheet so that I can modify it to make it print a whole webpage I want to print, instead of just the first formatted page of it (this is a common Firefox bug that has been around since 2003). However, due to another bug where Audacious opens in response to attempting some Firefox action, I cannot find out where the stylesheet is.

Here is what I did:

1. Enter "about:support" in the Firefox address bar.
2. Click on the "Open Directory" button next to the "Profile Directory" label.
3. Watch Audacious attempt to do something meaningful.

I thought I had seen a workaround somewhere for this issue, but I cannot find it now, and I may be wrong. All my file associations are set properly in exo-preferred-applications. I'm using XFCE.

I'd welcome any input or clarity.
 
Old 10-22-2013, 09:51 PM   #2
jprzybylski
Member
 
Registered: Apr 2011
Location: Canada
Distribution: Slackware
Posts: 99

Rep: Reputation: 23
I'm unsure how to change the default file manager for Firefox, but your profile directory is in $HOME/.mozilla/firefox.
 
1 members found this post helpful.
Old 10-22-2013, 09:56 PM   #3
STDOUBT
Member
 
Registered: May 2010
Location: Stumptown
Distribution: Slackware64
Posts: 583

Rep: Reputation: 242Reputation: 242Reputation: 242
In response to your title question,
You don't mention if you have tried in Firefox:
Edit/Preferences/applications

I have all mine set (by default) to either "Always ask" or "Preview in Firefox"
If your goal is to have something other than Audacious open files through Firefox,
you can just change those settings.

Also, you said:
"Audacious opens in response to attempting some Firefox action"
What action?
 
Old 10-22-2013, 09:57 PM   #4
TommyC7
Member
 
Registered: Mar 2012
Distribution: Slackware, CentOS, OpenBSD, FreeBSD
Posts: 530

Rep: Reputation: Disabled
Are you looking for (in Firefox):

Edit -> Preference -> Applications (tab)?
 
Old 10-22-2013, 10:09 PM   #5
jprzybylski
Member
 
Registered: Apr 2011
Location: Canada
Distribution: Slackware
Posts: 99

Rep: Reputation: 23
Quote:
Originally Posted by STDOUBT View Post
In response to your title question,
You don't mention if you have tried in Firefox:
Edit/Preferences/applications

I have all mine set (by default) to either "Always ask" or "Preview in Firefox"
If your goal is to have something other than Audacious open files through Firefox,
you can just change those settings.
Unfortunately, he is trying to open a folder, which is not shown in that list.

Looking at this, you may want to try something like opening the file $HOME/.local/share/applications/mimeapps.list and changing the line(s)

Code:
inode/directory=someprogram.desktop
x-directory/normal=someprogram.desktop
so that someprogram is exo-file-manager.
 
Old 10-22-2013, 10:26 PM   #6
chess
Member
 
Registered: Mar 2002
Location: 127.0.0.1
Distribution: Slackware and OpenBSD
Posts: 740

Rep: Reputation: 190Reputation: 190
Perhaps some of the similar issues discussed in this thread might help:

http://www.linuxquestions.org/questi...pp-4175465310/
 
Old 10-22-2013, 10:32 PM   #7
01micko
Member
 
Registered: Mar 2009
Location: Gold Coast, Queensland, Australia
Distribution: Puppy, Slackware
Posts: 92

Rep: Reputation: 18
In KDE the same button opens filelight at the correct location $HOME/.mozilla/firefox

I found this strange but if then I grepped for filelight in /use/share/applications/mimeinfo.cache and there lies the answer to why, and for you too with audacious. I also found that any "open in folder" button opened filelight.

Code:
bash-4.2$ grep filelight /usr/share/applications/mimeinfo.cache
inode/directory=kde4-filelight.desktop;kde4-gwenview.desktop;kde4-dolphin.desktop;kde4-kfmclient_dir.desktop;kde4-cervisia.desktop;Thunar-folder-handler.desktop;audacious.desktop;
I'm going to back mine up and edit it, then see later if it gets overwritten, however this is a reasonably fresh -current install and I've never opened audacious.

Later: I edited that line and left the dolphin and thunar entries and now works for me as expected. I had no filelight entry in ~/.local/share/applications/mimeinfo.cache or mimeapps.list re jprzybylski's post above.

Last edited by 01micko; 10-22-2013 at 10:41 PM. Reason: update
 
1 members found this post helpful.
Old 10-22-2013, 10:44 PM   #8
Kallaste
Member
 
Registered: Nov 2011
Distribution: Slackware
Posts: 363

Original Poster
Rep: Reputation: 85
Quote:
Originally Posted by STDOUBT View Post
In response to your title question,
You don't mention if you have tried in Firefox:
Edit/Preferences/applications

I have all mine set (by default) to either "Always ask" or "Preview in Firefox"
If your goal is to have something other than Audacious open files through Firefox,
you can just change those settings.
Those settings do not apply to what I am trying to do (oops, sorry, looks like jprzybylski pointed that out already).

Quote:
Also, you said:
"Audacious opens in response to attempting some Firefox action"
What action?
I said what action in my case. This one:

Quote:
1. Enter "about:support" in the Firefox address bar.
2. Click on the "Open Directory" button next to the "Profile Directory" label.
3. Watch Audacious attempt to do something meaningful.
I said the bug in general was to have Audacious open in response to "some Firefox action" because it happens in other cases as well and I know people have seen it before in other circumstances.

Quote:
Originally Posted by jprzybylski View Post
Looking at this, you may want to try something like opening the file $HOME/.local/share/applications/mimeapps.list and changing the line(s)

Code:
inode/directory=someprogram.desktop
x-directory/normal=someprogram.desktop
so that someprogram is exo-file-manager.
Hmm, unfortunately I do not seem to have either of those lines in that file. But thanks for finding that page--now that I see it, I remember having that same issue with the "open containing folder" in the downloads window, though I didn't recall before now.
 
Old 10-22-2013, 11:00 PM   #9
Kallaste
Member
 
Registered: Nov 2011
Distribution: Slackware
Posts: 363

Original Poster
Rep: Reputation: 85
Quote:
Originally Posted by 01micko View Post
In KDE the same button opens filelight at the correct location $HOME/.mozilla/firefox

I found this strange but if then I grepped for filelight in /use/share/applications/mimeinfo.cache and there lies the answer to why, and for you too with audacious. I also found that any "open in folder" button opened filelight.

Code:
bash-4.2$ grep filelight /usr/share/applications/mimeinfo.cache
inode/directory=kde4-filelight.desktop;kde4-gwenview.desktop;kde4-dolphin.desktop;kde4-kfmclient_dir.desktop;kde4-cervisia.desktop;Thunar-folder-handler.desktop;audacious.desktop;
I'm going to back mine up and edit it, then see later if it gets overwritten, however this is a reasonably fresh -current install and I've never opened audacious.

Later: I edited that line and left the dolphin and thunar entries and now works for me as expected. I had no filelight entry in ~/.local/share/applications/mimeinfo.cache or mimeapps.list re jprzybylski's post above.
Ha! It worked. Thank you, and thanks to everyone else who responded as well. Now I have one less bug to bother me tonight.
 
Old 10-22-2013, 11:05 PM   #10
jprzybylski
Member
 
Registered: Apr 2011
Location: Canada
Distribution: Slackware
Posts: 99

Rep: Reputation: 23
Quote:
Originally Posted by BloomingNutria View Post
Ha! It worked. Thank you, and thanks to everyone else who responded as well. Now I have one less bug to bother me tonight.
Great!

After the fact, I found this. Apparently xdg has been changing where they place configuration. Also every major DE does this more or less differently. Down this road, madness lays.
 
Old 10-22-2013, 11:27 PM   #11
01micko
Member
 
Registered: Mar 2009
Location: Gold Coast, Queensland, Australia
Distribution: Puppy, Slackware
Posts: 92

Rep: Reputation: 18
Ok, it's not quite solved as when you install something with slackpkg or installpkg the /usr/share/applications/mimeinfo.cache will get over written. I just tested this after a reboot (survived the reboot but not installing a desktop package).

In all DOTdesktop files there is the MimeType= entry, filelight has just inode/directory; whereas audacious has several including inode/directory. (EDITED) This would be a call like update-desktop-database /usr/share/applications from a doinst.sh (ref) . I just put my custom line for inode/directory= into ~/.local/share/mimeinfo.cache and that seems to be ok. There were no entries at all in that file. Now it looks like this:

Code:
bash-4.2$ cat ~/.local/share/applications/mimeinfo.cache
[MIME Cache]
inode/directory=kde4-dolphin.desktop;kde4-kfmclient_dir.desktop;kde4-cervisia.desktop;Thunar-folder-handler.desktop
EDIT: In dolphin I can fix it with the properties of a file and it puts an entry in ~/.local/share/applications/mimeapps.list as mentioned by jprzybylski.

Cheers

Last edited by 01micko; 10-23-2013 at 01:55 AM.
 
Old 10-24-2013, 12:00 PM   #12
Kallaste
Member
 
Registered: Nov 2011
Distribution: Slackware
Posts: 363

Original Poster
Rep: Reputation: 85
Quote:
Originally Posted by jprzybylski View Post
Great!

After the fact, I found this. Apparently xdg has been changing where they place configuration. Also every major DE does this more or less differently. Down this road, madness lays.
He he he. I've been going down that road a lot lately.

Quote:
Originally Posted by 01micko View Post
Ok, it's not quite solved as when you install something with slackpkg or installpkg the /usr/share/applications/mimeinfo.cache will get over written. I just tested this after a reboot (survived the reboot but not installing a desktop package).

In all DOTdesktop files there is the MimeType= entry, filelight has just inode/directory; whereas audacious has several including inode/directory. (EDITED) This would be a call like update-desktop-database /usr/share/applications from a doinst.sh (ref) . I just put my custom line for inode/directory= into ~/.local/share/mimeinfo.cache and that seems to be ok. There were no entries at all in that file. Now it looks like this:

Code:
bash-4.2$ cat ~/.local/share/applications/mimeinfo.cache
[MIME Cache]
inode/directory=kde4-dolphin.desktop;kde4-kfmclient_dir.desktop;kde4-cervisia.desktop;Thunar-folder-handler.desktop
EDIT: In dolphin I can fix it with the properties of a file and it puts an entry in ~/.local/share/applications/mimeapps.list as mentioned by jprzybylski.

Cheers
I read your references and added the same line, and I hope that fixes it. At least now I can go back and read again if it turns out I need to understand this better.

I appreciate the help with this from both of you!

Last edited by Kallaste; 10-24-2013 at 12:34 PM. Reason: typo: "turn" --> "turns"
 
  


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
Alternative to Audacious for eac cuesheets, midi playback (hardware)? Fix audacious? Holering Linux - Software 0 10-02-2010 11:19 PM
Torbutton and Firefox security bug workaround ananai Linux - Security 5 11-13-2008 12:10 AM
Audacious compiler can't find pango gymnart Linux - Software 10 12-10-2007 10:00 AM
firefox associating a file extension with program true_atlantis Linux - Software 1 01-07-2006 02:59 PM
Firefox associating with Kaffeine Neutron1998 Linux - Software 1 09-28-2004 11:02 PM

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

All times are GMT -5. The time now is 11:35 AM.

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