Author Topic: Package builder utility  (Read 140978 times)

M0E-lnx

  • Administrator
  • Vectorian
  • *****
  • Posts: 3499
Re: Package builder utility
« Reply #135 on: June 14, 2007, 05:42:58 am »
@ blurymind try choosing other editors from the settings panel.
It's kinda hard to use the existing slack-desc editor to edit an existing slack-desc because of the structure of the file. You'd get overbuffer errors and that kind of thing. So I thought it'd just be enough to open the slack-desc in a normal text editor.


@ Joe1962. Good point.


blurymind

  • Packager
  • Vectorian
  • ****
  • Posts: 1082
Re: Package builder utility
« Reply #136 on: June 14, 2007, 08:16:46 am »
@ blurymind try choosing other editors from the settings panel.
It's kinda hard to use the existing slack-desc editor to edit an existing slack-desc because of the structure of the file. You'd get overbuffer errors and that kind of thing. So I thought it'd just be enough to open the slack-desc in a normal text editor.


@ Joe1962. Good point.


its set to mousepad, yet i still get the same error message.
status: playing around with new tablet and learning to 3d :p
google page :  http://blurymind.googlepages.com
DA PAGE :  http://www.blurymind.deviantart.com/

M0E-lnx

  • Administrator
  • Vectorian
  • *****
  • Posts: 3499
Re: Package builder utility
« Reply #137 on: June 14, 2007, 10:26:34 am »
I may be hard coded the wrong path to mouse pad then. I've got a working text editor for the next release any way. so that wont happen in the future.

blurymind

  • Packager
  • Vectorian
  • ****
  • Posts: 1082
Re: Package builder utility
« Reply #138 on: June 14, 2007, 11:47:02 am »
I may be hard coded the wrong path to mouse pad then. I've got a working text editor for the next release any way. so that wont happen in the future.
can you make the built in editor to be able to create new files or edit existing ones in the package? (slack-required,*.desktop)

I noticed that its kinda hard to create a desktop file,specially if you have no knowledge how to do it from scratch. I just copy from another desktop file and change some things,such as app name and command to execute it,and the name of the icon that will be at /usr/share/pixmaps..

status: playing around with new tablet and learning to 3d :p
google page :  http://blurymind.googlepages.com
DA PAGE :  http://www.blurymind.deviantart.com/

M0E-lnx

  • Administrator
  • Vectorian
  • *****
  • Posts: 3499
Re: Package builder utility
« Reply #139 on: June 14, 2007, 12:04:49 pm »
I am working on a built-in text editor as joe1962 suggested. As a matter of fact, it is now fully functinoal, It's just that I'm taking a little more time to add more functionality to it (ie, character count so the user doesn't end up with a bad slack-desc file).

This one will be specially for editing the existing slac-desc file, but you can also access the text editor from the menu, in case you want to write a .desktop file in it (no preformat exists as of yet) and just use the "Save as..." option to save the file.

Here is a sneak peek at it
« Last Edit: June 14, 2007, 12:12:39 pm by M0E-lnx »

Triarius Fidelis

  • Vecteloper
  • Vectorian
  • ****
  • Posts: 2399
  • Domine, exaudi vocem meam
    • my website
Re: Package builder utility
« Reply #140 on: June 14, 2007, 10:31:33 pm »
Well, M0E, I must say I'm completely overwhelmed by Gambas. Really.

So not sure what to do about the .desktop file creator for now... :(

I guess what's really confusing to me is how you would hook everything together. Should I make a standalone .desktop file creator in Gambas, and then you can figure out how to work the form in?

I'm really not even sure I would know how to do it.
"Leatherface, you BITCH! Ho Chi Minh, hah hah hah!"

Formerly known as "Epic Fail Guy" and "Döden" in recent months

Joe1962

  • Administrator
  • Vectorian
  • *****
  • Posts: 2504
    • Joe1962's Website
Re: Package builder utility
« Reply #141 on: June 15, 2007, 04:02:49 am »
I have serious plans to work on a .desktop file creator/editor, since I studied the specs extensively when starting vl-hot, but please feel free to start your own, since I'm pretty busy ATM.
O'Neill (RE the Asgard): "Usually they ask nicely before they ignore us and do what they damn well please."
http://joe1962.bigbox.info
Running: VL 7 Std 64 + self-cooked XFCE-4.10

M0E-lnx

  • Administrator
  • Vectorian
  • *****
  • Posts: 3499
Re: Package builder utility
« Reply #142 on: June 15, 2007, 05:32:40 am »
I would do it, but I dont have the knowledge about the desktop file itself or the time to learn it and code it here...

I guess we can wait for joe1962's

blurymind

  • Packager
  • Vectorian
  • ****
  • Posts: 1082
Re: Package builder utility
« Reply #143 on: June 15, 2007, 10:03:07 am »
xfce,kde and most other gui environments have a desktop (launcher) creator..only that it puts the desktop files on the desktop,instead in /usr/share/applications. I am sure that there is already something written....but probably never in gambas (i might be wrong)

This desktop creator thing is not something that one can't live without.I admit it would look very nicely on the package editor.

What it has to generally do is write a basic dekstop file...and the user would need to put only (browse for it) the pixmap file (or png) and enter the command or the path to the executable of the app, aand chose from a slide down list a cathegory of the start menu ,where the desktop file would appear. Thats how i generally picture it,altho i admit more advance features can be implemented.

This vpackager utility is very actively evolving and Moe is really pushing it into something thats usable and handy.I admire the dedication, and that this is the first gui utility not only for packaging under slackware,but also for checking , editing and  installation of tlz packages or even installation from source and making the configure>make>checkinstall procedure more accessable and easy and fast to do.  :)
I am now making the configuration window icon.Will pm it later.Sorry for the delay.

the text editor looks very nice.

« Last Edit: June 15, 2007, 10:06:24 am by blurymind »
status: playing around with new tablet and learning to 3d :p
google page :  http://blurymind.googlepages.com
DA PAGE :  http://www.blurymind.deviantart.com/

M0E-lnx

  • Administrator
  • Vectorian
  • *****
  • Posts: 3499
Re: Package builder utility
« Reply #144 on: June 15, 2007, 11:05:51 am »
The text editor is now complete... Anyone seen anything else that may need to be fixed before I put it back together?

blurymind

  • Packager
  • Vectorian
  • ****
  • Posts: 1082
Re: Package builder utility
« Reply #145 on: June 16, 2007, 04:32:58 am »
moe, please remove the root only access on the created by package temp dir!!!  When i announce the package at the forum i have to copy its slack-required and desc file...and to do that i have to open the dir as root and navigate to the files,which is a pain in the neck. We dont need to lock those dirs at all. :-X
status: playing around with new tablet and learning to 3d :p
google page :  http://blurymind.googlepages.com
DA PAGE :  http://www.blurymind.deviantart.com/

M0E-lnx

  • Administrator
  • Vectorian
  • *****
  • Posts: 3499
Re: Package builder utility
« Reply #146 on: June 17, 2007, 05:57:16 pm »
I only added that on because it was a request... if it's causing probs, I guess we could revert that

blurymind

  • Packager
  • Vectorian
  • ****
  • Posts: 1082
Re: Package builder utility
« Reply #147 on: June 18, 2007, 10:04:40 am »
i made a mockup for a *.desktop editor with gimp:



note: the menu editor will copy the chosen graphic icon file to the needed place in the package and rename it with the value chosen in "entry name" .

also the *.desktop file's name can take its filename from the $entryname.

Cathegories is not a must to be that way,but it will eliminate the risks of human mistakes.

Icon preview is not a must (and will probably make it harder for you) ,but its a nice feature,altho you dont have to include it in the first versions.

I could add more feature ideas such as "open pixmap file with Gimp/command/whats set it settings window(graphiceditor" button, but that would be asking too much (altho bringing innovation to such a tool)

Maybe you could use funny abbrievations to name some of the modules. (mine is terrible,lol)

>>offtopic question/suggestion: can you make vnotepad into a sepparate tlz package,and make it possible to open/associate files with it as user or root. It looks like a nice,lightweight text editor.  :P
If only it had a "undo" feature.
« Last Edit: June 18, 2007, 10:17:36 am by blurymind »
status: playing around with new tablet and learning to 3d :p
google page :  http://blurymind.googlepages.com
DA PAGE :  http://www.blurymind.deviantart.com/

M0E-lnx

  • Administrator
  • Vectorian
  • *****
  • Posts: 3499
Re: Package builder utility
« Reply #148 on: June 18, 2007, 10:53:01 am »
As much as I'd like to get that done in such a nice way, I do believe it'll be kind of hard to pull it off because of the complexity of the .desktop file.

What if there is an existing .desktop file?.. in that case I'd need to read such a file, and fill in the form with it's contents.
That is where it gets tricky, not only to read the file (in it's correct format) but because there are no set rules for the contents of this file.
It may have 10 language lines, 10 comment lines, and so on.

Considering all of these factors, I've added a simpler function to vpackager that allows you to edit the .desktop file in the text editor (vNotePad).

The text editor has common functions like copy/paste/cut/undo, etc but
i'm not sure I'd like to be linking any file types to this simple text editor (VL already has many good text editors).

Any text editor will do for this.

I'm almost done implementing the support to edit .desktop file. Once that's done, I'll upload a new release

lagagnon

  • Global Moderator
  • Vectorian
  • *****
  • Posts: 1922
Re: Package builder utility
« Reply #149 on: June 18, 2007, 12:19:25 pm »
Excellent idea about doing the editing oneself. I don't even think the best Perl programmer around (let alone Gambas) could deal with the complexities of those .desktop files, especially where one already exists and one does not really know the number of lines in it.

"As people become more intelligent they care less for preachers and more for teachers". Robert G. Ingersoll