DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 1 Week Ago
brudan brudan is offline
Fdisk Soldier
 
Join Date: Dec 2018
Posts: 50
Default pcmanfm-qt requires refresh to determine MIME type of new files

Is anybody out there running OpenBSD 6.4 with LXQt 0.13?

x11/lxqt/pcmanfm-qt does not immediately parse new files to determine their MIME type. I've not been able to fix this, despite investing several hours and also asking for help in the LXQt support forum (the folks there are very friendly and helpful but do not have a lot of experience with our favorite OS).

Easiest way to reproduce the problem is to download or create any file to one's desktop. For example:

1.
Code:
$ import -window root ~/Desktop/test.jpg
2. Right-click on the file’s icon on the Desktop, choose Properties. It says “MIME type: text/plain” (wrong).

3. Open up a file manager window, navigate to ~/Desktop, press F5 to refresh.

4. Back at the desktop: Right-click on the file’s icon, choose Properties. Now it is says “MIME type: image/jpeg” (correct).

Does anyone know how to make pcmanfm-qt immediately parse new files to determine their MIME type, on OpenBSD? I suspect I'm either missing a helper package, configuration setting, or environmental variable, but I just don't know enough about Qt or LXQt (or GUIs in general) to figure this out on my own.

Last edited by brudan; 1 Week Ago at 02:10 AM.
Reply With Quote
  #2   (View Single Post)  
Old 1 Week Ago
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,220
Default

It maybe an upstream bug.

At the bottom of this page
https://github.com/lxqt/lxqt/issues/35
there were issue with mimetypes Oct. 7, 2018. Some posters had improvment by adding /devel/xdg-utils.

The version of pcmanfm-qt (13.0) in ports was from September 2018
/x11/lxqt/pcmanfm-qt
It looks to have been fixed in pcmanfm-qt 14.0.
Reply With Quote
  #3   (View Single Post)  
Old 1 Week Ago
brudan brudan is offline
Fdisk Soldier
 
Join Date: Dec 2018
Posts: 50
Default

Thank you, shep. Interesting thread.

devel/xdg-utils and x11/gnome/gvfs were both already automatically installed on my system (presumably as dependencies). The other package mentioned in the thread, devel/p5-File-MimeInfo (known as libfile-mimeinfo-perl in some Linuxes), was not installed on my system, so I installed it. Alas, the problem persists.

Yes, there is a chance this may be an upstream bug since it sounds like pcmanfm-qt 0.13 had issues with MIME types. Hopefully once I upgrade to OBSD 6.5 and LXQt 0.14 the problem will go away. I'll report back.
Reply With Quote
  #4   (View Single Post)  
Old 1 Week Ago
jggimi's Avatar
jggimi jggimi is online now
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 6,523
Default

Quote:
Originally Posted by brudan View Post
Hopefully once I upgrade to OBSD 6.5 and LXQt 0.14 the problem will go away.
The port (and resulting package) for 6.5 will still be release 0.13.

It appears to me like the entire branch of ports for LXQT will need to be upgraded together.

Last edited by jggimi; 1 Week Ago at 01:26 PM. Reason: typo, and some clarity
Reply With Quote
  #5   (View Single Post)  
Old 1 Week Ago
brudan brudan is offline
Fdisk Soldier
 
Join Date: Dec 2018
Posts: 50
Default

So much for hoping for an easy fix
Reply With Quote
  #6   (View Single Post)  
Old 1 Week Ago
jggimi's Avatar
jggimi jggimi is online now
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 6,523
Default

You could always contact the port maintainer, who is named in the output of $ pkg_info pcmanfm-qt regarding any update plans. If Elias responds with "no plans at this time due to <reason>" you'll know why, and if the reason is "not enough available time right now" you could always make the attempt to update the port.
Reply With Quote
  #7   (View Single Post)  
Old 1 Week Ago
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,220
Default

Quote:
It appears to me like the entire branch of ports for LXQt will need to be upgraded together.
I have not looked LXQt closely but it's predecessor, LXDE was fairly modular and x11/pcmanfm is available in a ports tree that lacks LXDE.

This would suggest several other options.

1) In LXDE, default applications can be set by running lxsession-default-apps in a terminal. x11/lxqt/session likely has the same functionality. You can also manually edit ~/.local/share/applications/mimeapps.list
http://xahlee.info/linux/linux_set_default_app.html

2) The pcmanfm-qt port looks fairly simple (just 2 patches) and you may be able to upgrade the port to 14.1 individually.

3) Unless you are invested in Qt5, I put together an LXDE clone in the howto section of the forum. It should still work as is although the menu hack, using xdotools, can be replaced with jgmenu in 6.5. (note: The x11/jgmenu entry is missing in openports.se).
https://www.youtube.com/watch?v=XDmNO_83EnM

4) I've found that the gtk3 version of pcmanfm will remember what the file was opened with. I usually don't like a default of looking at a *.jpg in gimp. If this is the case with pcmanfm-qt, you could easily set your default mimetype.

5) You can mix toolkits and install the gtk version of pcmanfm. By default, the LXQt desktop uses gtk based x11/openbox. I tried LXQt in Arch Linux, and was able to use kwin in place of openbox. The Qt5 version of kwin does not pull as many dependencies as the Qt4 version. There is an ongoing effort to upgrade KDE4 to Plasma - the build infrastructure is in ports now.

Last edited by shep; 1 Week Ago at 08:27 PM.
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Security Efail: Vulnerabilities in email clients allow decryption of OpenPGP and S/MIME e1-531g News 2 5th June 2018 05:32 PM
PCmanfm dumping core report? mefisto OpenBSD General 3 10th October 2017 10:46 AM
OpenBSD 4.4 and refresh rate 75 mfaridi OpenBSD Installation and Upgrading 8 12th November 2008 12:05 PM
improve proxy cache and replace gif MIME milo974 OpenBSD General 1 10th July 2008 12:14 PM
How to use pcmanfm? aleunix OpenBSD Packages and Ports 6 9th June 2008 01:42 PM


All times are GMT. The time now is 12:01 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick