oops wrote: ↑Mon Jun 18, 2018 5:16 pm
fehlix wrote: ↑Mon Jun 18, 2018 2:01 pm
...
Rather hard-coding a special application for DUA, I wonder if we could utilize
the alternative mechanism already inplace in MX Linux....
... Yes, why not.
Well, in theory we could. Imagine we would define a new alternative e.g. like mx-disk-usage-analyzer as such:
Code: Select all
BIN=baobab; ABIN=mx-disk-usage-analyzer; PRIO=100 ; MAN=$BIN.1.gz; AMAN=$ABIN.1.gz ; BDIR=/usr/bin; MDIR=/usr/share/man/man1
sudo update-alternatives --install $BDIR/$ABIN $ABIN $BDIR/$BIN $PRIO --slave $MDIR/$AMAN $AMAN $MDIR/$MAN
update-alternatives: using /usr/bin/baobab to provide /usr/bin/mx-disk-usage-analyzer (mx-disk-usage-analyzer) in auto mode
We would check / verifiy like this:
Code: Select all
update-alternatives --query mx-disk-usage-analyzer
Name: mx-disk-usage-analyzer
Link: /usr/bin/mx-disk-usage-analyzer
Slaves:
mx-disk-usage-analyzer.1.gz /usr/share/man/man1/mx-disk-usage-analyzer.1.gz
Status: auto
Best: /usr/bin/baobab
Value: /usr/bin/baobab
Alternative: /usr/bin/baobab
Priority: 100
Slaves:
mx-disk-usage-analyzer.1.gz /usr/share/man/man1/baobab.1.gz
Or with the Alternative-GUI:
mxdua-alter.png
We could than run MXDUA from with MX-cleanup by calling mx-disk-usage-analyzer.
Which would look like this:
mxdua.png
By this we would just need to adjust the alternive priority with the alternative
system after having installed another disk-usage-analyzer,
without changing anything with MX-Cleanup-tool.
![puppy :puppy:](./images/smilies/puppy.gif)
You do not have the required permissions to view the files attached to this post.