aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: geometry-Option for the GUI  (Read 6426 times)

eagle

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 18
geometry-Option for the GUI
« on: November 04, 2003, 11:06:15 AM »

Hi,

what IŽm really missing is one typical X11-Option: -geometry :-(
(at least it doesnŽt work for me...)

IŽm using aMule in my router Linux-Box, which is running 24/7.
It hasnŽt a monitor connected to it, so IŽm using VNC, which is working
relativly good, could be faster, but itŽs enough.

The problem is, that I canŽt start amule directly within VNC (1024x768)
so that it should use all the screen space with a single option like
-geometry 1024x768+0+0.
I have to start a separate windowmanager (for this case twm is enough),
but it wastes screenspace and memory.

So please implement this option, IŽm sure many others would find this
also useful :-)

eagle
Logged

Eru

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 33
Re: geometry-Option for the GUI
« Reply #1 on: November 05, 2003, 12:44:51 AM »

My Vote +1  :wink:

Hey eagle how do you start vnc AND aMule with one command?? That's what I would like to do too....

Gruss
Eru
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: geometry-Option for the GUI
« Reply #2 on: November 05, 2003, 09:25:57 AM »

Added to TODO list
Logged

eagle

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 18
Re: geometry-Option for the GUI
« Reply #3 on: November 06, 2003, 11:47:34 AM »

Hi  Eru,

Quote
Hey eagle how do you start vnc AND aMule with one command??
That's what I would like to do too....


I haven't started them with one command, first I startet Xvnc:
$ Xvnc -geometry 1024x768 -depth 8 -alwaysshared -dontdisconnect :1 &

After that I started the X11-Windowmanager "twm" which isn't very powerfull,
but uses as little memory as possible (VSZ: 3556 kB, RSS: 1084 kB) and
for using only aMule in this case is more than enough...
$ twm -display :1 &

Then I changed to the user "esel" (with su esel) and run the following:
$ export DISPLAY=:1; nohup amule &> /dev/null &

After that I changed back to my normal user-account (exit...)
So you can see, the Xvnc and twm is running all the time, I only restart
aMule from time to time (if it eats to much memory :-) )

Hope this helps you? :-)

So if there would be an -geometry-Option, I could omit the Windowmanager
and would have 1-3 MB more free memory...

eagle
Logged

eagle

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 18
patch for --geometry is ready :-)
« Reply #4 on: November 06, 2003, 06:11:00 PM »

Hi Developers & all others,

Quote
Original von Kry

Added to TODO list


I got a bit time and looked over the source of aMule, and
finally added this missing option myself :-)

I had to change 3 files: amule.cpp amule.h amuleDlg.cpp
The patch is 2 kB little, and now I'd like to know where to send it?

eagle
Logged

BigBob

  • aMule project creator.
  • Full Member
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 141
    • http://bigbob.fun.free.fr
Re: geometry-Option for the GUI
« Reply #5 on: November 08, 2003, 11:37:39 AM »

Hi,

Already done in the upcoming version ...

A++
Logged
Creator of aMule & aStats projects