How p_cache works and how to change LXQt file associations
How p_cache works and how to change LXQt file associations
I'm trying to change some file associations on LXQt, beginning with /usr/share/applications/mimeinfo.cache. It works as long it's the last thing I did during a boot. But if it's embedded on 003 module, it seems that p_cache runs and overwrites it. Any idea?
- ncmprhnsbl
- DEV Team
- Posts: 3933
- Joined: 20 Mar 2012, 03:42
- Distribution: v5.0-64bit
- Location: australia
- Contact:
Re: How p_cache works and how to change LXQt file associatio
a good question....not sure i understand it
reasonably sure p_cache doesnt run if you dont ask it..
both p_cache and cache-module make a module of various system caches after updating them..
typically it(cache-module) is used when you make a 003-module at first bootup into textmode and the resulting module is merged into the 003-module..
reasonably sure p_cache doesnt run if you dont ask it..
both p_cache and cache-module make a module of various system caches after updating them..
Code: Select all
root@porteus:/home/guest# p_cache
updating system cache...
all cache files have been merged into 009-caches.xzm, which has been placed in /tmp folder
Code: Select all
root@porteus:/home/guest# cache-module
/usr/bin/gtk-query-immodules-2.0
warning: Schema 'org.gnome.crypto.cache' has path '/desktop/gnome/crypto/cache/'. Paths starting with '/apps/', '/desktop/' or '/system/' are deprecated.
warning: Schema 'org.gnome.crypto.pgp' has path '/desktop/gnome/crypto/pgp/'. Paths starting with '/apps/', '/desktop/' or '/system/' are deprecated.
warning: Schema 'org.gnome.system.locale' has path '/system/locale/'. Paths starting with '/apps/', '/desktop/' or '/system/' are deprecated.
warning: Schema 'org.gnome.system.proxy' has path '/system/proxy/'. Paths starting with '/apps/', '/desktop/' or '/system/' are deprecated.
warning: Schema 'org.gnome.system.proxy.http' has path '/system/proxy/http/'. Paths starting with '/apps/', '/desktop/' or '/system/' are deprecated.
warning: Schema 'org.gnome.system.proxy.https' has path '/system/proxy/https/'. Paths starting with '/apps/', '/desktop/' or '/system/' are deprecated.
warning: Schema 'org.gnome.system.proxy.ftp' has path '/system/proxy/ftp/'. Paths starting with '/apps/', '/desktop/' or '/system/' are deprecated.
warning: Schema 'org.gnome.system.proxy.socks' has path '/system/proxy/socks/'. Paths starting with '/apps/', '/desktop/' or '/system/' are deprecated.
/usr/bin/update-desktop-database
/usr/bin/gdk-pixbuf-query-loaders
/usr/bin/update-mime-database
Do you want to make a module from the caches? [y/n] y
mkdir: cannot create directory ‘/tmp/cachecreate’: File exists
Parallel mksquashfs: Using 8 processors
Creating 4.0 filesystem on /tmp/009-caches.xzm, block size 262144.
[=================================================|] 6/6 100%
Exportable Squashfs 4.0 filesystem, xz compressed, data block size 262144
compressed data, compressed metadata, compressed fragments, compressed xattrs
duplicates are removed
Filesystem size 37.97 Kbytes (0.04 Mbytes)
23.08% of uncompressed filesystem size (164.53 Kbytes)
Inode table size 262 bytes (0.26 Kbytes)
38.87% of uncompressed inode table size (674 bytes)
Directory table size 314 bytes (0.31 Kbytes)
62.30% of uncompressed directory table size (504 bytes)
Number of duplicate files found 0
Number of inodes 21
Number of files 6
Number of fragments 1
Number of symbolic links 0
Number of device nodes 0
Number of fifo nodes 0
Number of socket nodes 0
Number of directories 15
Number of ids (unique uids + gids) 1
Number of uids 1
root (0)
Number of gids 1
root (0)
40K /tmp/009-caches.xzm
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44
Re: How p_cache works and how to change LXQt file associatio
I think it runs during boot when Porteus detects xzm modules. You can see the message just before the GUI appears.ncmprhnsbl wrote:reasonably sure p_cache doesnt run if you dont ask it..
I'm having troubles creating file associations on LXQt. I find out that /usr/local/share/applications/defaults.list kind of works. But .m3u (Qmmp playlist file) and .torrent/magnet (new LXQt module will come with Transmission ) links don't work. Can you help me?
- ncmprhnsbl
- DEV Team
- Posts: 3933
- Joined: 20 Mar 2012, 03:42
- Distribution: v5.0-64bit
- Location: australia
- Contact:
Re: How p_cache works and how to change LXQt file associatio
i dont know...but i think thats something from initrd, before (aufs) porteus starts..wrongfulalas wrote:I think it runs during boot when Porteus detects xzm modules. You can see the message just before the GUI appears.
brokenman could put us straight on that...
mime is a bit of a mystery to me... but cache-module seems to handle it for me..
the key commands in this are:
Code: Select all
update-mime-database /usr/share/mime
Code: Select all
update-desktop-database
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44
- ncmprhnsbl
- DEV Team
- Posts: 3933
- Joined: 20 Mar 2012, 03:42
- Distribution: v5.0-64bit
- Location: australia
- Contact:
Re: How p_cache works and how to change LXQt file associatio
this actually /opt/porteus-scripts/xorg/update-cache script, read it to see what it does...fulalas wrote:I think it runs during boot when Porteus detects xzm modules. You can see the message just before the GUI appears.
but i dont think this is the problem..
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44
- brokenman
- Site Admin
- Posts: 6105
- Joined: 27 Dec 2010, 03:50
- Distribution: Porteus v4 all desktops
- Location: Brazil
Re: How p_cache works and how to change LXQt file associatio
If any modules are found in the modules folder during boot then the caches will be regenerated. Which file associations are you trying to change? Can you edit the desktop file to achieve this?
How do i become super user?
Wear your underpants on the outside and put on a cape.
Wear your underpants on the outside and put on a cape.
Re: How p_cache works and how to change LXQt file associatio
I'm trying to fix somethings:brokenman wrote:Which file associations are you trying to change? Can you edit the desktop file to achieve this?
1- .m3u files -> can't make them open with double click, although 'Open with...' context menu works;
2- magnet links -> on Opera it opens a new tab instead of Transmission;
3- 'open folder' option -> on a few programs it doesn't work properly (Transmission, for example), launching Qmmp instead of pcmanfm-qt;
The desktop files are just fine and everything is inside /usr/share/applications/mimeinfo.cache (with wrong priority, once this file is auto-generated). Me and ncmprhnsbl are trying a lot of things (discussion here), but no success so far. I also opened 3 threads on different LXQt forums/lists.