You are not logged in.

#41 2016-03-26 01:45:18

Horizon_Brave
Operating System: Linux-Nettrix
Registered: 2015-10-18
Posts: 1,473

Re: Disable Thunar's unusable "Set as wallpaper" context menu item.

@ JohnRaff:

As for question 2:

gamera@bunsenlab2:~$ sudo dpkg-divert --divert /dev/null /usr/share/doc/libwinpr-crypto0.1/README 
Adding 'local diversion of /usr/share/doc/libwinpr-crypto0.1/README to /dev/null'
gamera@bunsenlab2:~$


gamera@bunsenlab2:~$ dpkg-divert --list | grep cryptolocal diversion of /usr/share/doc/libwinpr-crypto0.1/README to /dev/null
gamera@bunsenlab2:~$ 

Hmm it seems to legally work!

So.. I then uninstalled the libwinpr-crypto0.1 package, made sure the /usr/share/doc/libwinpr-crypto0.1  dir. didn't exist, made sure that the diversion still existed then reinstalled:

gamera@bunsenlab2:/usr/share/doc/libwinpr-crypto0.1$ dpkg-divert --list | grep crypto
local diversion of /usr/share/doc/libwinpr-crypto0.1/README to /dev/null


gamera@bunsenlab2:/usr/share/doc/libwinpr-crypto0.1$ ls
changelog.Debian.gz  changelog.gz  copyright
gamera@bunsenlab2:/usr/share/doc/libwinpr-crypto0.1$

Notice above that the file README isn't located in the .../libwinpr-crypto0.1/ dir. Sent to /dev/null.


Proof in the proverbial pudding:

gamera@bunsenlab2:/usr/share/doc/libwinpr-crypto0.1$ dpkg -L libwinpr-crypto0.1
/.
/usr
/usr/lib
/usr/lib/x86_64-linux-gnu
/usr/lib/x86_64-linux-gnu/libwinpr-crypto.so.0.1.0
/usr/share
/usr/share/doc
/usr/share/doc/libwinpr-crypto0.1
/usr/share/doc/libwinpr-crypto0.1/changelog.gz
/usr/share/doc/libwinpr-crypto0.1/changelog.Debian.gz
/usr/share/doc/libwinpr-crypto0.1/README
locally diverted to: /dev/null
/usr/share/doc/libwinpr-crypto0.1/copyright
/usr/lib/x86_64-linux-gnu/libwinpr-crypto.so.0.1

gamera@bunsenlab2:/usr/share/doc/libwinpr-crypto0.1$ 

Note the diversion to /dev/null

So honestly, I"m not sure where, or what this proves... but it could be helpful?

Last edited by Horizon_Brave (2016-03-26 04:00:14)


"I have not failed, I have found 10,000 ways that will not work" -Edison

Offline

#42 2016-03-26 20:57:07

Horizon_Brave
Operating System: Linux-Nettrix
Registered: 2015-10-18
Posts: 1,473

Re: Disable Thunar's unusable "Set as wallpaper" context menu item.

Also...I have serious issues with the syntax and writing of the dpkg-divert command. From the man pages:

--package package
    package is the name of a package whose copy of file will not be diverted. i.e. file will be diverted for all packages except package.

Is this even true? From the way JohnRaff used the --package option it seems to work by using the specified package as the script to provide the diversion commands. (instead of setting it locally on your system)

For example:

dpkg-divert --divert /usr/bin/example.txt.foo  --package Horizon_Brave_script      --rename  /usr/bin/example.txt

If I have it right... this would imply that the file example.foo is the new diverted location and anthing that was to be sent to example.txt will be sent to example.txt.foo AND that the script issuing this dpkg-divert command was the Horizon_Brave_script.

Literally, the script Horizon_Brave_script, is the 'control script' that has the dpkg-divert command.  So man page's description about this seems..off. Way off.


The same goes for the rename command, I haven't yet figured out what it's actually doing here... Anyway I don't mean to hi-jack this thread, so I may or mods feel free to move this to it's own thread. I may make a separate dpkg-divert thread later on when I have some things straight. ..


"I have not failed, I have found 10,000 ways that will not work" -Edison

Offline

#43 2016-03-31 09:08:43

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,616
Website

Re: Disable Thunar's unusable "Set as wallpaper" context menu item.

@HB it's OK actually. Nothing's "way off", although it's true that man pages aren't always easy to understand.

I'm afraid you'll just have to read it a few more times, while playing with the commands.


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

#44 2016-04-11 08:50:04

KrunchTime
Member
Registered: 2015-09-29
Posts: 857

Re: Disable Thunar's unusable "Set as wallpaper" context menu item.

Meh...

sudo aptitude purge thunar

works for me.  I have never liked thunar.

Offline

Board footer

Powered by FluxBB