Tiny Core Base > TCB Tips & Tricks

mnttool - position in the right up corner for different resolutions

(1/2) > >>

netnomad:
hi friends, hi roberts,

i use my tc-environment with different xvesa-resolutions.
mnttool should be alwayson on the right side, not just at position 1024.

in the moment mnttool is in my left corner...
i'm a heavy user of the mnttool so it's often under new opened windows...
the usability would be far higher, if i can put it to the right side.

is there a way like
export MNTTOOL="-0 54"?
http://forum.tinycorelinux.net/index.php/topic,11244.msg58927.html

so f.e. -0 means right side

this way seems to be for this subject to overcomplicated, perhaps there is a better way...
http://forum.tinycorelinux.net/index.php/topic,11880.0.html
...in the moment i didn't succeed yet...

curaga:
Adding -g support to it would be a 1-line patch, adding


--- Quote ---Fl::args(argc, argv);
--- End quote ---

To the start of main.

netnomad:
that would  be just a great job!
at what place should this patch be implemented?
do you think you could implement that, or should i ask  roberts to do us this favour?

you say that it's not such a big effort and in the meantime it improves significantly the usability.

how is the recommended way to that patch?

curaga:
Let's wait and hear what Robert thinks.

Rich:
Hi netnomad
I believe curaga may have been suggesting that you try this yourself, possibly because the subject
of window placement does not come up that often and currently you are the only one looking for
a change in the behavior of  mnttool.
Install the  compiletc  package
Download the source files for  mnttool
http://distro.ibiblio.org/tinycorelinux/4.x/x86/release/src/fltk_projects/mnttool/
Change this:

--- Code: ---int main(int argc, char **argv) {
  setlocale(LC_ALL, "");

--- End code ---
To this:

--- Code: ---int main(int argc, char **argv) {
  Fl::args(argc, argv);
  setlocale(LC_ALL, "");

--- End code ---
I don't see a make file or compile script, so you probably want to compile using something like:

--- Code: ---gcc -march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti -c mnttool.cxx -o mnttool
strip mnttool
--- End code ---
If my compiler syntax is incorrect hopefully curaga or someone else will correct me.
Then copy the file to  /usr/local/bin


Navigation

[0] Message Index

[#] Next page

Go to full version