julia
julia copied to clipboard
icons (.desktop files)
replace .svg and add .shar file to contrib
i.e. copy julia-dots.svg to contrib/julia.svg
contrib/README.md
|[ julia.svg ](https://github.com/JuliaLang/julia/blob/master/contrib/julia.svg) | Julia svg image file |
|[ kde.shar ](https://github.com/JuliaLang/julia/blob/master/contrib/kde.shar) | KDE desktop (user) config file |
GNOME
tested on System X11 Default, GNOME, GNOME classic, and GNOME on Xorg
julia-logo-graphics julia-dots.svg
no screenshot provided
# whoami
root
# cp julia-dots.svg /usr/share/icons/hicolor/scalable/apps/julia.svg
# gtk-update-icon-cache -f /usr/share/icons/hicolor
gtk-update-icon-cache: Cache file created successfully.
#
the above writes to /usr/share/icons/hicolor/icon-theme.cache
KDE
tested on X11 (not tested using Wayland)
$ ls
README julia.desktop julia.xpm
$ cat README
This is for KDE.
These files may be unpacked by executing them with /bin/sh.
Replace username in julia.desktop with the value for $USER.
$ cat julia.desktop
[Desktop Entry]
Name=Julia
Comment=High-performance language for technical computing
Exec=julia
Icon=/home/username/.local/share/pixmaps/julia.xpm
Terminal=true
Type=Application
Categories=Development;
$ cat julia.xpm
/* XPM */
static char * julia_xpm[] = {
"48 48 28 1",
" c None",
". c #389826",
"+ c #389727",
"@ c #399826",
"# c #399827",
"$ c #389925",
"% c #379825",
"& c #379927",
"* c #379925",
"= c #389726",
"- c #389827",
"; c #389825",
"> c #CB3C32",
", c #CA3C33",
"' c #CB3C33",
") c #9658B2",
"! c #9558B2",
"~ c #9558B3",
"{ c #9459B2",
"] c #CC3C33",
"^ c #9558B1",
"/ c #CB3D33",
"( c #CB3B34",
"_ c #CC3D33",
": c #9657B2",
"< c #9458B2",
"[ c #CB3C34",
"} c #9559B2",
" ",
" ",
" ",
" ",
" ",
" ",
" .......+ ",
" @........... ",
" .............# ",
" $..............% ",
" ................ ",
" &................* ",
" .................= ",
" .................. ",
" .................. ",
" .................. ",
" .................. ",
" .................. ",
" ................ ",
" ................ ",
" -............. ",
" ...........- ",
" .........= ",
" -;-.;. ",
" >,'''' )!!!~{ ",
" ]''''''''' !!!!!!!!!^ ",
" ''''''''''''/ ~!!!!!!!!!!!! ",
" ''''''''''''''( {!!!!!!!!!!!!!) ",
" _''''''''''''''' !!!!!!!!!!!!!!!: ",
" ''''''''''''''''( <!!!!!!!!!!!!!!!! ",
" ''''''''''''''''' !!!!!!!!!!!!!!!!! ",
" ,''''''''''''''''' !!!!!!!!!!!!!!!!!! ",
" ''''''''''''''''''[ !!!!!!!!!!!!!!!!!{ ",
" /''''''''''''''''', }!!!!!!!!!!!!!!!!!< ",
" '''''''''''''''''' !!!!!!!!!!!!!!!!!! ",
" ]''''''''''''''''' !!!!!!!!!!!!!!!!!< ",
" ''''''''''''''''' !!!!!!!!!!!!!!!!! ",
" '''''''''''''''' !!!!!!!!!!!!!!!! ",
" ''''''''''''''] }!!!!!!!!!!!!!! ",
" ''''''''''''' !!!!!!!!!!!!! ",
" ''''''''''' {!!!!!!!!!! ",
" '''''''' <!!!!!!{ ",
" ",
" ",
" ",
" ",
" ",
" "};
$ shar -s [email protected] -T * > kde.shar
shar: Saving README (text)
shar: Saving julia.desktop (text)
shar: Saving julia.xpm (text)
$
it's not needed, but the README could be appended
$ tree --noreport ~/.local/share/{applications,pixmaps}
/home/username/.local/share/applications
`-- julia.desktop
/home/username/.local/share/pixmaps
`-- julia.xpm
$
or, if a copy of contrib/julia.appdata.xml
is included in the .shar file
$ tree --noreport ~/.local/share/{appdata,applications,metainfo,pixmaps}
/home/username/.local/share/appdata
`-- julia.appdata.xml
/home/username/.local/share/applications
`-- julia.desktop
/home/username/.local/share/metainfo
`-- julia.appdata.xml
/home/username/.local/share/pixmaps
`-- julia.xpm
$
incidentally
$ grep -nr julia\-gnome julia/contrib
julia/contrib/julia.appdata.xml:31: <image>https://julialang.org/images/julia-gnome.png</image>
$
bad url above
https://github.com/JuliaLang/julia/tree/master/contrib#installation
it might be indicated to add
For GNOME desktop run this commands.
if [ -e /usr/share/icons/hicolor/icon-theme.cache ]; then
if [ -x /usr/bin/gtk-update-icon-cache ]; then
/usr/bin/gtk-update-icon-cache /usr/share/icons/hicolor >/dev/null 2>&1
fi
fi
For KDE desktop copy kde.shar to a new location and run sh kde.shar
.
to use a different terminal, e.g. uxterm, modify the .desktop file
Exec=uxterm -e julia
Terminal=false
KDE's default is konsole
to use a different image file format, e.g. jl.png
locate jl.png in ~/.local/share/icons, or a subdirectory thereof, and modify the .desktop file
Icon=jl
for some reason KDE 5.23.5 requires the file extension and full path to ~/.local/share/pixmaps/*.xmp files
here's the kde.shar file with contrib/julia.appdata.xml included
if kde.shar is added to contrib, and the component files are modified, e.g. contrib/julia.appdata.xml updated
please use shar -s [email protected] -T * > kde.shar
to recreate the file
the source directory name doesn't matter
#!/bin/sh
# This is a shell archive (produced by GNU sharutils 4.15.2).
# To extract the files from this archive, save it to some FILE, remove
# everything before the '#!/bin/sh' line above, then type 'sh FILE'.
#
lock_dir=_sh09858
# Made on 2022-09-10 16:51 CDT by <[email protected]>.
# Source directory was '/tmp/MIT'.
#
# Existing files will *not* be overwritten, unless '-c' is specified.
#
# This shar contains:
# length mode name
# ------ ---------- ------------------------------------------
# 139 -rw-r--r-- README
# 1410 -rw-r--r-- julia.appdata.xml
# 202 -rw-r--r-- julia.desktop
# 2968 -rw-r--r-- julia.xpm
#
MD5SUM=${MD5SUM-md5sum}
f=`${MD5SUM} --version | egrep '^md5sum .*(core|text)utils'`
test -n "${f}" && md5check=true || md5check=false
${md5check} || \
echo 'Note: not verifying md5sums. Consider installing GNU coreutils.'
if test "X$1" = "X-c"
then keep_file=''
else keep_file=true
fi
echo=echo
save_IFS="${IFS}"
IFS="${IFS}:"
gettext_dir=
locale_dir=
set_echo=false
for dir in $PATH
do
if test -f $dir/gettext \
&& ($dir/gettext --version >/dev/null 2>&1)
then
case `$dir/gettext --version 2>&1 | sed 1q` in
*GNU*) gettext_dir=$dir
set_echo=true
break ;;
esac
fi
done
if ${set_echo}
then
set_echo=false
for dir in $PATH
do
if test -f $dir/shar \
&& ($dir/shar --print-text-domain-dir >/dev/null 2>&1)
then
locale_dir=`$dir/shar --print-text-domain-dir`
set_echo=true
break
fi
done
if ${set_echo}
then
TEXTDOMAINDIR=$locale_dir
export TEXTDOMAINDIR
TEXTDOMAIN=sharutils
export TEXTDOMAIN
echo="$gettext_dir/gettext -s"
fi
fi
IFS="$save_IFS"
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null
then if (echo -n test; echo 1,2,3) | grep n >/dev/null
then shar_n= shar_c='
'
else shar_n=-n shar_c= ; fi
else shar_n= shar_c='\c' ; fi
f=shar-touch.$$
st1=200112312359.59
st2=123123592001.59
st2tr=123123592001.5 # old SysV 14-char limit
st3=1231235901
if touch -am -t ${st1} ${f} >/dev/null 2>&1 && \
test ! -f ${st1} && test -f ${f}; then
shar_touch='touch -am -t $1$2$3$4$5$6.$7 "$8"'
elif touch -am ${st2} ${f} >/dev/null 2>&1 && \
test ! -f ${st2} && test ! -f ${st2tr} && test -f ${f}; then
shar_touch='touch -am $3$4$5$6$1$2.$7 "$8"'
elif touch -am ${st3} ${f} >/dev/null 2>&1 && \
test ! -f ${st3} && test -f ${f}; then
shar_touch='touch -am $3$4$5$6$2 "$8"'
else
shar_touch=:
echo
${echo} 'WARNING: not restoring timestamps. Consider getting and
installing GNU '\''touch'\'', distributed in GNU coreutils...'
echo
fi
rm -f ${st1} ${st2} ${st2tr} ${st3} ${f}
#
if test ! -d ${lock_dir} ; then :
else ${echo} "lock directory ${lock_dir} exists"
exit 1
fi
if mkdir ${lock_dir}
then ${echo} "x - created lock directory ${lock_dir}."
else ${echo} "x - failed to create lock directory ${lock_dir}."
exit 1
fi
# ============= README ==============
if test -n "${keep_file}" && test -f 'README'
then
${echo} "x - SKIPPING README (file already exists)"
else
${echo} "x - extracting README (text)"
sed 's/^X//' << 'SHAR_EOF' > 'README' &&
This is for KDE.
X
These files may be unpacked by executing them with /bin/sh.
X
Replace username in julia.desktop with the value for $USER.
SHAR_EOF
(set 20 22 09 09 09 40 04 'README'
eval "${shar_touch}") && \
chmod 0644 'README'
if test $? -ne 0
then ${echo} "restore of README failed"
fi
if ${md5check}
then (
${MD5SUM} -c >/dev/null 2>&1 || ${echo} 'README': 'MD5 check failed'
) << \SHAR_EOF
4b6626b599783f05b685fd6535f43e7d README
SHAR_EOF
else
test `LC_ALL=C wc -c < 'README'` -ne 139 && \
${echo} "restoration warning: size of 'README' is not 139"
fi
fi
# ============= julia.appdata.xml ==============
if test -n "${keep_file}" && test -f 'julia.appdata.xml'
then
${echo} "x - SKIPPING julia.appdata.xml (file already exists)"
else
${echo} "x - extracting julia.appdata.xml (text)"
sed 's/^X//' << 'SHAR_EOF' > 'julia.appdata.xml' &&
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright 2014 Paul Lange <[email protected]> -->
<component>
X <id>org.julialang.julia</id>
X <name>Julia</name>
X <launchable type="desktop-id">julia.desktop</launchable>
X <metadata_license>CC-BY-SA-3.0</metadata_license>
X <project_license>MIT and LGPL-2.1+ and GPL-2.0+</project_license>
X <summary>High-performance programming language for technical computing</summary>
X <provides>
X <binary>julia</binary>
X </provides>
X <description>
X <p>
X Julia is a high-level, high-performance dynamic programming language for
X technical computing, with syntax that is familiar to users of other
X technical computing environments. It provides a sophisticated compiler,
X distributed parallel execution, numerical accuracy, and an extensive
X mathematical function library.
X </p>
X <p>
X The library, largely written in Julia itself,
X also integrates mature, best-of-breed C and Fortran libraries for linear
X algebra, random number generation, signal processing, and string processing.
X In addition, the Julia developer community is contributing a number of
X external packages through Julia’s built-in package manager at a rapid pace.
X </p>
X </description>
X <screenshots>
X <screenshot type="default">
X <image>https://julialang.org/images/julia-gnome.png</image>
X </screenshot>
X </screenshots>
X <url type="homepage">https://julialang.org/</url>
</component>
SHAR_EOF
(set 20 22 09 09 22 04 14 'julia.appdata.xml'
eval "${shar_touch}") && \
chmod 0644 'julia.appdata.xml'
if test $? -ne 0
then ${echo} "restore of julia.appdata.xml failed"
fi
if ${md5check}
then (
${MD5SUM} -c >/dev/null 2>&1 || ${echo} 'julia.appdata.xml': 'MD5 check failed'
) << \SHAR_EOF
1628cba0ebba115fdedf2a0173523914 julia.appdata.xml
SHAR_EOF
else
test `LC_ALL=C wc -c < 'julia.appdata.xml'` -ne 1410 && \
${echo} "restoration warning: size of 'julia.appdata.xml' is not 1410"
fi
fi
# ============= julia.desktop ==============
if test -n "${keep_file}" && test -f 'julia.desktop'
then
${echo} "x - SKIPPING julia.desktop (file already exists)"
else
${echo} "x - extracting julia.desktop (text)"
sed 's/^X//' << 'SHAR_EOF' > 'julia.desktop' &&
[Desktop Entry]
Name=Julia
Comment=High-performance language for technical computing
Exec=julia
Icon=/home/username/.local/share/pixmaps/julia.xpm
Terminal=true
Type=Application
Categories=Development;
SHAR_EOF
(set 20 22 09 09 22 32 17 'julia.desktop'
eval "${shar_touch}") && \
chmod 0644 'julia.desktop'
if test $? -ne 0
then ${echo} "restore of julia.desktop failed"
fi
if ${md5check}
then (
${MD5SUM} -c >/dev/null 2>&1 || ${echo} 'julia.desktop': 'MD5 check failed'
) << \SHAR_EOF
2b126feca97ad8a9104f8c1d3897be21 julia.desktop
SHAR_EOF
else
test `LC_ALL=C wc -c < 'julia.desktop'` -ne 202 && \
${echo} "restoration warning: size of 'julia.desktop' is not 202"
fi
fi
# ============= julia.xpm ==============
if test -n "${keep_file}" && test -f 'julia.xpm'
then
${echo} "x - SKIPPING julia.xpm (file already exists)"
else
${echo} "x - extracting julia.xpm (text)"
sed 's/^X//' << 'SHAR_EOF' > 'julia.xpm' &&
/* XPM */
static char * julia_xpm[] = {
"48 48 28 1",
" c None",
". c #389826",
"+ c #389727",
"@ c #399826",
"# c #399827",
"$ c #389925",
"% c #379825",
"& c #379927",
"* c #379925",
"= c #389726",
"- c #389827",
"; c #389825",
"> c #CB3C32",
", c #CA3C33",
"' c #CB3C33",
") c #9658B2",
"! c #9558B2",
"~ c #9558B3",
"{ c #9459B2",
"] c #CC3C33",
"^ c #9558B1",
"/ c #CB3D33",
"( c #CB3B34",
"_ c #CC3D33",
": c #9657B2",
"< c #9458B2",
"[ c #CB3C34",
"} c #9559B2",
" ",
" ",
" ",
" ",
" ",
" ",
" .......+ ",
" @........... ",
" .............# ",
" $..............% ",
" ................ ",
" &................* ",
" .................= ",
" .................. ",
" .................. ",
" .................. ",
" .................. ",
" .................. ",
" ................ ",
" ................ ",
" -............. ",
" ...........- ",
" .........= ",
" -;-.;. ",
" >,'''' )!!!~{ ",
" ]''''''''' !!!!!!!!!^ ",
" ''''''''''''/ ~!!!!!!!!!!!! ",
" ''''''''''''''( {!!!!!!!!!!!!!) ",
" _''''''''''''''' !!!!!!!!!!!!!!!: ",
" ''''''''''''''''( <!!!!!!!!!!!!!!!! ",
" ''''''''''''''''' !!!!!!!!!!!!!!!!! ",
" ,''''''''''''''''' !!!!!!!!!!!!!!!!!! ",
" ''''''''''''''''''[ !!!!!!!!!!!!!!!!!{ ",
" /''''''''''''''''', }!!!!!!!!!!!!!!!!!< ",
" '''''''''''''''''' !!!!!!!!!!!!!!!!!! ",
" ]''''''''''''''''' !!!!!!!!!!!!!!!!!< ",
" ''''''''''''''''' !!!!!!!!!!!!!!!!! ",
" '''''''''''''''' !!!!!!!!!!!!!!!! ",
" ''''''''''''''] }!!!!!!!!!!!!!! ",
" ''''''''''''' !!!!!!!!!!!!! ",
" ''''''''''' {!!!!!!!!!! ",
" '''''''' <!!!!!!{ ",
" ",
" ",
" ",
" ",
" ",
" "};
SHAR_EOF
(set 20 22 09 08 00 32 00 'julia.xpm'
eval "${shar_touch}") && \
chmod 0644 'julia.xpm'
if test $? -ne 0
then ${echo} "restore of julia.xpm failed"
fi
if ${md5check}
then (
${MD5SUM} -c >/dev/null 2>&1 || ${echo} 'julia.xpm': 'MD5 check failed'
) << \SHAR_EOF
b54239472e3aadbf21a206565cc100dd julia.xpm
SHAR_EOF
else
test `LC_ALL=C wc -c < 'julia.xpm'` -ne 2968 && \
${echo} "restoration warning: size of 'julia.xpm' is not 2968"
fi
fi
if rm -fr ${lock_dir}
then ${echo} "x - removed lock directory ${lock_dir}."
else ${echo} "x - failed to remove lock directory ${lock_dir}."
exit 1
fi
exit 0
@ViralBShah
Incidentally, .mailmap being a top level repository file is likely indexed by search engines.
Regarding privacy concerns, I've read that the file can be instead under .github which would colocate it with CODEOWNERS.
But isn't the git history also visible to search engines, which contains all those email addresses? This information is all already public.
If we move to .github
, will git
know what to do? I suppose you should be able to pass a mailmap file on the command line.
opening https://github.com/JuliaLang/julia/commit/a8275e544abbccf39faece64d89f80e4fa8f068c, adding ".patch", and reloading the page will render an email address
likewise a repository cloned and cd'ed into and running git log
will render email addresses
the rendered email addresses may be reflective of the content of a user's ~/.gitconfig file, or it may appear in the form as below
{user_name}@users.noreply.github.com
it's not my understanding that search engines index /{repository}/commit/{commit_designation}.patch
pages
If we move to .github, will git know what to do?
that is not obvious from the man pages
man gitmailmap
DESCRIPTION
If the file .mailmap exists at the toplevel of the repository, or at the location pointed to by the mailmap.file or mailmap.blob configuration options (see git-config[1]), it is used to map author and committer names and email addresses to canonical real names and email addresses.
man git-config
mailmap.file
The location of an augmenting mailmap file. The default mailmap, located in the root of the repository, is loaded first, then the mailmap file pointed to by this variable. The location of the mailmap file may be in a repository subdirectory, or somewhere outside of the repository itself. See git-shortlog(1) and git-blame(1).
On GNOME's Activities menu rendered 48x48 *.xpm files appear "grainy".
Of the KDE .desktop file the user could substitute a higher resolution .png located in ~/.local/share/icons or a subdirectory thereof.
@ViralBShah
If we move to
.github
, willgit
know what to do?
Sorry for my earlier response, I really don't know the answer to that.
- enquire of the GitHub company
- locate another GH Organization which relocated a repository top level .mailmap file without incident
- have JuliaLang Members create a test repository with a top level .mailmap file and see if relocating goes without incident
The file .git/index of course will contain the location of the .mailmap file.
It goes without saying that in a repository clone running git ls-files > output
will dump the contents of .git/index to a text file.
contrib/windows/icon-readme.md
The julia.ico file was created from multiple .png files.
$ cd /tmp
$ file julia/contrib/windows/julia.ico
julia/contrib/windows/julia.ico: MS Windows icon resource - 9 icons, 256x256 with PNG image data, 256 x 256, 8-bit/color RGBA, non-interlaced, 32 bits/pixel, -128x-128, 32 bits/pixel
$ convert julia/contrib/windows/julia.ico julia.png
$ file julia-4.png
julia-4.png: PNG image data, 40 x 40, 8-bit colormap, non-interlaced
$
The above julia.png was created from the 40x40 content pasted into a 48x48 new image; for KDE's Application Launcher I preferred the different scale.
julia.png (1.7K) julia.xpm (2.9K)
An alternative to adding the proposed .shar file would be to add the above .png to contrib and comment the .desktop file with instructions on user customisation of .desktop files.
# This is a comment line in a .desktop file.
Save the previous comment's .png as julia.png and add it to contrib along with replacing the .svg file.
i.e. copy julia-dots.svg to contrib/julia.svg
contrib/README.md
|[ julia.png ](https://github.com/JuliaLang/julia/blob/master/contrib/julia.png) | Julia png image file |
|[ julia.svg ](https://github.com/JuliaLang/julia/blob/master/contrib/julia.svg) | Julia svg image file |
Modify the julia.desktop file as follows; Comment=
and Categories=
values were too verbose.
# To use uxterm, change to these values.
#
# Exec=uxterm -e julia
# Terminal=false
#
# To use a .png icon specify the full path and file extension.
#
# Icon=/usr/share/icons/hicolor/48x48/apps/julia.png
#
[Desktop Entry]
Name=Julia
Comment=High-performance language for technical computing
Exec=julia
Icon=julia
Terminal=true
Type=Application
Categories=Development;
@JeffBezanson
Does the last comment look OK for a PR?
I've modified the last comment's .desktop file comment.
Possibly the gtk-update-icon-cache -f /usr/share/icons/hicolor
command could be added to contrib/README.md.
contrib/README.md
- |[ julia.desktop ](https://github.com/JuliaLang/julia/blob/master/contrib/julia.desktop) | GNOME desktop config file |
+ |[ julia.desktop ](https://github.com/JuliaLang/julia/blob/master/contrib/julia.desktop) | Desktop Entry file |
+ |[ julia.png ](https://github.com/JuliaLang/julia/blob/master/contrib/julia.png) | Julia png image file |
+ |[ julia.svg ](https://github.com/JuliaLang/julia/blob/master/contrib/julia.svg) | Julia svg image file |
|[ relative_path.py ](https://github.com/JuliaLang/julia/blob/master/contrib/relative_path.py) | Convert absolute paths into relative paths |
|[ stringreplace.c ](https://github.com/JuliaLang/julia/blob/master/contrib/stringreplace.c) | Replace strings to hardcoded paths in binaries during `make install` |
+
+ Packagers may want to run this command via a script after package installation.
+
+ ```
+ if [ -e /usr/share/icons/hicolor/icon-theme.cache ]; then
+ if [ -x /usr/bin/gtk-update-icon-cache ]; then
+ /usr/bin/gtk-update-icon-cache -f /usr/share/icons/hicolor >/dev/null 2>&1
+ fi
+ fi
+ ```
Debugging
Moving .mailmap
to .github/.mailmap
running git log
with the option --use-mailmap
appears to work.
Yes that's fine. We can move it.
AFAIK, modifications to the .mailmap file in this repository are performed manually.
A GitHub Inc. employee responded to a (5 Aug 2022) question on the possibility that certain top level repository files be excluded from indexing by search engines with this statement.
Given that such a change would affect many open-source communities, I recommend to submit your feedback through our official community forums: https://github.com/orgs/community/discussions
https://github.com/orgs/community/discussions?discussions_q=mailmap
Some feedback appears on the official community forums.
https://github.com/orgs/community/discussions/22518
https://github.com/orgs/community/discussions/6754
https://github.com/orgs/community/discussions/22144
Moving
.mailmap
to.github/.mailmap
running git log with the option--use-mailmap
appears to work.
Perhaps I should add a qualifier here.
At least git log
with the option --use-mailmap
doesn't complain that it can't find .github/.mailmap.
New discussion: https://github.com/community/community/discussions/34833
this is low priority
Anyways, would the Julia developers be amenable to the following?
- replace the .svg file
- add a smaller scaled 48x48 .png suitable for KDE's Application Launcher (e.g. for 1366x768 Laptop Screens)
- aside from updating contrib/README.md based on the foregoing, add content regarding gtk-update-icon-cache
- comment the .desktop file, regarding the use of alternate terminals (than system defaults) and the use of a .png icon
.mailmap file relocation
Nothing definitive has resulted from enquiries to git
developers on a potential loss of functionality resultant of file relocation.
I'm dropping my suggestion of relocating .mailmap
to .github/.mailmap
.
It's nigh impossible to obtain anything but speculation from git
developers on the implications of relocation.
this is low priority
Anyways, would the Julia developers be amenable to the following?
- replace the .svg file
- add a smaller scaled 48x48 .png suitable for KDE's Application Launcher (e.g. for 1366x768 Laptop Screens)
- aside from updating contrib/README.md based on the foregoing, add content regarding gtk-update-icon-cache
- comment the .desktop file, regarding the use of alternate terminals (than system defaults) and the use of a .png icon
This sounds reasonable. Will replacing the current svg file break anything else on other platforms? Can you update this PR?
Will replacing the current svg file break anything else on other platforms?
as far as breakage, I wouldn't envisage problems on macOS or Windows
regarding Linux distros I can only speak on regarding GNOME and KDE
release-1.4 (branch) in contrib contains a julia.svg
currently there does not appear to be a julia.svg file in master (branch)
my suspicion is Windows uses a 3 dot .ico file for a Quick Launch entry
Can you update this PR?
If replacing should the .svg be the one from earlier branches or a 3 dot .svg? [Debian screenshot w/dots looks unobtrusive]
Admittedly this ticket has evolved since it was first opened.
It's likely in November that I would have time to submit a pull request.
@ViralBShah
https://github.com/JuliaLang/julia/pull/47390 (Draft PR)
Julia devs can add a commit to the Draft PR; also change the initial commit message and/or squash.
I suggest adding to contrib the following (source julia-dots.svg).
$ cat julia.svg
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="325pt" height="300pt" viewBox="0 0 325 300" version="1.1">
<g id="surface91">
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(79.6%,23.5%,20%);fill-opacity:1;" d="M 150.898438 225 C 150.898438 266.421875 117.320312 300 75.898438 300 C 34.476562 300 0.898438 266.421875 0.898438 225 C 0.898438 183.578125 34.476562 150 75.898438 150 C 117.320312 150 150.898438 183.578125 150.898438 225 "/>
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(22%,59.6%,14.9%);fill-opacity:1;" d="M 237.5 75 C 237.5 116.421875 203.921875 150 162.5 150 C 121.078125 150 87.5 116.421875 87.5 75 C 87.5 33.578125 121.078125 0 162.5 0 C 203.921875 0 237.5 33.578125 237.5 75 "/>
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(58.4%,34.5%,69.8%);fill-opacity:1;" d="M 324.101562 225 C 324.101562 266.421875 290.523438 300 249.101562 300 C 207.679688 300 174.101562 266.421875 174.101562 225 C 174.101562 183.578125 207.679688 150 249.101562 150 C 290.523438 150 324.101562 183.578125 324.101562 225 "/>
</g>
</svg>
$
then further modifying contrib/README.md
|[ julia.desktop ](https://github.com/JuliaLang/julia/blob/master/contrib/julia.desktop) | Desktop Entry file |
|[ julia.png ](https://github.com/JuliaLang/julia/blob/master/contrib/julia.png) | Julia png image file |
+ |[ julia.svg ](https://github.com/JuliaLang/julia/blob/master/contrib/julia.svg) | Julia svg image file |
|[ relative_path.py ](https://github.com/JuliaLang/julia/blob/master/contrib/relative_path.py) | Convert absolute paths into relative paths |
Please add the svg file you are proposing as well to that PR.
devs can change the initial commit message and/or squash.
.svg file added and README.md updated accordingly
this is left for someone else to assess as to whether it is worthwhile to fix
bad url
$ sed -n 29,33p julia/contrib/julia.appdata.xml
<screenshots>
<screenshot type="default">
<image>https://julialang.org/images/julia-gnome.png</image>
</screenshot>
</screenshots>
$
The screenshot julia-gnome.png was located and the url fixed in julia.appdata.xml.
repo www.julialang.org
That image file is however Version 0.3.1 and might be replaced with a same named more recent screenshot.
More specifically the image's startup message is not current.
updated Nov 1 2022
There's the Issue #1772
over on JuliaLang/www.julialang.org
which includes a newer gnome-terminal screenshot.
PR converted from draft.
buildkite/julia-master — Build #17849 is failing
For reference on the code block added to contrib/README.md.
EPEL Packaging Icon Cache
Other package formats, the above refers to .rpm, may have a different approach.