This commit is contained in:
Valeria Fadeeva 2025-01-23 16:26:46 +05:00
commit b48ee1939e
15 changed files with 2162 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/target

510
Cargo.lock generated Normal file
View File

@ -0,0 +1,510 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
version = 4
[[package]]
name = "android-tzdata"
version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e999941b234f3131b00bc13c22d06e8c5ff726d1b6318ac7eb276997bbb4fef0"
[[package]]
name = "android_system_properties"
version = "0.1.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "819e7219dbd41043ac279b19830f2efc897156490d7fd6ea916720117ee66311"
dependencies = [
"libc",
]
[[package]]
name = "autocfg"
version = "1.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26"
[[package]]
name = "bitflags"
version = "2.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8f68f53c83ab957f72c32642f3868eec03eb974d1fb82e453128456482613d36"
[[package]]
name = "bumpalo"
version = "3.16.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "79296716171880943b8470b5f8d03aa55eb2e645a4874bdbb28adb49162e012c"
[[package]]
name = "cc"
version = "1.2.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "13208fcbb66eaeffe09b99fffbe1af420f00a7b35aa99ad683dfc1aa76145229"
dependencies = [
"shlex",
]
[[package]]
name = "cfg-if"
version = "1.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
[[package]]
name = "chrono"
version = "0.4.39"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7e36cc9d416881d2e24f9a963be5fb1cd90966419ac844274161d10488b3e825"
dependencies = [
"android-tzdata",
"iana-time-zone",
"js-sys",
"num-traits",
"wasm-bindgen",
"windows-targets",
]
[[package]]
name = "cmake"
version = "0.1.52"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c682c223677e0e5b6b7f63a64b9351844c3f1b1678a68b7ee617e30fb082620e"
dependencies = [
"cc",
]
[[package]]
name = "cmk"
version = "0.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8fd5de2a10e31b3ec3e8d75e7ccf8281ab3ee55de68f7ab6ffa9e21be8d82f22"
[[package]]
name = "core-foundation-sys"
version = "0.8.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b"
[[package]]
name = "crossbeam-channel"
version = "0.5.14"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "06ba6d68e24814cb8de6bb986db8222d3a027d15872cabc0d18817bc3c0e4471"
dependencies = [
"crossbeam-utils",
]
[[package]]
name = "crossbeam-utils"
version = "0.8.21"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d0a5c400df2834b80a4c3327b3aad3a4c4cd4de0629063962b03235697506a28"
[[package]]
name = "fltk"
version = "1.5.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c56f0f52b2113c3e23adca6c870ee9d16b5222536b8c23a9baf64968bcc7cc5e"
dependencies = [
"bitflags",
"crossbeam-channel",
"fltk-sys",
"once_cell",
"paste",
"ttf-parser",
]
[[package]]
name = "fltk-sys"
version = "1.5.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3ad90222381cd9820aef9b59f7991e3377c2a53f26b67008f2bb313bf3c6783e"
dependencies = [
"cmake",
"cmk",
]
[[package]]
name = "fltk-theme"
version = "0.7.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3c1b4bd2f9f38151de8779456724b80e0128d97f694bf26cf71ac42068e9ea2e"
dependencies = [
"fltk",
]
[[package]]
name = "futures"
version = "0.3.31"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "65bc07b1a8bc7c85c5f2e110c476c7389b4554ba72af57d8445ea63a576b0876"
dependencies = [
"futures-channel",
"futures-core",
"futures-executor",
"futures-io",
"futures-sink",
"futures-task",
"futures-util",
]
[[package]]
name = "futures-channel"
version = "0.3.31"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2dff15bf788c671c1934e366d07e30c1814a8ef514e1af724a602e8a2fbe1b10"
dependencies = [
"futures-core",
"futures-sink",
]
[[package]]
name = "futures-core"
version = "0.3.31"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "05f29059c0c2090612e8d742178b0580d2dc940c837851ad723096f87af6663e"
[[package]]
name = "futures-executor"
version = "0.3.31"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1e28d1d997f585e54aebc3f97d39e72338912123a67330d723fdbb564d646c9f"
dependencies = [
"futures-core",
"futures-task",
"futures-util",
]
[[package]]
name = "futures-io"
version = "0.3.31"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9e5c1b78ca4aae1ac06c48a526a655760685149f0d465d21f37abfe57ce075c6"
[[package]]
name = "futures-macro"
version = "0.3.31"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "162ee34ebcb7c64a8abebc059ce0fee27c2262618d7b60ed8faf72fef13c3650"
dependencies = [
"proc-macro2",
"quote",
"syn",
]
[[package]]
name = "futures-sink"
version = "0.3.31"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e575fab7d1e0dcb8d0c7bcf9a63ee213816ab51902e6d244a95819acacf1d4f7"
[[package]]
name = "futures-task"
version = "0.3.31"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f90f7dce0722e95104fcb095585910c0977252f286e354b5e3bd38902cd99988"
[[package]]
name = "futures-util"
version = "0.3.31"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9fa08315bb612088cc391249efdc3bc77536f16c91f6cf495e6fbe85b20a4a81"
dependencies = [
"futures-channel",
"futures-core",
"futures-io",
"futures-macro",
"futures-sink",
"futures-task",
"memchr",
"pin-project-lite",
"pin-utils",
"slab",
]
[[package]]
name = "iana-time-zone"
version = "0.1.61"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "235e081f3925a06703c2d0117ea8b91f042756fd6e7a6e5d901e8ca1a996b220"
dependencies = [
"android_system_properties",
"core-foundation-sys",
"iana-time-zone-haiku",
"js-sys",
"wasm-bindgen",
"windows-core",
]
[[package]]
name = "iana-time-zone-haiku"
version = "0.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f31827a206f56af32e590ba56d5d2d085f558508192593743f16b2306495269f"
dependencies = [
"cc",
]
[[package]]
name = "js-sys"
version = "0.3.77"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1cfaf33c695fc6e08064efbc1f72ec937429614f25eef83af942d0e227c3a28f"
dependencies = [
"once_cell",
"wasm-bindgen",
]
[[package]]
name = "libc"
version = "0.2.169"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b5aba8db14291edd000dfcc4d620c7ebfb122c613afb886ca8803fa4e128a20a"
[[package]]
name = "log"
version = "0.4.25"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "04cbf5b083de1c7e0222a7a51dbfdba1cbe1c6ab0b15e29fff3f6c077fd9cd9f"
[[package]]
name = "melawy-linux-welcome"
version = "0.1.0"
dependencies = [
"chrono",
"fltk",
"fltk-theme",
"futures",
]
[[package]]
name = "memchr"
version = "2.7.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3"
[[package]]
name = "num-traits"
version = "0.2.19"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841"
dependencies = [
"autocfg",
]
[[package]]
name = "once_cell"
version = "1.20.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1261fe7e33c73b354eab43b1273a57c8f967d0391e80353e51f764ac02cf6775"
[[package]]
name = "paste"
version = "1.0.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a"
[[package]]
name = "pin-project-lite"
version = "0.2.16"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3b3cff922bd51709b605d9ead9aa71031d81447142d828eb4a6eba76fe619f9b"
[[package]]
name = "pin-utils"
version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184"
[[package]]
name = "proc-macro2"
version = "1.0.93"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "60946a68e5f9d28b0dc1c21bb8a97ee7d018a8b322fa57838ba31cc878e22d99"
dependencies = [
"unicode-ident",
]
[[package]]
name = "quote"
version = "1.0.38"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0e4dccaaaf89514f546c693ddc140f729f958c247918a13380cccc6078391acc"
dependencies = [
"proc-macro2",
]
[[package]]
name = "rustversion"
version = "1.0.19"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f7c45b9784283f1b2e7fb61b42047c2fd678ef0960d4f6f1eba131594cc369d4"
[[package]]
name = "shlex"
version = "1.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
[[package]]
name = "slab"
version = "0.4.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8f92a496fb766b417c996b9c5e57daf2f7ad3b0bebe1ccfca4856390e3d3bb67"
dependencies = [
"autocfg",
]
[[package]]
name = "syn"
version = "2.0.96"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d5d0adab1ae378d7f53bdebc67a39f1f151407ef230f0ce2883572f5d8985c80"
dependencies = [
"proc-macro2",
"quote",
"unicode-ident",
]
[[package]]
name = "ttf-parser"
version = "0.25.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d2df906b07856748fa3f6e0ad0cbaa047052d4a7dd609e231c4f72cee8c36f31"
[[package]]
name = "unicode-ident"
version = "1.0.14"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "adb9e6ca4f869e1180728b7950e35922a7fc6397f7b641499e8f3ef06e50dc83"
[[package]]
name = "wasm-bindgen"
version = "0.2.100"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1edc8929d7499fc4e8f0be2262a241556cfc54a0bea223790e71446f2aab1ef5"
dependencies = [
"cfg-if",
"once_cell",
"rustversion",
"wasm-bindgen-macro",
]
[[package]]
name = "wasm-bindgen-backend"
version = "0.2.100"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2f0a0651a5c2bc21487bde11ee802ccaf4c51935d0d3d42a6101f98161700bc6"
dependencies = [
"bumpalo",
"log",
"proc-macro2",
"quote",
"syn",
"wasm-bindgen-shared",
]
[[package]]
name = "wasm-bindgen-macro"
version = "0.2.100"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7fe63fc6d09ed3792bd0897b314f53de8e16568c2b3f7982f468c0bf9bd0b407"
dependencies = [
"quote",
"wasm-bindgen-macro-support",
]
[[package]]
name = "wasm-bindgen-macro-support"
version = "0.2.100"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8ae87ea40c9f689fc23f209965b6fb8a99ad69aeeb0231408be24920604395de"
dependencies = [
"proc-macro2",
"quote",
"syn",
"wasm-bindgen-backend",
"wasm-bindgen-shared",
]
[[package]]
name = "wasm-bindgen-shared"
version = "0.2.100"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1a05d73b933a847d6cccdda8f838a22ff101ad9bf93e33684f39c1f5f0eece3d"
dependencies = [
"unicode-ident",
]
[[package]]
name = "windows-core"
version = "0.52.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "33ab640c8d7e35bf8ba19b884ba838ceb4fba93a4e8c65a9059d08afcfc683d9"
dependencies = [
"windows-targets",
]
[[package]]
name = "windows-targets"
version = "0.52.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973"
dependencies = [
"windows_aarch64_gnullvm",
"windows_aarch64_msvc",
"windows_i686_gnu",
"windows_i686_gnullvm",
"windows_i686_msvc",
"windows_x86_64_gnu",
"windows_x86_64_gnullvm",
"windows_x86_64_msvc",
]
[[package]]
name = "windows_aarch64_gnullvm"
version = "0.52.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3"
[[package]]
name = "windows_aarch64_msvc"
version = "0.52.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469"
[[package]]
name = "windows_i686_gnu"
version = "0.52.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b"
[[package]]
name = "windows_i686_gnullvm"
version = "0.52.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66"
[[package]]
name = "windows_i686_msvc"
version = "0.52.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66"
[[package]]
name = "windows_x86_64_gnu"
version = "0.52.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78"
[[package]]
name = "windows_x86_64_gnullvm"
version = "0.52.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d"
[[package]]
name = "windows_x86_64_msvc"
version = "0.52.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"

13
Cargo.toml Normal file
View File

@ -0,0 +1,13 @@
[package]
authors = ["Valeria Fadeeva <valeria@fadeeva.me>"]
name = "melawy-linux-welcome"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
futures = "^0.3"
fltk = { version = "^1.5", features = ["fltk-bundled"] }
fltk-theme = "^0.7"
chrono = "^0.4"

661
LICENSE Normal file
View File

@ -0,0 +1,661 @@
GNU AFFERO GENERAL PUBLIC LICENSE
Version 3, 19 November 2007
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU Affero General Public License is a free, copyleft license for
software and other kinds of works, specifically designed to ensure
cooperation with the community in the case of network server software.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
our General Public Licenses are intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
Developers that use our General Public Licenses protect your rights
with two steps: (1) assert copyright on the software, and (2) offer
you this License which gives you legal permission to copy, distribute
and/or modify the software.
A secondary benefit of defending all users' freedom is that
improvements made in alternate versions of the program, if they
receive widespread use, become available for other developers to
incorporate. Many developers of free software are heartened and
encouraged by the resulting cooperation. However, in the case of
software used on network servers, this result may fail to come about.
The GNU General Public License permits making a modified version and
letting the public access it on a server without ever releasing its
source code to the public.
The GNU Affero General Public License is designed specifically to
ensure that, in such cases, the modified source code becomes available
to the community. It requires the operator of a network server to
provide the source code of the modified version running there to the
users of that server. Therefore, public use of a modified version, on
a publicly accessible server, gives the public access to the source
code of the modified version.
An older license, called the Affero General Public License and
published by Affero, was designed to accomplish similar goals. This is
a different license, not a version of the Affero GPL, but Affero has
released a new version of the Affero GPL which permits relicensing under
this license.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU Affero General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Remote Network Interaction; Use with the GNU General Public License.
Notwithstanding any other provision of this License, if you modify the
Program, your modified version must prominently offer all users
interacting with it remotely through a computer network (if your version
supports such interaction) an opportunity to receive the Corresponding
Source of your version by providing access to the Corresponding Source
from a network server at no charge, through some standard or customary
means of facilitating copying of software. This Corresponding Source
shall include the Corresponding Source for any work covered by version 3
of the GNU General Public License that is incorporated pursuant to the
following paragraph.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the work with which it is combined will remain governed by version
3 of the GNU General Public License.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU Affero General Public License from time to time. Such new versions
will be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU Affero General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU Affero General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU Affero General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If your software can interact with users remotely through a computer
network, you should also make sure that it provides a way for users to
get its source. For example, if your program is a web application, its
interface could display a "Source" link that leads users to an archive
of the code. There are many ways you could offer source, and different
solutions will be better for different programs; see section 13 for the
specific requirements.
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU AGPL, see
<https://www.gnu.org/licenses/>.

9
README.md Normal file
View File

@ -0,0 +1,9 @@
# melawy-linux-welcome
Welcome screen for Melawy Linux
### Donate
[Tinkoff](https://www.tinkoff.ru/rm/fadeeva.valeriya96/9bLRi79066)
[YooMoney](https://yoomoney.ru/to/4100115921160758)
Etherium 0x981FBf878fe451BDB83BEaF68078394d4B13213f

67
assets/icons/Melawy.svg Normal file
View File

@ -0,0 +1,67 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
width="64"
height="64"
viewBox="0 0 64 64"
version="1.1"
id="svg193"
sodipodi:docname="os_melawylinux.svg"
inkscape:version="1.3 (0e150ed6c4, 2023-07-21)"
inkscape:export-filename="os_melawylinux.png"
inkscape:export-xdpi="768"
inkscape:export-ydpi="768"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<defs
id="defs197" />
<sodipodi:namedview
id="namedview195"
pagecolor="#505050"
bordercolor="#eeeeee"
borderopacity="1"
inkscape:showpageshadow="0"
inkscape:pageopacity="0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#505050"
showgrid="false"
inkscape:zoom="9.1371454"
inkscape:cx="19.043147"
inkscape:cy="29.87804"
inkscape:window-width="1920"
inkscape:window-height="1014"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="svg193" />
<circle
style="fill:#000000;fill-opacity:0.5;stroke:none;stroke-width:1.02056"
id="path1"
cx="32"
cy="32"
r="32" />
<path
fill-rule="nonzero"
fill="#ff5555"
fill-opacity="1"
d="M 10.947002,39.950461 V 14.652372 h 5.618722 v 2.795521 h 2.823199 v 2.823202 h 2.795522 v -2.823202 h 2.823201 v -2.795521 h 5.618721 V 39.950461 H 25.007646 V 25.889818 h -2.823201 v 2.823199 h -2.795522 v -2.823199 h -2.823199 v 14.060643 z m 22.495646,-2.8232 V 25.889818 h 2.823199 v -2.8232 h 14.060645 v 2.8232 h 2.795521 v 5.618721 H 39.061369 v 5.618722 h 8.441922 v -2.795522 h 5.618722 v 2.795522 h -2.795521 v 2.8232 H 36.265847 v -2.8232 z m 5.618721,-11.237443 v 2.823199 h 8.441922 v -2.823199 z"
id="path187"
style="stroke-width:1.77143"
sodipodi:nodetypes="ccccccccccccccccccccccccccccccccccccccccccccc" />
<path
fill-rule="nonzero"
fill="#e5444c"
fill-opacity="1"
d="m 15.650703,50.096012 2.463382,0.02769 v -0.830353 c 0,-0.512051 0.276784,-0.781916 0.830352,-0.802675 0.553569,0.02076 0.830353,0.290624 0.830353,0.802675 v 1.688384 c 0,0.53972 -0.276784,0.802665 -0.830353,0.802665 h -5.784792 c -0.539728,0 -0.802674,-0.262945 -0.802674,-0.802674 l -0.02769,-8.33121 c 0,-0.553568 0.276783,-0.830353 0.830354,-0.830353 h 1.688393 c 0.477451,0 0.747316,0.276785 0.802673,0.830353 z m 5.542606,1.660706 c -0.262944,0 -0.387498,-0.138402 -0.387498,-0.415176 0,-0.08995 0.01382,-0.166071 0.05537,-0.221428 l -0.02769,-0.02769 1.688385,-7.058001 0.276783,-1.190172 0.08303,-0.332141 c 0.110714,-0.422095 0.359819,-0.636604 0.747318,-0.636604 h 0.138401 2.712487 0.1384 c 0.387499,0 0.622766,0.214509 0.71964,0.636604 l 0.08303,0.332141 2.020526,8.248173 c 0.01382,0.07612 0.02769,0.166071 0.02769,0.276784 0,0.276786 -0.138402,0.415177 -0.415178,0.415177 h -2.15892 -0.138402 c -0.373657,0 -0.608925,-0.20759 -0.719639,-0.636604 l -1.74373,-7.113346 -1.660708,7.085679 c -0.110713,0.429016 -0.359819,0.636603 -0.747315,0.636603 z m 3.958016,-0.802673 c -0.04153,0.553567 -0.304462,0.830352 -0.802675,0.830352 -0.553569,0 -0.830352,-0.262946 -0.830352,-0.802675 l -0.02769,-1.688384 c 0,-0.53281 0.276785,-0.802675 0.830353,-0.802675 0.512053,0 0.788837,0.276784 0.830354,0.830353 z m 11.424273,-4.068731 -0.664283,2.740164 -0.276783,1.190174 -0.08303,0.33214 c -0.07612,0.33214 -0.242187,0.539729 -0.498211,0.608926 v 0.02769 h -2.186601 -0.1384 c -0.37366,0 -0.608926,-0.207588 -0.71964,-0.636603 L 31.92564,50.81566 29.905115,42.567487 c -0.02076,-0.0692 -0.02769,-0.16607 -0.02769,-0.276784 0,-0.276784 0.1384,-0.415176 0.415176,-0.415176 h 2.158917 0.138401 c 0.387499,0 0.622766,0.214508 0.719639,0.636604 l 1.300888,5.258901 1.079459,-4.622299 0.138401,-0.608925 c 0.08995,-0.401336 0.311382,-0.615844 0.664281,-0.636604 h 0.166054 c 0.34598,0.02076 0.567406,0.235268 0.664283,0.636604 l 0.138401,0.608925 1.051779,4.511584 1.217852,-5.120509 c 0.110713,-0.422096 0.34598,-0.636604 0.71964,-0.636604 h 0.69196 c 0.276785,0 0.415176,0.138402 0.415176,0.415177 0,0.09688 -0.02076,0.16607 -0.05537,0.221427 v 0.02769 l -1.688384,7.058 -0.276785,1.190173 -0.08302,0.332141 c -0.07613,0.318301 -0.235267,0.51897 -0.470534,0.608926 v 0.02766 h -0.913388 v -0.02769 c -0.242187,-0.08995 -0.401338,-0.290625 -0.470534,-0.608925 l -0.08302,-0.332143 -0.276785,-1.190173 z m 7.978308,0.664283 -2.32499,-4.400872 c -0.07612,-0.14531 -0.110713,-0.290621 -0.110713,-0.442855 0,-0.290622 0.172998,-0.525889 0.525892,-0.691961 0.145308,-0.08995 0.290623,-0.1384 0.442854,-0.1384 l 1.328564,-0.02769 c 0.256027,0 0.470534,0.159144 0.636605,0.470533 l 1.688384,3.34909 1.799098,-3.37677 c 0.166071,-0.311364 0.387499,-0.470515 0.664282,-0.470515 0.124549,0 0.276786,0.04154 0.442855,0.110714 0.332141,0.186829 0.498213,0.429017 0.498213,0.719638 0,0.131476 -0.02769,0.276786 -0.08303,0.442856 l -2.214274,4.345515 v 3.542839 c -0.05539,0.539728 -0.325231,0.802674 -0.802684,0.802674 h -1.688384 c -0.53973,0 -0.802674,-0.262946 -0.802674,-0.802674 z"
id="path189"
sodipodi:nodetypes="ccscssssccssccsscccccsccscccsscscccsscsccscccccccccscccsscsccccccccccssscccccccccccccccsccccccscscccsssc"
style="stroke-width:1.77143" />
<path
fill-rule="nonzero"
fill="#96c5f6"
fill-opacity="1"
d="m 33.726015,20.827288 1.260133,0.01415 v -0.424763 c 0,-0.261938 0.141587,-0.399986 0.424763,-0.410604 0.283176,0.01062 0.424764,0.148666 0.424764,0.410604 v 0.863687 c 0,0.276096 -0.141588,0.410604 -0.424764,0.410604 h -2.959187 c -0.276096,0 -0.410605,-0.134508 -0.410605,-0.410604 l -0.01416,-4.261797 c 0,-0.283176 0.141588,-0.424764 0.424764,-0.424764 h 0.86369 c 0.244239,0 0.382288,0.141588 0.410605,0.424764 z m 5.054688,0.453081 c -0.02124,0.276096 -0.152207,0.410604 -0.396446,0.410604 h -0.863686 c -0.283176,0 -0.424764,-0.134508 -0.424764,-0.410604 v -4.247637 c 0,-0.283175 0.134508,-0.424763 0.410605,-0.424763 h 0.892004 c 0.244239,0.01062 0.375208,0.152206 0.396446,0.424763 z m 2.091962,-3.553857 v 3.582175 c 0,0.254858 -0.141588,0.382286 -0.424764,0.382286 -0.283176,0 -0.424764,-0.134508 -0.424764,-0.410604 v -4.261796 c 0,-0.261938 0.145128,-0.399986 0.438923,-0.410604 h 0.608828 c 0.159286,0 0.290255,0.09203 0.396446,0.269016 l 1.090227,2.91671 v -2.775122 c 0.02832,-0.283176 0.162825,-0.424764 0.410605,-0.424764 h 0.863686 c 0.283176,0 0.424764,0.141588 0.424764,0.424764 l -0.01416,4.261796 c 0,0.276096 -0.138048,0.410604 -0.410605,0.410604 h -1.132703 c -0.23716,0 -0.389367,-0.08849 -0.453081,-0.269016 z m 4.633464,-1.132703 c 0.283175,0 0.431843,0.141588 0.453081,0.424764 v 2.987505 h 2.081342 v -2.987505 c 0,-0.283176 0.141588,-0.424764 0.424764,-0.424764 0.283176,0 0.424763,0.141588 0.424763,0.424764 v 4.261796 c 0,0.276096 -0.141587,0.410604 -0.424763,0.410604 h -2.959187 c -0.283176,0 -0.421225,-0.134508 -0.410605,-0.410604 l -0.01416,-4.261796 c 0,-0.283176 0.141588,-0.424764 0.424765,-0.424764 z m 6.583837,1.968073 0.722098,-1.727373 c 0.09203,-0.159287 0.205303,-0.2407 0.339811,-0.2407 0.07433,0 0.155747,0.02124 0.2407,0.05663 0.169905,0.09557 0.254858,0.219462 0.254858,0.368129 0,0.06725 -0.02124,0.141588 -0.05663,0.22654 l -0.948639,2.237089 0.948639,1.557467 c 0.02832,0.08495 0.04247,0.162827 0.04247,0.226541 0,0.152207 -0.08141,0.276097 -0.2407,0.368128 -0.08495,0.03894 -0.166366,0.05663 -0.240699,0.05663 h -0.679622 c -0.134508,0 -0.2407,-0.07787 -0.325652,-0.240698 l -1.033592,-1.684897 -0.750416,1.699055 c -0.08495,0.162826 -0.198223,0.2407 -0.339811,0.2407 -0.07788,0 -0.152207,-0.02124 -0.22654,-0.0708 -0.180525,-0.08495 -0.269018,-0.201763 -0.269018,-0.353969 0,-0.07433 0.0177,-0.148668 0.05664,-0.226541 l 0.991115,-2.166296 -0.991115,-1.614102 c -0.02832,-0.07433 -0.04247,-0.148667 -0.04247,-0.22654 0,-0.148667 0.08495,-0.269017 0.254858,-0.353969 0.08495,-0.04602 0.162827,-0.0708 0.240699,-0.0708 l 0.665464,-0.01415 c 0.130968,0 0.244239,0.08141 0.339811,0.240699 z M 31.616355,13.737274"
id="path191"
style="display:inline;stroke-width:0.906163" />
</svg>

After

Width:  |  Height:  |  Size: 8.0 KiB

View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="256" height="256" viewBox="0 0 256 256">
<path fill-rule="nonzero" fill="rgb(100%, 33.333333%, 33.333333%)" fill-opacity="1" d="M 24 155.890625 L 24 98.765625 L 36.6875 98.765625 L 36.6875 105.078125 L 43.0625 105.078125 L 43.0625 111.453125 L 49.375 111.453125 L 49.375 105.078125 L 55.75 105.078125 L 55.75 98.765625 L 68.4375 98.765625 L 68.4375 155.890625 L 55.75 155.890625 L 55.75 124.140625 L 49.375 124.140625 L 49.375 130.515625 L 43.0625 130.515625 L 43.0625 124.140625 L 36.6875 124.140625 L 36.6875 155.890625 Z M 74.796875 149.515625 L 74.796875 124.140625 L 81.171875 124.140625 L 81.171875 117.765625 L 112.921875 117.765625 L 112.921875 124.140625 L 119.234375 124.140625 L 119.234375 136.828125 L 87.484375 136.828125 L 87.484375 149.515625 L 106.546875 149.515625 L 106.546875 143.203125 L 119.234375 143.203125 L 119.234375 149.515625 L 112.921875 149.515625 L 112.921875 155.890625 L 81.171875 155.890625 L 81.171875 149.515625 Z M 87.484375 124.140625 L 87.484375 130.515625 L 106.546875 130.515625 L 106.546875 124.140625 Z M 24 92.390625 "/>
<path fill-rule="nonzero" fill="rgb(89.803922%, 26.666667%, 29.803922%)" fill-opacity="1" d="M 102.15625 97.5 C 101.8125 98.296875 101.15625 98.6875 100.15625 98.6875 C 99.15625 98.6875 98.484375 98.28125 98.15625 97.4375 L 95.15625 89.25 L 95.15625 100.625 C 95.03125 101.875 94.421875 102.5 93.34375 102.5 L 89.53125 102.5 C 88.28125 102.5 87.65625 101.875 87.65625 100.625 L 87.71875 81.8125 C 87.71875 80.609375 88.3125 80 89.53125 80 L 94.53125 80 L 94.53125 80.0625 C 95.1875 80.15625 95.734375 80.546875 96.15625 81.25 L 100.15625 91.9375 L 104.21875 81.25 C 104.421875 80.625 104.859375 80.234375 105.53125 80.0625 L 107.03125 80.0625 C 108.28125 80.109375 108.90625 80.71875 108.90625 81.875 L 108.90625 100.6875 C 108.90625 101.90625 108.28125 102.5 107.03125 102.5 C 105.78125 102.5 105.15625 101.9375 105.15625 100.8125 L 105.15625 89.4375 Z M 127.5 89.3125 C 128.75 89.3125 129.375 89.96875 129.375 91.25 C 129.375 92.5 128.75 93.125 127.5 93.125 L 116.375 93.125 L 116.375 98.8125 L 127.5 98.875 C 128.78125 98.84375 129.4375 99.4375 129.4375 100.6875 C 129.4375 101.90625 128.8125 102.5 127.5625 102.5 L 114.5625 102.5 C 113.3125 102.5 112.6875 101.875 112.6875 100.625 L 112.6875 91.25 C 112.6875 90 113.3125 89.375 114.5625 89.375 L 114.5625 81.9375 C 114.5625 80.734375 115.1875 80.125 116.4375 80.125 L 127.5625 80.0625 C 128.8125 80.0625 129.4375 80.734375 129.4375 82.0625 C 129.4375 83.234375 128.8125 83.8125 127.5625 83.8125 L 122 83.8125 L 122 89.3125 Z M 140.5625 98.6875 L 146.125 98.75 L 146.125 96.875 C 146.125 95.71875 146.75 95.109375 148 95.0625 C 149.25 95.109375 149.875 95.71875 149.875 96.875 L 149.875 100.6875 C 149.875 101.90625 149.25 102.5 148 102.5 L 134.9375 102.5 C 133.71875 102.5 133.125 101.90625 133.125 100.6875 L 133.0625 81.875 C 133.0625 80.625 133.6875 80 134.9375 80 L 138.75 80 C 139.828125 80 140.4375 80.625 140.5625 81.875 Z M 153.078125 102.4375 C 152.484375 102.4375 152.203125 102.125 152.203125 101.5 C 152.203125 101.296875 152.234375 101.125 152.328125 101 L 152.265625 100.9375 L 156.078125 85 L 156.703125 82.3125 L 156.890625 81.5625 C 157.140625 80.609375 157.703125 80.125 158.578125 80.125 C 158.65625 80.125 158.765625 80.125 158.890625 80.125 L 165.015625 80.125 C 165.09375 80.125 165.203125 80.125 165.328125 80.125 C 166.203125 80.125 166.734375 80.609375 166.953125 81.5625 L 167.140625 82.3125 L 171.703125 100.9375 C 171.734375 101.109375 171.765625 101.3125 171.765625 101.5625 C 171.765625 102.1875 171.453125 102.5 170.828125 102.5 L 165.953125 102.5 C 165.859375 102.5 165.765625 102.5 165.640625 102.5 C 164.796875 102.5 164.265625 102.03125 164.015625 101.0625 L 160.078125 85 L 156.328125 101 C 156.078125 101.96875 155.515625 102.4375 154.640625 102.4375 Z M 162.015625 100.625 C 161.921875 101.875 161.328125 102.5 160.203125 102.5 C 158.953125 102.5 158.328125 101.90625 158.328125 100.6875 L 158.265625 96.875 C 158.265625 95.671875 158.890625 95.0625 160.140625 95.0625 C 161.296875 95.0625 161.921875 95.6875 162.015625 96.9375 Z M 187.8125 91.4375 L 186.3125 97.625 L 185.6875 100.3125 L 185.5 101.0625 C 185.328125 101.8125 184.953125 102.28125 184.375 102.4375 L 184.375 102.5 L 179.4375 102.5 C 179.34375 102.5 179.25 102.5 179.125 102.5 C 178.28125 102.5 177.75 102.03125 177.5 101.0625 L 177.3125 100.3125 L 172.75 81.6875 C 172.703125 81.53125 172.6875 81.3125 172.6875 81.0625 C 172.6875 80.4375 173 80.125 173.625 80.125 L 178.5 80.125 C 178.578125 80.125 178.6875 80.125 178.8125 80.125 C 179.6875 80.125 180.21875 80.609375 180.4375 81.5625 L 183.375 93.4375 L 185.8125 83 L 186.125 81.625 C 186.328125 80.71875 186.828125 80.234375 187.625 80.1875 L 188 80.1875 C 188.78125 80.234375 189.28125 80.71875 189.5 81.625 L 189.8125 83 L 192.1875 93.1875 L 194.9375 81.625 C 195.1875 80.671875 195.71875 80.1875 196.5625 80.1875 L 198.125 80.1875 C 198.75 80.1875 199.0625 80.5 199.0625 81.125 C 199.0625 81.34375 199.015625 81.5 198.9375 81.625 L 198.9375 81.6875 L 195.125 97.625 L 194.5 100.3125 L 194.3125 101.0625 C 194.140625 101.78125 193.78125 102.234375 193.25 102.4375 L 193.25 102.5 L 191.1875 102.5 L 191.1875 102.4375 C 190.640625 102.234375 190.28125 101.78125 190.125 101.0625 L 189.9375 100.3125 L 189.3125 97.625 Z M 205.828125 92.9375 L 200.578125 83 C 200.40625 82.671875 200.328125 82.34375 200.328125 82 C 200.328125 81.34375 200.71875 80.8125 201.515625 80.4375 C 201.84375 80.234375 202.171875 80.125 202.515625 80.125 L 205.515625 80.0625 C 206.09375 80.0625 206.578125 80.421875 206.953125 81.125 L 210.765625 88.6875 L 214.828125 81.0625 C 215.203125 80.359375 215.703125 80 216.328125 80 C 216.609375 80 216.953125 80.09375 217.328125 80.25 C 218.078125 80.671875 218.453125 81.21875 218.453125 81.875 C 218.453125 82.171875 218.390625 82.5 218.265625 82.875 L 213.265625 92.6875 L 213.265625 100.6875 C 213.140625 101.90625 212.53125 102.5 211.453125 102.5 L 207.640625 102.5 C 206.421875 102.5 205.828125 101.90625 205.828125 100.6875 Z M 85.84375 67.390625 "/>
<path fill-rule="nonzero" fill="rgb(58.823529%, 77.254902%, 96.470588%)" fill-opacity="1" d="M 142.0625 142.71875 L 147.625 142.78125 L 147.625 140.90625 C 147.625 139.75 148.25 139.140625 149.5 139.09375 C 150.75 139.140625 151.375 139.75 151.375 140.90625 L 151.375 144.71875 C 151.375 145.9375 150.75 146.53125 149.5 146.53125 L 136.4375 146.53125 C 135.21875 146.53125 134.625 145.9375 134.625 144.71875 L 134.5625 125.90625 C 134.5625 124.65625 135.1875 124.03125 136.4375 124.03125 L 140.25 124.03125 C 141.328125 124.03125 141.9375 124.65625 142.0625 125.90625 Z M 164.375 144.71875 C 164.28125 145.9375 163.703125 146.53125 162.625 146.53125 L 158.8125 146.53125 C 157.5625 146.53125 156.9375 145.9375 156.9375 144.71875 L 156.9375 125.96875 C 156.9375 124.71875 157.53125 124.09375 158.75 124.09375 L 162.6875 124.09375 C 163.765625 124.140625 164.34375 124.765625 164.4375 125.96875 Z M 173.609375 129.03125 L 173.609375 144.84375 C 173.609375 145.96875 172.984375 146.53125 171.734375 146.53125 C 170.484375 146.53125 169.859375 145.9375 169.859375 144.71875 L 169.859375 125.90625 C 169.859375 124.75 170.5 124.140625 171.796875 124.09375 L 174.484375 124.09375 C 175.1875 124.09375 175.765625 124.5 176.234375 125.28125 L 181.046875 138.15625 L 181.046875 125.90625 C 181.171875 124.65625 181.765625 124.03125 182.859375 124.03125 L 186.671875 124.03125 C 187.921875 124.03125 188.546875 124.65625 188.546875 125.90625 L 188.484375 144.71875 C 188.484375 145.9375 187.875 146.53125 186.671875 146.53125 L 181.671875 146.53125 C 180.625 146.53125 179.953125 146.140625 179.671875 145.34375 Z M 194.0625 124.03125 C 195.3125 124.03125 195.96875 124.65625 196.0625 125.90625 L 196.0625 139.09375 L 205.25 139.09375 L 205.25 125.90625 C 205.25 124.65625 205.875 124.03125 207.125 124.03125 C 208.375 124.03125 209 124.65625 209 125.90625 L 209 144.71875 C 209 145.9375 208.375 146.53125 207.125 146.53125 L 194.0625 146.53125 C 192.8125 146.53125 192.203125 145.9375 192.25 144.71875 L 192.1875 125.90625 C 192.1875 124.65625 192.8125 124.03125 194.0625 124.03125 Z M 223.125 132.71875 L 226.3125 125.09375 C 226.71875 124.390625 227.21875 124.03125 227.8125 124.03125 C 228.140625 124.03125 228.5 124.125 228.875 124.28125 C 229.625 124.703125 230 125.25 230 125.90625 C 230 126.203125 229.90625 126.53125 229.75 126.90625 L 225.5625 136.78125 L 229.75 143.65625 C 229.875 144.03125 229.9375 144.375 229.9375 144.65625 C 229.9375 145.328125 229.578125 145.875 228.875 146.28125 C 228.5 146.453125 228.140625 146.53125 227.8125 146.53125 L 224.8125 146.53125 C 224.21875 146.53125 223.75 146.1875 223.375 145.46875 L 218.8125 138.03125 L 215.5 145.53125 C 215.125 146.25 214.625 146.59375 214 146.59375 C 213.65625 146.59375 213.328125 146.5 213 146.28125 C 212.203125 145.90625 211.8125 145.390625 211.8125 144.71875 C 211.8125 144.390625 211.890625 144.0625 212.0625 143.71875 L 216.4375 134.15625 L 212.0625 127.03125 C 211.9375 126.703125 211.875 126.375 211.875 126.03125 C 211.875 125.375 212.25 124.84375 213 124.46875 C 213.375 124.265625 213.71875 124.15625 214.0625 124.15625 L 217 124.09375 C 217.578125 124.09375 218.078125 124.453125 218.5 125.15625 Z M 132.75 111.421875 "/>
</svg>

After

Width:  |  Height:  |  Size: 9.2 KiB

19
melawy-linux-welcome.desktop Executable file
View File

@ -0,0 +1,19 @@
#!/usr/bin/env xdg-open
[Desktop Entry]
Comment[ru_RU]=
Comment=
Exec=/usr/bin/melawy-linux-welcome
GenericName[ru_RU]=
GenericName=
Icon=distribution-logo-melawy
MimeType=
Name[ru_RU]=Melawy Linux Welcome
Name=Melawy Linux Welcome
Path=
PrefersNonDefaultGPU=false
StartupNotify=true
Terminal=false
TerminalOptions=
Type=Application
X-KDE-SubstituteUID=false
X-KDE-Username=

View File

@ -0,0 +1,20 @@
#!/bin/bash
if [[ "$UID" != 0 ]]; then
echo "USER NOT ROOT"
sudo "$0"
exit
else
echo "USER IS ROOT"
fi
env LANG=C.UTF-8 pacman -Qk 2>/dev/null | grep -v ' 0 missing files' | cut -d: -f1 |
while read -r package; do
sudo pacman -S "$package" --overwrite "*" --noconfirm
done
echo "Finish!"
echo "This window may close!"
sleep 5

155
scripts/key-sign.sh Executable file
View File

@ -0,0 +1,155 @@
#!/bin/bash
key_status1=$(env LANG=C pacman-key -f valeria@fadeeva.me 2>&1 | grep "unknown")
key_status2=$(env LANG=C pacman-key -f erik.dubois@gmail.com 2>&1 | grep "unknown")
if [[ -z $key_status1 ]] && [[ -z $key_status2 ]]; then
exit
fi
if [[ "$UID" != 0 ]]; then
counter=0
for group in $(groups)
do
if [ "${group}" == "wheel" ] || [ "${group}" == "root" ]; then
counter=$(( counter + 1 ))
echo "The user '${USER}' is a member of the group ${group}"
if [ ! -x "$0" ]; then
chmod +x "$0"
fi
sudo /bin/sh -c "$0"
exit
fi
done
if [[ $counter -eq 0 ]]; then
echo "The user '${USER}' does not have permission to run this program."
echo "The user '${USER}' is not a member of the 'wheel' or 'root' group."
echo ""
echo -e "Add the user '${USER}' to the 'wheel' group - COPY AND PASTE in new konsole:\n
su -c \"usermod -a -G wheel ${USER}\"; qdbus org.kde.LogoutPrompt /LogoutPrompt promptLogout; exit"
echo ""
echo "Or otherwise escalate privileges and run the program \"${HOME}/.config/autostart/$(basename ${0}).desktop\" again."
echo ""
echo -e "Help: https://wiki.archlinux.org/title/Sudo \nhttps://wiki.archlinux.org/title/Users_and_groups"
echo ""
echo "The program path is the ${HOME}/.local/bin/$(basename ${0})"
echo "The shortcut path is the ${HOME}/.config/autostart/$(basename ${0}).desktop"
echo ""
echo "Waiting new konsole windows..."
sleep 5
/usr/bin/konsole
exit
fi
fi
# if [[ "$UID" != 0 ]]; then
# echo "USER NOT ROOT"
# sudo "$0"
# exit
# else
# echo "USER IS ROOT"
# fi
grep_text=$(ss -nlp | grep 9050)
if [[ "$?" == 0 ]]; then
export http_proxy="socks5://127.0.0.1:9050"
export https_proxy="socks5://127.0.0.1:9050"
export ftp_proxy="socks5://127.0.0.1:9050"
fi
ping -c 1 1.1.1.1 > /dev/null
have_internet="$?"
cd "/root"
rm -rf /var/lib/pacman/sync/*
rm -rf /etc/pacman.d/gnupg/*
mkdir -p /root/.gnupg 2>/dev/null
chmod 700 /root/.gnupg
haveged -w 1024
pacman-key --init
pkill haveged
pacman-key --add /usr/share/pacman/keyrings/melawy-linux.gpg
pacman-key --lsign-key BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8
pacman-key --lsign-key B175815513971572FE7B1557CEC07AC8FF64DA4B
# if [ "$have_internet" -eq 0 ]; then
# pacman-key --keyserver hkps://keys.openpgp.org --recv-keys BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8
# pacman-key --keyserver hkps://keyserver.ubuntu.com --recv-keys BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8
# pacman-key --lsign-key BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8
#
# pacman-key --keyserver hkps://keys.openpgp.org --recv-keys B175815513971572FE7B1557CEC07AC8FF64DA4B
# pacman-key --keyserver hkps://keyserver.ubuntu.com --recv-keys B175815513971572FE7B1557CEC07AC8FF64DA4B
# pacman-key --lsign-key B175815513971572FE7B1557CEC07AC8FF64DA4B
# fi
pacman-key --lsign-key melawy-linux
pacman-key --add /usr/share/pacman/keyrings/manjaro.gpg
pacman-key --lsign-key manjaro
pacman-key --add /usr/share/pacman/keyrings/cachyos.gpg
pacman-key --lsign-key cachyos
pacman-key --add /usr/share/pacman/keyrings/arcolinux.gpg
pacman-key --lsign-key arcolinux
pacman-key --add /usr/share/pacman/keyrings/chaotic.gpg
pacman-key --lsign-key chaotic
pacman-key --add /usr/share/pacman/keyrings/endeavouros.gpg
pacman-key --lsign-key endeavouros
pacman-key --populate
echo "
keyserver hkp://keyserver.ubuntu.com:80" | sudo tee --append /etc/pacman.d/gnupg/gpg.conf
pacman-key --updatedb
# if [ "$have_internet" -eq 0 ]; then
# pacman -Sy
# fi
title="Successed!"
msg="$(date '+%Y.%m.%d %H:%M:%S')"
users=$(/usr/bin/users | sed 's| |\n|g' | sort | uniq)
for user in $users
do
userid=$(/usr/bin/id -u "$user")
if [ -S "/run/user/$userid/bus" ]; then
cmd=(
DISPLAY=:0
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/"$userid"/bus
/usr/bin/notify-send
--icon=info
--urgency=low
-t 5000
-a "'Keys sign'"
"'$title'"
"'$msg'"
)
/usr/bin/su "$user" -c "${cmd[*]}"
if [ "$user" != "root" ] && [ "$user" != "liveuser" ]; then
if [ -f "/home/$user/.config/autostart/key-sign.sh.desktop" ]; then
rm /home/"$user"/.config/autostart/key-sign.sh.desktop
# rm /home/"$user"/.local/bin/key-sign.sh
fi
fi
fi
done
echo "Finish!!!"
echo "This window may close!"
sleep 5

View File

@ -0,0 +1,18 @@
#!/bin/bash
if [[ "$UID" != 0 ]]; then
echo "USER NOT ROOT"
sudo "$0"
exit
else
echo "USER IS ROOT"
fi
pacman -Sy
pacman -S $(pacman -Qqen)
echo "Finish!"
echo "This window may close!"
sleep 5

22
scripts/unlock_pacman_db.sh Executable file
View File

@ -0,0 +1,22 @@
#!/bin/bash
if [[ "$UID" != 0 ]]; then
echo "USER NOT ROOT"
sudo "$0"
exit
else
echo "USER IS ROOT"
fi
if [ -f '/var/lib/pacman/db.lck' ]; then
killall pacman
rm -v /var/lib/pacman/db.lck
else
echo "Lock not found"
fi
echo "Finish!"
echo "This window may close!"
sleep 5

34
scripts/update-mirrorlist.sh Executable file
View File

@ -0,0 +1,34 @@
#!/bin/bash
user_in_wheel_group=0
for group in $(groups)
do
if [ "${group}" == "wheel" ]; then
echo "Running..."
user_in_wheel_group=1
directory=$(mktemp -d --suffix=-mirrorlists)
rate-mirrors --save "$directory/mirrorlist" --disable-comments-in-file arch
rate-mirrors --save "$directory/cachyos-mirrorlist" --disable-comments-in-file /cachyos
rate-mirrors --save "$directory/chaotic-mirrorlist" --disable-comments-in-file chaotic-aur
rate-mirrors --save "$directory/endeavouros-mirrorlist" --disable-comments-in-file endeavouros
find "$directory/" -mindepth 1 -maxdepth 1 -type f -name "*mirrorlist" -exec sudo cp -f {} /etc/pacman.d/ \;
break
fi
done
if [[ $user_in_wheel_group -eq 0 ]]; then
echo "The user '${USER}' does not have permission to run this program."
echo "The user '${USER}' is not a member of the 'wheel' or 'root' group."
echo "Add user '${USER}' to the 'wheel' group, relogin and run again."
fi
echo "Finish!"
echo "This window may close!"
sleep 5

557
src/main.rs Normal file
View File

@ -0,0 +1,557 @@
// #![cfg_attr(debug_assertions, allow(dead_code, unused))]
use fltk::{
app::App, button::*, enums::*, frame::Frame, group::{Flex, Tabs}, image::*, prelude::*, terminal::{self, RedrawStyle}, window::{DoubleWindow, Window}
};
use fltk_theme::{
/*color_themes, widget_themes, ColorTheme, SchemeType,*/ ThemeType, /*WidgetScheme,*/ WidgetTheme,
};
use std::{thread, time};
use std::process::Command;
use std::env;
use std::fs::File;
use std::io::{self, BufRead};
use std::path::Path;
use chrono::Datelike;
fn read_lines<P>(filename: P) -> io::Result<io::Lines<io::BufReader<File>>>
where P: AsRef<Path>, {
let file = File::open(filename)?;
Ok(io::BufReader::new(file).lines())
}
fn run_cmd(cmd_string: &str, lang_env_var: Option<&str>) {
if lang_env_var.is_some() {
let key: &str = "LANG";
env::set_var(key, lang_env_var.unwrap_or("C.UTF-8"));
}
let args_vec: Vec<&str> = cmd_string.split_whitespace().collect();
if args_vec.len() == 1 {
let cmd = args_vec[0];
let status = Command::new(cmd).output();
println!("{:#?}", status);
} else {
let cmd = args_vec[0];
let new_args_vec = &args_vec[1..].to_vec();
let status = Command::new(cmd).args(new_args_vec).output();
println!("{:#?}", status);
}
}
fn main() {
let width = 800;
let height = 700;
let application = App::default();
// let application = App::default().with_scheme(app::Scheme::Gtk); // Base, Gleam, Gtk, Oxy, Plastic
// let widget_theme = WidgetTheme::new(ThemeType::Dark);
// widget_theme.apply();
let widget_theme = WidgetTheme::new(ThemeType::Metro);
widget_theme.apply();
// let widget_scheme = WidgetScheme::new(SchemeType::Fluent);
// widget_scheme.apply();
// let color_theme = ColorTheme::new(color_themes::GRAY_THEME);
// color_theme.apply();
let mut win: DoubleWindow = Window::default()
.with_size(width, height)
.center_screen()
.with_label("Melawy Linux: Welcome");
let icon =
SvgImage::load("/usr/share/melawy-linux-welcome/assets/icons/Melawy.svg").unwrap();
win.set_icon(Some(icon));
let mut scale_image =
SvgImage::load("/usr/share/melawy-linux-welcome/assets/icons/melawy-linux.svg").unwrap();
// -----------------------------------------------------------
let mut tabs = Tabs::default_fill();
let mut grp_install_new_sys = Flex::default_fill()
.with_label("Main\t\t")
.column();
let mut frame1 = Frame::default().with_label("Empty Data");
frame1.set_frame(FrameType::BorderBox);
scale_image.scale(500, 500, true, true);
frame1.set_image(Some(scale_image));
frame1.set_label("");
let mut col_install_new_sys = Flex::default().column();
col_install_new_sys.set_margin(10);
col_install_new_sys.set_pad(10);
let mut btn_install_system = Button::default().with_label("INSTALL NEW SYSTEM");
btn_install_system.set_callback(move |b| {
b.deactivate();
std::thread::spawn({
let mut b = b.clone();
move || {
let cmd = "/usr/lib/kf6/kdesu dbus-launch calamares";
let _ = run_cmd(cmd, None);
b.activate();
}
});
});
col_install_new_sys.end();
grp_install_new_sys.fixed(&col_install_new_sys, 100);
grp_install_new_sys.end();
// -----------------------------------------------------------
let grp_sys_and_repo = Flex::default_fill()
.with_label("System and repositories\t\t")
.row();
let mut col_sys_and_repo = Flex::default().column();
col_sys_and_repo.set_margin(10);
col_sys_and_repo.set_pad(10);
let mut btn_update_repo_mirrorlists = Button::default().with_label("Update repo mirrorlists");
btn_update_repo_mirrorlists.set_callback(move |b| {
b.deactivate();
std::thread::spawn({
let mut b = b.clone();
move || {
let cmd = "/usr/bin/konsole --noclose --separate -e /bin/sh -c /usr/share/melawy-linux-welcome/scripts/update-mirrorlist.sh";
let _ = run_cmd(cmd, None);
b.activate();
}
});
});
let mut btn_fix_repo_keys = Button::default().with_label("Fix repo keys");
btn_fix_repo_keys.set_callback(move |b| {
b.deactivate();
std::thread::spawn({
let mut b = b.clone();
move || {
let cmd = "/usr/bin/konsole --noclose --separate -e /bin/sh -c /usr/share/melawy-linux-welcome/scripts/key-sign.sh";
let _ = run_cmd(cmd, None);
b.activate();
}
});
});
let mut btn_update_system = Button::default().with_label("Update system");
btn_update_system.set_callback(move |b| {
b.deactivate();
std::thread::spawn({
let mut b = b.clone();
move || {
let cmd = "sudo arch-linux-updater";
let _ = run_cmd(cmd, None);
b.activate();
}
});
});
let mut btn_unlock_repo_databases = Button::default().with_label("Unlock repo databases");
btn_unlock_repo_databases.set_callback(move |b| {
b.deactivate();
std::thread::spawn({
let mut b = b.clone();
move || {
let cmd = "/usr/bin/konsole --noclose --separate -e /bin/sh -c /usr/share/melawy-linux-welcome/scripts/unlock_pacman_db.sh";
let _ = run_cmd(cmd, None);
b.activate();
}
});
});
let mut btn_clear_old_package_cache = Button::default().with_label("Clear old package cache");
btn_clear_old_package_cache.set_callback(move |b| {
b.deactivate();
std::thread::spawn({
let mut b = b.clone();
move || {
let cmd = "/usr/bin/konsole --noclose --separate -e sudo pacman -Sc";
let _ = run_cmd(cmd, None);
b.activate();
}
});
});
let mut btn_clear_all_package_cache = Button::default().with_label("Clear all package cache");
btn_clear_all_package_cache.set_callback(move |b| {
b.deactivate();
std::thread::spawn({
let mut b = b.clone();
move || {
let cmd = "/usr/bin/konsole --noclose --separate -e sudo pacman -Scc";
let _ = run_cmd(cmd, None);
b.activate();
}
});
});
let mut btn_check_missing_files_in_packages =
Button::default().with_label("Fix missing files in packages");
btn_check_missing_files_in_packages.set_callback(move |b| {
b.deactivate();
std::thread::spawn({
let mut b = b.clone();
move || {
let cmd = "/usr/bin/konsole --noclose --separate -e /bin/sh -c /usr/share/melawy-linux-welcome/scripts/fix_missing_files_in_packages.sh";
let _ = run_cmd(cmd, Some("C.UTF-8"));
b.activate();
}
});
});
let mut btn_reinstall_all_packages = Button::default().with_label("Reinstall all packages");
btn_reinstall_all_packages.set_callback(move |b| {
b.deactivate();
std::thread::spawn({
let mut b = b.clone();
move || {
let cmd = "/usr/bin/konsole --noclose --separate -e /bin/sh -c /usr/share/melawy-linux-welcome/scripts/reinstall_all_packages.sh";
let _ = run_cmd(cmd, None);
b.activate();
}
});
});
col_sys_and_repo.end();
grp_sys_and_repo.end();
// -----------------------------------------------------------
let grp_services = Flex::default_fill().with_label("Services\t\t").row();
let mut col_services = Flex::default().column();
col_services.set_margin(10);
col_services.set_pad(10);
let mut btn_restart_kde_plasma = Button::default().with_label("Restart KDE Plasma");
btn_restart_kde_plasma.set_callback(move |b| {
b.deactivate();
std::thread::spawn({
let mut b = b.clone();
move || {
let cmd = "systemctl --user restart plasma-plasmashell";
let _ = run_cmd(cmd, None);
b.activate();
}
});
});
let mut btn_restart_kde_effects = Button::default().with_label("Restart KDE Plasma Effects");
btn_restart_kde_effects.set_callback(move |b| {
b.deactivate();
std::thread::spawn({
let mut b = b.clone();
move || {
let cmd = "qdbus org.kde.KWin /KWin reconfigure";
let _ = run_cmd(cmd, None);
b.activate();
}
});
});
let mut btn_reset_kde_plasma_layout = Button::default().with_label("Reset KDE Plasma Layout");
btn_reset_kde_plasma_layout.set_callback(move |b| {
b.deactivate();
std::thread::spawn({
let mut b = b.clone();
move || {
let theme = "com.github.Melawy.Melawy-round-gray.Nier-A2.desktop";
let cmd = format!("plasma-apply-lookandfeel -a {theme} --resetLayout");
let _ = run_cmd(cmd.as_str(), None);
let time_to_sleep = time::Duration::from_secs(5);
thread::sleep(time_to_sleep);
let cmd = "systemctl --user restart plasma-plasmashell";
let _ = run_cmd(cmd, None);
let time_to_sleep = time::Duration::from_secs(5);
thread::sleep(time_to_sleep);
let cmd = "klassy-settings -w Melawy_3";
let _ = run_cmd(cmd, None);
b.activate();
}
});
});
let mut btn_restart_tuned =
Button::default().with_label("Restart Tuned and Tuned - Power Profile Daemon");
btn_restart_tuned.set_callback(move |b| {
b.deactivate();
std::thread::spawn({
let mut b = b.clone();
move || {
let cmd = "systemctl restart tuned.service tuned-ppd.service";
let _ = run_cmd(cmd, None);
b.activate();
}
});
});
let mut btn_restart_dnscrypt_proxy = Button::default().with_label("Restart DNS Crypt Proxy");
btn_restart_dnscrypt_proxy.set_callback(move |b| {
b.deactivate();
std::thread::spawn({
let mut b = b.clone();
move || {
let cmd = "systemctl restart dnscrypt-proxy.service";
let _ = run_cmd(cmd, None);
b.activate();
}
});
});
let mut btn_restart_tor = Button::default().with_label("Restart Tor");
btn_restart_tor.set_callback(move |b| {
b.deactivate();
std::thread::spawn({
let mut b = b.clone();
move || {
let cmd = "systemctl restart tor.service";
let _ = run_cmd(cmd, None);
b.activate();
}
});
});
col_services.end();
grp_services.end();
// -----------------------------------------------------------
let grp_information = Flex::default_fill().with_label("Information\t\t").row();
let mut col_information = Flex::default().column();
col_information.set_margin(10);
col_information.set_pad(10);
let mut btn_visit_site = Button::default().with_label("Visit Melawy Linux site");
btn_visit_site.set_callback(move |b| {
b.deactivate();
std::thread::spawn({
let mut b = b.clone();
move || {
let cmd = "xdg-open https://melawy.ru";
let _ = run_cmd(cmd, None);
b.activate();
}
});
});
let mut btn_get_help = Button::default().with_label("I need help");
btn_get_help.set_callback(move |b| {
b.deactivate();
std::thread::spawn({
let mut b = b.clone();
move || {
let cmd = "xdg-open https://melawy.ru/help";
let _ = run_cmd(cmd, None);
b.activate();
}
});
});
let mut btn_give_help = Button::default().with_label("I'm ready to help");
btn_give_help.set_callback(move |b| {
b.deactivate();
std::thread::spawn({
let mut b = b.clone();
move || {
let cmd = "xdg-open https://melawy.ru/help";
let _ = run_cmd(cmd, None);
b.activate();
}
});
});
let mut btn_donate = Button::default().with_label("Donate");
btn_donate.set_callback(move |b| {
b.deactivate();
std::thread::spawn({
let mut b = b.clone();
move || {
let cmd = "xdg-open https://melawy.ru/donate";
let _ = run_cmd(cmd, None);
b.activate();
}
});
});
let mut btn_telegram_channel = Button::default().with_label("Telegram Channel");
btn_telegram_channel.set_callback(move |b| {
b.deactivate();
std::thread::spawn({
let mut b = b.clone();
move || {
let cmd = "xdg-open https://t.me/Melawy_Linux";
let _ = run_cmd(cmd, None);
b.activate();
}
});
});
let mut btn_telegram_chat = Button::default().with_label("Telegram Chat");
btn_telegram_chat.set_callback(move |b| {
b.deactivate();
std::thread::spawn({
let mut b = b.clone();
move || {
let cmd = "xdg-open https://t.me/Melawy_Linux_Chat";
let _ = run_cmd(cmd, None);
b.activate();
}
});
});
let mut btn_youtube = Button::default().with_label("YouTube");
btn_youtube.set_callback(move |b| {
b.deactivate();
std::thread::spawn({
let mut b = b.clone();
move || {
let cmd = "xdg-open https://www.youtube.com/@Melawy";
let _ = run_cmd(cmd, None);
b.activate();
}
});
});
let mut btn_discord = Button::default().with_label("Discrord");
btn_discord.set_callback(move |b| {
b.deactivate();
std::thread::spawn({
let mut b = b.clone();
move || {
let cmd = "xdg-open https://discord.gg/725zXx7RhJ";
let _ = run_cmd(cmd, None);
b.activate();
}
});
});
let mut btn_mastodon = Button::default().with_label("Mastodon");
btn_mastodon.set_callback(move |b| {
b.deactivate();
std::thread::spawn({
let mut b = b.clone();
move || {
let cmd = "xdg-open https://techhub.social/@Melawy";
let _ = run_cmd(cmd, None);
b.activate();
}
});
});
col_information.end();
grp_information.end();
// -----------------------------------------------------------
let grp_about = Flex::default_fill()
.with_label("About\t\t")
.column();
let mut term = terminal::Terminal::default_fill();
term.set_color(Color::Light1);
term.set_text_color(Color::Gray0);
term.set_redraw_style(RedrawStyle::PerWrite);
if let Ok(lines) = read_lines("text.txt") {
// Получает итератор, который возвращает Option
for line in lines {
if let Ok(text_string) = line {
term.append(format!("{}\n", text_string).as_str());
}
}
}
let current_date = chrono::Utc::now();
let current_year = format!("{}", current_date.year());
let copyright_en = format!("\n(с) Valeria Fadeeva, 2023 - {}\n", current_year.clone());
let copyright_ru = format!("\n(с) Валерия Фадеева, 2023 - {}\n", current_year.clone());
term.append(copyright_en.as_str());
term.append(copyright_ru.as_str());
grp_about.end();
// -----------------------------------------------------------
tabs.end();
tabs.auto_layout();
// -----------------------------------------------------------
win.make_resizable(true);
win.end();
win.show();
application.run().unwrap();
}

70
text/about.txt Normal file
View File

@ -0,0 +1,70 @@
----------------------------------------------
EN
----------------------------------------------
A Linux distribution is a selected set of Linux operating system components assembled into a distribution package — the kernel, libraries and utilities of the GNU project, the installation program, other utilities and programs for Linux.
Typically, a Linux distribution contains basic components, including a boot loader, Linux kernel, init system, daemons, a graphical server and applications.
Linux distributions are designed to meet various user needs, from servers and desktop computers to embedded systems. For example, server distributions include various server software (web servers, DBMS), while desktop distributions include desktop environments, office suites, and multimedia players.
A Linux derivative is an operating system created by modifying an existing Linux distribution to meet specific user goals or needs.
Derivative developers often change software packages, configurations, and system behavior to create customized solutions.
----------------------------------------------
Product from girls and boys, from the creators of non boring wallpapers, distributions from Vasyans, including Linus Torvalds was Vasyan, who made the kernel of the operating system on his home computer, as opposed to the paid kernel of the Unix system at that time, and many, many others.
„If you criticize someone else's, offer your own. Offer — do it.“
— Sergey Pavlovich Korolev is a Soviet scientist, design engineer, the main organizer of the production of rocket and space technology and rocket weapons in the USSR and the founder of practical cosmonautics.
30.12.1906 — 14.01.1966
„Rejecting — offer, offering — act.“
— Paul Valéry — French poet, essayist, philosopher.
30.10.1871 — 20.07.1945
----------------------------------------------
Don't Worry, Be Happy! :D";
----------------------------------------------
RU
----------------------------------------------
Дистрибутив Linux — это скомпонованный в дистрибутивный пакет подобранный набор компонентов операционной системы Linux — ядро, библиотеки и утилиты проекта GNU, программа установки, другие утилиты и программы для Linux.
Как правило, дистрибутив Linux содержит базовые компоненты, в том числе загрузчик, ядро Linux, систему инициализации, программы-демоны, графический сервер и приложения.
Дистрибутивы Linux разработаны для удовлетворения различных потребностей пользователей, начиная от серверов и настольных компьютеров и заканчивая встроенными системами. Например, в серверные дистрибутивы включаются различное серверное программное обеспечение (веб-серверы, СУБД), в настольные — среды рабочего стола, офисные пакеты, проигрыватели мультимедиа.
Дериватив Linux — это операционная система, созданная путём модификации существующего дистрибутива Linux для удовлетворения конкретных целей или потребностей пользователя.
Разработчики дериватива часто изменяют пакеты программного обеспечения, конфигурации и поведение системы, чтобы создать адаптированные решения.
----------------------------------------------
Продукт от девочек и мальчиков, от создателей нескучных обоев, дистрибьютивов от Васянов, в том числе Линус Торвальдс был Васяном, который на домашнем компьютере сделал ядро операционной системы, в противовес платному на тот момент ядру системы Unix и многие-многие другие.
„Критикуешь чужое, предлагай своё. Предлагая — делай.“
— Сергей Павлович Королёв — советский учёный, инженер-конструктор, главный организатор производства ракетно-космической техники и ракетного оружия в СССР и основоположник практической космонавтики.
30.12.1906 — 14.01.1966
„Отвергая — предлагай, предлагая — действуй.“
— Поль Валери — французский поэт, эссеист, философ.
30.10.1871 — 20.07.1945
----------------------------------------------
Не переживайте и будьте счастливы! :D
----------------------------------------------