|
|
Home » Developing U++ » U++ TheIDE and Library: Releases and ChangeLogs » Linux improvements
|
Re: Linux improvements [message #13248 is a reply to message #13244] |
Wed, 26 December 2007 00:03   |
mdelfede
Messages: 1308 Registered: September 2007
|
Ultimate Contributor |
|
|
luzr wrote on Tue, 25 December 2007 19:33 |
...........
* Configuration files ("ConfigFile") are put under .upp directory instead directly to root
|
Uhmmmm... I don't like too much that one.
I have upp (devel) in ~/sources/uppdev, so theide don't find config anymore.
In Linux is usual to keep config files on a per-user basis in its home dir as before.
IMHO, the best would be (as sometimes in windows) to keep configs on the dir where app resides (I know, now Linux purists will shoot me ), pity that on unix there's no reliable way (AFAIK) to find the path where app resides and, more, usually that path is owned by root, so not writeable.
At the end, the best way would be :
1) Keep theide executable in /usr/bin
2) Keep upp sources somewhere in /opt/upp
3) Keep MyApps (and user files...) somewhere inside user home dir
4) Config files should stay on user home dir.
On an user view, on first ide run cfg files, samples, maybe references AND MyApps folders should be copied somewhere in user home path, maybe asking user where.
There also should be the possibility to run thede with different config files, in order to keep the ability to run more versions of theide.
The *best* would be a common (user) cfg file containing more profiles. For example :
<default>
test
stable
devel
myprofile1
myprofile2
Each giving different configs. You could then run
with default profile; or
with 'myprofile1' configs.
There should also be some profile manager on theide itself.
It looks (maybe) complicated, but it's done for example in AutoCAD and it works quite well.
That could be done both on windows and Linux sides.
Ciao
Max
EDIT : Now I've seen how it works and it's not bad at all 
Cfg files are kept as before with executable names (ide, theide, ecc...), but without initial dot (.) and in ~/.upp, so
instead of
as before.
That's similar of what I meant, besides the lack of ability to give a profile when executable is run.
I'll put a little howto in next svn update.
Ciao
Max
[Updated on: Wed, 26 December 2007 00:34] Report message to a moderator
|
|
|
Re: Linux improvements [message #13252 is a reply to message #13248] |
Wed, 26 December 2007 11:16   |
 |
mirek
Messages: 14255 Registered: November 2005
|
Ultimate Member |
|
|
mdelfede wrote on Tue, 25 December 2007 18:03 |
luzr wrote on Tue, 25 December 2007 19:33 |
...........
* Configuration files ("ConfigFile") are put under .upp directory instead directly to root
|
Uhmmmm... I don't like too much that one.
I have upp (devel) in ~/sources/uppdev, so theide don't find config anymore.
In Linux is usual to keep config files on a per-user basis in its home dir as before.
|
Sorry for deficient description. But "root" and ".upp" I have of course meant "~" and "~/.upp".
Quote: |
IMHO, the best would be (as sometimes in windows) to keep configs on the dir where app resides (I know, now Linux purists will shoot me ), pity that on unix there's no reliable way (AFAIK) to find the path where app resides and, more, usually that path is owned by root, so not writeable.
|
Actually, GetExeDirFile already works in Linux. But just as you say, this is not a good idea, if nothing else because of read-only....
Quote: |
1) Keep theide executable in /usr/bin
2) Keep upp sources somewhere in /opt/upp
3) Keep MyApps (and user files...) somewhere inside user home dir
|
Actually, that change was meant about config files only, was not theide specific. It was dealing with general complaing about poluting ~ with many upp app config ".folders".
Mirek
P.S.: OK, next time I will read the whole message before replying
[Updated on: Wed, 26 December 2007 11:17] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
Re: Linux improvements [message #13273 is a reply to message #13272] |
Thu, 27 December 2007 21:01  |
gertwin
Messages: 25 Registered: May 2007 Location: Netherlands
|
Promising Member |
|
|
luzr wrote on Thu, 27 December 2007 18:14 | QtCurve fixed.
Quick fix:
CtrlLib/ChGtk.cpp 826
if(!popup) {
gtk_widget_style_get(bar, "shadow_type", &shadowtype, NULL);
GtkWidget *item = gtk_menu_item_new();
gtk_menu_shell_append(GTK_MENU_SHELL(bar), item);
gtk_widget_realize(item);
popup = gtk_menu_new();
gtk_menu_item_set_submenu(GTK_MENU_ITEM(item), popup);
gtk_widget_realize(popup);
GTK_MENU_SHELL(bar)->active = true;
}
(Some day I will make those doubled scrollbar arrows work too 
Mirek
|
Yes, this looks good, thank you.
About the scrollbars, i modified the default QtCurve settings in config_file.c so that the appearance is round as with Clearlooks.
If that some day comes when you are implementing the double arrows also take a look at the shape of the arrows (upp draws them now the same as firefox).
Gertwin
|
|
|
Goto Forum:
Current Time: Fri Apr 25 19:10:08 CEST 2025
Total time taken to generate the page: 0.01174 seconds
|
|
|