Refracta Development, Scripts, etc.
Post a reply
thwak

- thwak
- Posts: 174
- Joined: Tue Nov 20, 2012 3:58 am

## Re: Refracta Installer on Debian Distro - Makululinux

Tue Dec 03, 2013 12:12 am

Here's a reference which corroborates the path info raymerjacque posted:

> http://ignorantguru.github.io/spacefm/spacefm-manual-en.html#designmode-mime
> "When an application is installed, it will usually install one or more .desktop files for itself to /usr/share/applications or /usr/local/share/applications. These .desktop files determine the display name of the application (which may differ from the executable's name), translated display names, the command used to execute the application, an icon for the application, what MIME file types the application can open, and other specifics.
> If you would like to change anything in an application's .desktop file, the correct way to do so is to copy the desktop file to ~/.local/share/applications in your home folder, and make changes in the copy. (Changes made directly in /usr/share/applications may be lost when the software is upgraded.) You can also add your own custom .desktop files to run programs or scripts. When MIME looks for a desktop file, first it looks in ~/.local/share/applications, then in /usr/local/share/applications, and then in /usr/share/applications, using the first copy it finds."

to customize menu items for all users on the system, a local admin (or a distro maintainer) would path
the customized .desktop files to /usr/local/share/applications
raymerjacque

- raymerjacque
- Posts: 111
- Joined: Sun Nov 03, 2013 9:37 am

## Re: Refracta Installer on Debian Distro - Makululinux

Tue Dec 03, 2013 10:21 am

yip, i added it to my build, just mentioned it because i thought you may wanna add it your side for future kde users that might want to use the installer.
By the way, i see that the installer gives option to put grub onto MBR, is it possible to put grub on home partition ? alot of the debian installers gives the user option to choose to either put grub onto mbr or home partition, i was just wondering if this is possible with refractainstaller ?
fsmithred

- fsmithred
- Posts: 2101
- Joined: Wed Mar 09, 2011 9:13 pm

## Re: Refracta Installer on Debian Distro - Makululinux

Tue Dec 03, 2013 10:59 am

Yes, the installer will let you put grub in a partition instead of in the mbr. In fact, it will let you put grub in any partition, whether it makes sense or not.
Edit: Only the gui installer scripts have that feature. The cli script lets you put grub in the mbr or not install it at all.
raymerjacque

- raymerjacque
- Posts: 111
- Joined: Sun Nov 03, 2013 9:37 am

## Re: Refracta Installer on Debian Distro - Makululinux

Tue Dec 03, 2013 6:18 pm

i use "sudo refractainstaller-gui" via terminal...
fsmithred

- fsmithred
- Posts: 2101
- Joined: Wed Mar 09, 2011 9:13 pm

## Re: Refracta Installer on Debian Distro - Makululinux

Wed Dec 04, 2013 1:16 am

Oops. I thought I added grub to partition to the zenity script, but it looks like I didn't. If you have yad installed, you could use refractainstaller-yad. I will add it, but not right away. I'm still working on the usb script.
raymerjacque

- raymerjacque
- Posts: 111
- Joined: Sun Nov 03, 2013 9:37 am

## Re: Refracta Installer on Debian Distro - Makululinux

Thu Dec 05, 2013 8:19 am

Yad works well, thnx
i am now just struggling to remove the damn desktop icon, i have set the paths in post install script, but desktop icon is still there for some reason after install. I dont like KDE very much
fsmithred

- fsmithred
- Posts: 2101
- Joined: Wed Mar 09, 2011 9:13 pm

## Re: Refracta Installer on Debian Distro - Makululinux

Thu Dec 05, 2013 4:52 pm

You could add this to the end of refractainstaller-yad, before cleanup is called, and you can then look around the installed system before it's unmounted.

Code:
  `yad --question --text="If you need to make changes to the installed system manually, you can\n do it before closing this window. Make your changes to the filesystem \nmounted at /target."`

And you can add this to the beginning of /usr/lib/refractainstaller/post-install/cleanup-install.sh (before the for loop that removes the desktop file) to see if the commands are working.

Code:
  `set -x
  exec 2>/var/log/post-install.log`

And run this command in your home directory to find any other copies that kde might have hidden.

Code:
  `find . -name refractainstaller.desktop`

While we're on the subject of the installer, I added two more options to the expert window - run pre-install scripts and run post install scripts. Right now, the way it's set up, both of those are enabled in the config file, so they will run without user choice if the simple install is running, and in the expert install, their boxes will be checked, and you can un-check them if you want. If you disable them in the config file, they won't run in simple install, and the boxes will be unchecked when the expert options window opens. Check the boxes, and they'll run. If anyone thinks it should be different, please speak up.
raymerjacque

- raymerjacque
- Posts: 111
- Joined: Sun Nov 03, 2013 9:37 am

## Re: Refracta Installer on Debian Distro - Makululinux

Thu Dec 05, 2013 9:44 pm

i managed to get the icon removed by adding the remove command directly into the bin scripts, seems in KDE post install script is not running as intended.
fsmithred

- fsmithred
- Posts: 2101
- Joined: Wed Mar 09, 2011 9:13 pm

## Re: Refracta Installer on Debian Distro - Makululinux

Fri Dec 06, 2013 9:19 pm

beta6 installer done - http://distro.ibiblio.org/refracta/files/Testing/

Code:
  `refractainstaller-base (9.0.9beta6) unstable; urgency=low
  * Pre-install and post-install scripts are switched on in config file
  * and can be switched off in expert options menu. Errors are sent
  * to installer's error log.
  * Added test for live session with warning if not running live.
  * CLI installer supports installing grub to partition.
  refractainstaller-gui (9.0.9beta6) unstable; urgency=low
  * Zenity version now allows grub in partition.
  * Pre-install and post-install scripts are switched on in config file
  * and can be switched off in expert options menu.
  * Added test for live session with warning if not running live.
  `

fsmithred

- fsmithred
- Posts: 2101
- Joined: Wed Mar 09, 2011 9:13 pm

## Re: Refracta Installer on Debian Distro - Makululinux

Tue Dec 10, 2013 2:07 pm

@raymerjacque: I saw the post on your forum from the guy who had trouble installing with a separate /home partition. Please ask him if he could post the error log. Even better would be if he could run the installer again with the -d option (for debugging information) and then post the log. It would help me to diagnose and fix the problem. I'd like to know what went wrong - that's really odd behavior. Thanks.
Post a reply
Jump to:

Powered by phpBB © phpBB Group.

phpBB Mobile / SEO by Artodia.