Page 43 of 46

Re: MX-23 beta 1 feedback thread

Posted: Sun Jun 11, 2023 5:40 pm
by Melber
back to idesk...In case we can't get svg icons working.

I added an svg check to the geticon function in mx-idesktool.
If the selected icon is an svg a png copy is placed in ~/.icons/idesk and gets used by idesk.

Code: Select all

geticon()
{
if [ "$comefrom" = "modif" ]; then
        iconplaceholder="${currenticon}"
else
        iconplaceholder="${icondir}"
fi
#echo "current icon is " "${iconplaceholder}"

cd "${iconplaceholder%/*}"

icon="$($DIALOG --title="Commands" \
                --width=600 --height=500 --center \
                --button="$TEXT7":3 --button="$TEXT8":1 \
                --button="$TEXT9":0 --title "$TEXT23" \
                --text="$TEXT19": \
                --file-selection="${iconplaceholder}" \
                --file-filter="png, svg | *.png *.PNG *.svg *.xpm" \
                --filename="${iconplaceholder}")"

retval=$?

icon="$(echo "${icon}"  | cut -d '|' -f 2)"

if [[ $icon == *.svg ]]; then

    if [ ! -d  ~/.icons/idesk ]; then
        mkdir ~/.icons/idesk
    fi

    icon_pngname="$(basename "${icon}" | sed -e "s/\.svg/\.png/")"
    icon_pngname=~/.icons/idesk/$icon_pngname

    rsvg-convert -w 48 -h 48 $icon -o $icon_pngname

    icon=$icon_pngname

fi

case ${retval} in
        0) iconvalidate
           ;;
        3) if [ "${comefrom}" = "modif" ]; then
                modifycommands
           else
                newcommands
           fi
           ;;
        *) argynope
           ;;
esac
}
Creating new icons and editing existing icons works okay for me.
quickshot_230611_233522.png

Script attached if someone wants to test. (the geticon function starts at line 495 if you're looking for it)
You'll need to install librsvg2-bin first, it's not installed by default.
idesktest.tar.gz

Re: MX-23 beta 1 feedback thread

Posted: Sun Jun 11, 2023 5:49 pm
by Jerry3904
Excellent, nice to have an exit strategy. Thanks for the suggestion @i_ri.

Btw, Stevo says he did all that stuff so this is the way we're headed now. Will test tonight.

Re: MX-23 beta 1 feedback thread

Posted: Sun Jun 11, 2023 9:24 pm
by Jerry3904
Script did not work for me. First I had to change l. 551 to get rid of an error:

Code: Select all

mkdir -p ~/.icons/idesk
Then I ran it again, identified the icon, program said it was reloading and then no icon on the desktop--in spite of the fact that the folders were created and the icon in png format was placed inside. Tried that twice, same result. Too late to track down the error tonight.

Re: MX-23 beta 1 feedback thread

Posted: Sun Jun 11, 2023 10:01 pm
by dolphin_oracle
Jerry3904 wrote: Sun Jun 11, 2023 9:24 pm Script did not work for me. First I had to change l. 551 to get rid of an error:

Code: Select all

mkdir -p ~/.icons/idesk
Then I ran it again, identified the icon, program said it was reloading and then no icon on the desktop--in spite of the fact that the folders were created and the icon in png format was placed inside. Tried that twice, same result. Too late to track down the error tonight.
@Melber
except for adding the -p to the mkdir command, seems to be OK. will play around and try to break it.

I find the icons are being created one overtop of the other. so making a new icon sometimes comes under an existing one. seems like new icons all show up a 400 x 500. that's probably an existing bug that's never been noticed before. you can see the overlap in the attached screenshot and a second shot that shows them seperated. "fred2" was created under "fred"


might also be nice if the size was from the icon or icon's folder rather than always 48.

Re: MX-23 beta 1 feedback thread LAMP Install Issues with SOLUTION

Posted: Mon Jun 12, 2023 2:15 am
by asher
Hi I have been checking out MX 23 Beta on a Virtual Machine GREAT JOB!!!!

When installing a LAMP server.
When doing a search it came up with this page:
https://mxlinux.org/wiki/networking/lamp-setup/

however the New Apache set up is much different than the last one.
So I created an up today way of setting up Apache and MariaDB(mostly the same, some changes)

I am not sure how to use gufw(Firewall Configuration) that well. So my instructions are cli with ufw.

I created the file in a .odt LibreOffice Writer. If you want it in another format just let me know.

Can we have a collaboration for this help file?

https://htmlpreview.github.io/?https:// ... nMX23.html

To download the original .odt file go to:

https://github.com/Asher-Simcha/updatePage

The old page is at: https://mxlinux.org/wiki/networking/lamp-setup/

Re: MX-23 beta 1 feedback thread

Posted: Mon Jun 12, 2023 2:18 am
by asher
Installed XFCE BETA 23
Installing kate AND clicking on Also Install “Recommended” Packages.
When installing kate the terminal emulator does not WORK.
In the package could you please also include the terminal emulator. The package is konsole, in general this is the default terminal for KDE I believe but I installed XFCE and then kate.

PS The reason that I bring this up is that it took me weeks as a noob just to get the terminal to work with kate.

Re: MX-23 beta 1 feedback thread

Posted: Mon Jun 12, 2023 2:35 am
by i_ri
hello dolphin_oracle
mx-idesktool substitute
Stores a png in home and uses the png for idesk icon.
accepts svg, xpm, png.
uses <libimlib2-dev>
i forgot to consider it not default..

Re: MX-23 beta 1 feedback thread LAMP Install Issues with SOLUTION

Posted: Mon Jun 12, 2023 6:20 am
by Jerry3904
asher wrote: Mon Jun 12, 2023 2:15 am Hi I have been checking out MX 23 Beta on a Virtual Machine GREAT JOB!!!!

When installing a LAMP server.
When doing a search it came up with this page:
https://mxlinux.org/wiki/networking/lamp-setup/

however the New Apache set up is much different than the last one.
So I created an up today way of setting up Apache and MariaDB(mostly the same, some changes)

I am not sure how to use gufw(Firewall Configuration) that well. So my instructions are cli with ufw.

I created the file in a .odt LibreOffice Writer. If you want it in another format just let me know.

Can we have a collaboration for this help file?

https://htmlpreview.github.io/?https:// ... nMX23.html

To download the original .odt file go to:

https://github.com/Asher-Simcha/updatePage

The old page is at: https://mxlinux.org/wiki/networking/lamp-setup/
That is really helpful, thanks! We will definitely be making use of that draft to revise the Wiki page in the near future.

Re: MX-23 beta 1 feedback thread

Posted: Mon Jun 12, 2023 7:54 am
by Jerry3904
i_ri wrote: Mon Jun 12, 2023 2:35 am hello dolphin_oracle
mx-idesktool substitute
Stores a png in home and uses the png for idesk icon.
accepts svg, xpm, png.
uses <libimlib2-dev>
i forgot to consider it not default..
How does this relate to @Melber's posted script above that we're currently testing?

Re: MX-23 beta 1 feedback thread

Posted: Mon Jun 12, 2023 7:56 am
by Jerry3904
Jerry3904 wrote: Sun Jun 11, 2023 9:24 pm Script did not work for me. First I had to change l. 551 to get rid of an error:

Code: Select all

mkdir -p ~/.icons/idesk
Then I ran it again, identified the icon, program said it was reloading and then no icon on the desktop--in spite of the fact that the folders were created and the icon in png format was placed inside. Tried that twice, same result. Too late to track down the error tonight.
Now by the light of day and switching user accounts--works fine! I'm going to upload that for packaging tomorrow for the b2 build.