├── .codespellignore ├── .github ├── ISSUE_TEMPLATE │ └── bug_report.md ├── dependabot.yml └── workflows │ ├── CI.yml │ ├── audit.yml │ └── package.yml ├── .gitignore ├── .pre-commit-config.yaml ├── .rustfmt.toml ├── CHANGELOG.md ├── Cargo.lock ├── Cargo.toml ├── LICENSE ├── README.md ├── data ├── icons │ ├── meson.build │ ├── org.rhinolinux.RhinoSetup.Devel.svg │ └── org.rhinolinux.RhinoSetup.svg ├── meson.build ├── org.rhinolinux.RhinoSetup.desktop.in.in ├── org.rhinolinux.RhinoSetup.gschema.xml.in └── resources │ ├── icons │ ├── rhinosetup-package-symbolic.svg │ ├── rhinosetup-puzzle-piece-symbolic.svg │ └── rhinosetup-welcome.svg │ ├── meson.build │ ├── resources.gresource.xml │ └── style.css ├── justfile ├── meson.build ├── meson_options.txt ├── po ├── LINGUAS ├── POTFILES.in ├── ar.po ├── bn.po ├── de.po ├── enm.po ├── es.po ├── fr.po ├── hi.po ├── id.po ├── ie.po ├── it.po ├── ka.po ├── ko.po ├── meson.build ├── nl.po ├── pt_BR.po ├── rhino-setup.pot ├── ro.po ├── ru.po ├── sv.po ├── uk.po ├── ur.po └── zh_Hans.po └── src ├── carousel.rs ├── config.rs.in ├── containers.rs ├── done.rs ├── extra_settings.rs ├── main.rs ├── meson.build ├── package_manager.rs ├── progress.rs └── welcome.rs /.codespellignore: -------------------------------------------------------------------------------- 1 | crate 2 | mut 3 | stdio 4 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Bug report 3 | about: Create a report to help us improve 4 | title: 'BUG:' 5 | labels: bug 6 | assignees: wizard-28, ajstrongdev 7 | 8 | --- 9 | 10 | **Rhino Linux Version:** 11 | A numerical version for Rhino Linux. Example: `2023.1`, - Version number can be found by running `neofetch` (preinstalled) or with the "Your System" application. 12 | 13 | **Platform:** 14 | [CPU Architecture / Device] 15 | 16 | **Describe the bug** 17 | A clear and concise description of what the bug is. 18 | 19 | **To Reproduce** 20 | Steps to reproduce the behavior: 21 | 1. Go to '...' 22 | 2. Click on '....' 23 | 3. Scroll down to '....' 24 | 4. See error 25 | 26 | **Expected behavior** 27 | A clear and concise description of what you expected to happen. 28 | 29 | **Screenshots** 30 | If applicable, add screenshots to help explain your problem. 31 | 32 | **Additional context** 33 | Add any other context about the problem here. 34 | -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- 1 | version: 2 2 | updates: 3 | - package-ecosystem: "cargo" 4 | # Look for `Cargo.toml` and `Cargo.lock` in the root directory 5 | directory: "/" 6 | # Check for updates every Monday 7 | schedule: 8 | interval: "weekly" 9 | open-pull-requests-limit: 10 10 | - package-ecosystem: "github-actions" 11 | directory: "/" 12 | # Check for updates every Monday 13 | schedule: 14 | interval: "weekly" 15 | open-pull-requests-limit: 10 16 | -------------------------------------------------------------------------------- /.github/workflows/CI.yml: -------------------------------------------------------------------------------- 1 | name: CI # Continuous Integration 2 | on: 3 | workflow_dispatch: 4 | push: 5 | branches: [master] 6 | pull_request: 7 | jobs: 8 | rustfmt: 9 | name: Rustfmt 10 | runs-on: ubuntu-latest 11 | steps: 12 | - name: Checkout repository 13 | uses: actions/checkout@v3 14 | - name: Create blank versions of configured file 15 | run: echo -e "" >> src/config.rs 16 | - name: Install Rust toolchain 17 | uses: actions-rs/toolchain@v1 18 | with: 19 | toolchain: nightly 20 | profile: minimal 21 | override: true 22 | components: rustfmt 23 | - uses: Swatinem/rust-cache@v1 24 | - name: Check formatting 25 | uses: actions-rs/cargo@v1 26 | with: 27 | toolchain: nightly 28 | command: fmt 29 | args: --all -- --check 30 | spellcheck: 31 | name: Spellcheck 32 | runs-on: ubuntu-latest 33 | steps: 34 | - name: Checkout repository 35 | uses: actions/checkout@v3 36 | - name: Spellcheck 37 | uses: codespell-project/actions-codespell@master 38 | with: 39 | builtin: clear,rare,informal,code 40 | ignore_words_file: .codespellignore 41 | skip: "*.po,./.git,*.svg,*LINGUAS*" 42 | clippy: 43 | name: Clippy 44 | runs-on: ubuntu-latest 45 | steps: 46 | - name: Checkout repository 47 | uses: actions/checkout@v3 48 | - name: Setup python 49 | uses: actions/setup-python@v1 50 | - name: Install meson 51 | run: pip install meson ninja 52 | - name: Install dependencies 53 | run: sudo apt-get install libgtk-4-dev libadwaita-1-dev 54 | - name: Setup project 55 | # Disable dependency checks 56 | run: meson setup -D profile=CI build/ 57 | - name: Install Rust toolchain 58 | uses: actions-rs/toolchain@v1 59 | with: 60 | toolchain: stable 61 | profile: minimal 62 | override: true 63 | components: clippy 64 | - uses: Swatinem/rust-cache@v1 65 | - name: Clippy check 66 | uses: actions-rs/cargo@v1 67 | with: 68 | command: clippy 69 | args: --all-targets --all-features --workspace -- -D warnings -D clippy::pedantic 70 | docs: 71 | name: Docs 72 | runs-on: ubuntu-latest 73 | steps: 74 | - name: Checkout repository 75 | uses: actions/checkout@v3 76 | - name: Install Rust toolchain 77 | uses: actions-rs/toolchain@v1 78 | with: 79 | toolchain: stable 80 | profile: minimal 81 | override: true 82 | - uses: Swatinem/rust-cache@v1 83 | - name: Check documentation 84 | env: 85 | RUSTDOCFLAGS: -D warnings 86 | uses: actions-rs/cargo@v1 87 | with: 88 | command: doc 89 | args: --no-deps --document-private-items --all-features --workspace --examples 90 | -------------------------------------------------------------------------------- /.github/workflows/audit.yml: -------------------------------------------------------------------------------- 1 | name: Security audit 2 | 3 | on: 4 | schedule: 5 | # Runs at 00:00 UTC everyday 6 | - cron: '0 0 * * *' 7 | push: 8 | paths: 9 | - '**/Cargo.toml' 10 | pull_request: 11 | 12 | jobs: 13 | audit: 14 | runs-on: ubuntu-latest 15 | steps: 16 | - name: Checkout repository 17 | uses: actions/checkout@v3 18 | # Ensure that the latest version of Cargo is installed 19 | - name: Install Rust 20 | uses: actions-rs/toolchain@v1 21 | with: 22 | toolchain: stable 23 | profile: minimal 24 | override: true 25 | - uses: Swatinem/rust-cache@v1 26 | - uses: actions-rs/audit-check@v1 27 | with: 28 | token: ${{ secrets.GITHUB_TOKEN }} 29 | -------------------------------------------------------------------------------- /.github/workflows/package.yml: -------------------------------------------------------------------------------- 1 | name: Rhino Setup Binary Generation 2 | 3 | on: 4 | workflow_dispatch 5 | 6 | jobs: 7 | build_amd64: 8 | runs-on: ubuntu-latest 9 | steps: 10 | - uses: actions/checkout@v3.1.0 11 | 12 | - name: Install needed packages 13 | run: | 14 | sudo rm -rf /var/lib/apt/lists/* 15 | sudo sed -i 's/jammy/.\/devel/g' /etc/apt/sources.list 16 | sudo apt-get update && sudo apt-get install libgtk-4-dev libadwaita-1-dev gettext desktop-file-utils rustc cargo meson ninja-build -y 17 | 18 | - name: Setup 19 | run: sudo meson build && mkdir -p builds/amd64 20 | 21 | - name: Build 22 | run: sudo DESTDIR="builds/amd64" ninja -C build install 23 | 24 | - uses: actions/upload-artifact@v3.1.2 25 | with: 26 | name: Rhino Setup (AMD64) 27 | path: build/builds/amd64/ 28 | 29 | build_arm64: 30 | runs-on: ubuntu-24.04-arm 31 | steps: 32 | - uses: actions/checkout@v3.1.0 33 | 34 | - name: Install needed packages 35 | run: | 36 | sudo rm -rf /var/lib/apt/lists/* 37 | sudo sed -i 's/jammy/.\/devel/g' /etc/apt/sources.list 38 | sudo apt-get update && sudo apt-get install libgtk-4-dev libadwaita-1-dev gettext desktop-file-utils rustc cargo meson ninja-build -y 39 | 40 | - name: Setup 41 | run: sudo meson build && mkdir -p builds/arm64 42 | 43 | - name: Build 44 | run: sudo DESTDIR="builds/arm64" ninja -C build install 45 | 46 | - uses: actions/upload-artifact@v3.1.2 47 | with: 48 | name: Rhino Setup (ARM64) 49 | path: build/builds/arm64/ 50 | 51 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | target/ 2 | build/ 3 | src/config.rs 4 | -------------------------------------------------------------------------------- /.pre-commit-config.yaml: -------------------------------------------------------------------------------- 1 | ci: 2 | # Skip hooks requiring `just` to be installed 3 | skip: [codespell, fmt, clippy] 4 | 5 | repos: 6 | # General 7 | - repo: https://github.com/pre-commit/pre-commit-hooks 8 | rev: v3.2.0 9 | hooks: 10 | - id: check-added-large-files 11 | - id: check-merge-conflict 12 | - id: check-toml 13 | - id: check-yaml 14 | - id: end-of-file-fixer 15 | - id: mixed-line-ending 16 | args: ["--fix=lf"] 17 | - id: trailing-whitespace 18 | - repo: local 19 | hooks: 20 | - id: codespell 21 | name: Check for misspellings 22 | description: Checks for common misspellings in text files 23 | language: system 24 | entry: just spellcheck 25 | types: [text] 26 | exclude_types: [image] 27 | - id: fmt 28 | name: Format files 29 | description: Format files with cargo fmt 30 | language: system 31 | entry: just fmt 32 | types: [rust] 33 | - id: clippy 34 | name: Lint code 35 | description: Lint rust sources 36 | language: system 37 | entry: just clippy 38 | types: [rust] 39 | pass_filenames: false 40 | -------------------------------------------------------------------------------- /.rustfmt.toml: -------------------------------------------------------------------------------- 1 | group_imports = "StdExternalCrate" 2 | wrap_comments = true 3 | use_try_shorthand = true 4 | use_field_init_shorthand = true 5 | reorder_impl_items = true 6 | normalize_doc_attributes = true 7 | normalize_comments = true 8 | imports_granularity = "Module" 9 | match_block_trailing_comma = true 10 | format_strings = true 11 | format_macro_matchers = true 12 | format_code_in_doc_comments = true 13 | fn_single_line = true 14 | condense_wildcard_suffixes = true 15 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Changelog 2 | 3 | The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), 4 | and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). 5 | 6 | ## Unreleased 7 | 8 | ## Added 9 | -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "rhino-setup" 3 | version = "0.2.0" 4 | edition = "2021" 5 | 6 | [profile.release] 7 | lto = true 8 | 9 | # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html 10 | 11 | [dependencies] 12 | gettext-rs = { version = "0.7.0", features = ["gettext-system"] } 13 | relm4 = { version = "0.9.0", features = ["libadwaita"] } 14 | relm4-components = "0.9.1" 15 | tracing = "0.1.37" 16 | tracing-appender = "0.2.2" 17 | tracing-subscriber = "0.3.17" 18 | time = "0.3.36" 19 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ### Issues Tracker 2 | 3 | To report issues or propose new features for this repository, visit [our tracker](https://github.com/rhino-linux/tracker). 4 | 5 |

Rhino Setup

6 | 7 | 8 |

9 | join discord 10 | donate 11 |
12 | donate 13 |
14 | join subreddit 15 | subscribe to youtube 16 |

17 | 18 |

Setup wizard for Rhino Linux

19 | 20 | ## 🔱 Info 21 | 22 | Setup wizard for [Rhino Linux](https://rollinglinux.org/) written in Rust. Inspired by [VanillaOS's setup wizard](https://github.com/Vanilla-OS/first-setup) 23 | 24 | ## 🌊 Features 25 | 26 | + Customize your theme 27 | + Manage your package managers 28 | + Configure crash reporting 29 | 30 | ## ⚙️ Building 31 | 32 | Install the following dependencies: 33 | 34 | * `libgtk-4-dev` 35 | * `libadwaita-1-dev` 36 | * `gettext` 37 | * `desktop-file-utils` 38 | * `rustc` 39 | * `cargo` 40 | * `meson` 41 | * `ninja-build` 42 | 43 | Run the following commands: 44 | 45 | * `meson build` or `meson -D profile=development build` 46 | * `ninja -C build install` 47 | 48 | ## 🗣️ Translation Status 49 | 50 | ### How you can help 51 | * Work on translations into languages not finished yet by either editing the `po/.po` file, making a new one by running `cp po/rhino-setup.pot po/.po`, or using weblate (https://hosted.weblate.org/projects/rhino-linux/rhino-setup/). Once you have completed or partially completed a po file, make a PR and we will merge it! Our goal is to have as many languages translated as possible due to the amount of people who may not be fluent in English. 52 | 53 |
54 | 55 | Translation status 56 | 57 |
58 | 59 | ## 📜 License 60 | 61 |

GPL-3.0-or-later

62 | 63 | ```monospace 64 | Copyright (C) 2022-present 65 | 66 | This file is part of Rhino Setup. 67 | 68 | Rhino Setup is free software: you can redistribute it and/or modify it under the 69 | terms of the GNU General Public License as published by the Free Software 70 | Foundation, either version 3 of the License, or (at your option) any later 71 | version. 72 | 73 | Rhino Setup is distributed in the hope that it will be useful, but WITHOUT ANY 74 | WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A 75 | PARTICULAR PURPOSE. See the GNU General Public License for more details. 76 | 77 | You should have received a copy of the GNU General Public License along with 78 | Rhino Setup. If not, see . 79 | ``` 80 | -------------------------------------------------------------------------------- /data/icons/meson.build: -------------------------------------------------------------------------------- 1 | install_data( 2 | '@0@.svg'.format(application_id), 3 | install_dir: iconsdir / 'hicolor' / 'scalable' / 'apps' 4 | ) 5 | 6 | # install_data( 7 | # '@0@-symbolic.svg'.format(base_id), 8 | # install_dir: iconsdir / 'hicolor' / 'symbolic' / 'apps', 9 | # rename: '@0@-symbolic.svg'.format(application_id) 10 | # ) 11 | -------------------------------------------------------------------------------- /data/meson.build: -------------------------------------------------------------------------------- 1 | subdir('icons') 2 | subdir('resources') 3 | 4 | # Desktop file 5 | desktop_conf = configuration_data() 6 | desktop_conf.set('icon', application_id) 7 | desktop_file = i18n.merge_file( 8 | type: 'desktop', 9 | input: configure_file( 10 | input: '@0@.desktop.in.in'.format(base_id), 11 | output: '@BASENAME@', 12 | configuration: desktop_conf 13 | ), 14 | output: '@0@.desktop'.format(application_id), 15 | po_dir: podir, 16 | install: true, 17 | install_dir: datadir / 'applications' 18 | ) 19 | # Validate Desktop file 20 | if desktop_file_validate.found() 21 | test( 22 | 'validate-desktop', 23 | desktop_file_validate, 24 | args: [ 25 | desktop_file.full_path() 26 | ], 27 | depends: desktop_file, 28 | ) 29 | endif 30 | 31 | # Appdata 32 | # appdata_conf = configuration_data() 33 | # appdata_conf.set('app-id', application_id) 34 | # appdata_conf.set('gettext-package', gettext_package) 35 | # appdata_file = i18n.merge_file( 36 | # input: configure_file( 37 | # input: '@0@.metainfo.xml.in.in'.format(base_id), 38 | # output: '@BASENAME@', 39 | # configuration: appdata_conf 40 | # ), 41 | # output: '@0@.metainfo.xml'.format(application_id), 42 | # po_dir: podir, 43 | # install: true, 44 | # install_dir: datadir / 'metainfo' 45 | # ) 46 | # # Validate Appdata 47 | # if appstream_util.found() 48 | # test( 49 | # 'validate-appdata', appstream_util, 50 | # args: [ 51 | # 'validate', '--nonet', appdata_file.full_path() 52 | # ], 53 | # depends: appdata_file, 54 | # ) 55 | # endif 56 | 57 | # GSchema 58 | gschema_conf = configuration_data() 59 | gschema_conf.set('app-id', application_id) 60 | gschema_conf.set('gettext-package', gettext_package) 61 | configure_file( 62 | input: '@0@.gschema.xml.in'.format(base_id), 63 | output: '@0@.gschema.xml'.format(application_id), 64 | configuration: gschema_conf, 65 | install: true, 66 | install_dir: datadir / 'glib-2.0' / 'schemas' 67 | ) 68 | 69 | # Validate GSchema 70 | if glib_compile_schemas.found() 71 | test( 72 | 'validate-gschema', glib_compile_schemas, 73 | args: [ 74 | '--strict', '--dry-run', meson.current_build_dir() 75 | ], 76 | ) 77 | endif 78 | -------------------------------------------------------------------------------- /data/org.rhinolinux.RhinoSetup.desktop.in.in: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Name=Setup Wizard 3 | Comment=Setup wizard for Rhino Linux 4 | Type=Application 5 | Exec=rhino-setup 6 | Terminal=false 7 | Categories=GNOME;GTK; 8 | # Translators: Search terms to find this application. Do NOT translate or localize the semicolons! The list MUST also end with a semicolon! 9 | Keywords=Gnome;GTK; 10 | # Translators: Do NOT translate or transliterate this text (this is an icon file name)! 11 | Icon=@icon@ 12 | StartupNotify=true 13 | -------------------------------------------------------------------------------- /data/org.rhinolinux.RhinoSetup.gschema.xml.in: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 600 6 | Window width 7 | 8 | 9 | 400 10 | Window height 11 | 12 | 13 | false 14 | Window maximized state 15 | 16 | 17 | 'Yaru-purple-dark' 18 | Gtk+ Theme 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /data/resources/icons/rhinosetup-package-symbolic.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /data/resources/icons/rhinosetup-puzzle-piece-symbolic.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | -------------------------------------------------------------------------------- /data/resources/icons/rhinosetup-welcome.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /data/resources/meson.build: -------------------------------------------------------------------------------- 1 | resources = gnome.compile_resources( 2 | 'resources', 3 | 'resources.gresource.xml', 4 | gresource_bundle: true, 5 | source_dir: meson.current_build_dir(), 6 | install: true, 7 | install_dir: pkgdatadir, 8 | ) 9 | -------------------------------------------------------------------------------- /data/resources/resources.gresource.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | style.css 5 | 6 | 7 | icons/rhinosetup-welcome.svg 8 | icons/rhinosetup-package-symbolic.svg 9 | icons/rhinosetup-puzzle-piece-symbolic.svg 10 | 11 | 12 | -------------------------------------------------------------------------------- /data/resources/style.css: -------------------------------------------------------------------------------- 1 | .theme-selector { 2 | border-radius: 100px; 3 | margin: 8px; 4 | border: 1px solid rgba(145, 145, 145, 0.1); 5 | padding: 30px; 6 | } 7 | .theme-selector radio { 8 | -gtk-icon-source: none; 9 | border: none; 10 | background: none; 11 | box-shadow: none; 12 | min-width: 12px; 13 | min-height: 12px; 14 | transform: translate(34px, 20px); 15 | padding: 2px; 16 | border-radius: 100px; 17 | } 18 | .theme-selector radio:checked { 19 | -gtk-icon-source: -gtk-icontheme("object-select-symbolic"); 20 | background-color: @theme_selected_bg_color; 21 | color: @theme_selected_fg_color; 22 | } 23 | .theme-selector:checked { 24 | border-color: @theme_selected_bg_color; 25 | border-width: 2px; 26 | background-color: @theme_selected_bg_color; 27 | } 28 | .theme-selector.light { 29 | background-color: #ffffff; 30 | } 31 | .theme-selector.dark { 32 | background-color: #202020; 33 | } 34 | .theme-selector.light:checked { 35 | background-color: #eeeeee; 36 | } 37 | .theme-selector.dark:checked { 38 | background-color: #303030; 39 | } 40 | -------------------------------------------------------------------------------- /justfile: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env just --justfile 2 | 3 | # Setup development environment 4 | setup: 5 | @echo "=== Installing development dependencies ===" 6 | 7 | sudo apt install libgtk-4-dev libadwaita-1-dev -y 8 | 9 | @echo "=== Development dependencies installed! ===" 10 | 11 | @echo "=== Installing development tools ===" 12 | 13 | @echo "Installing nightly \`rustfmt\`" 14 | @rustup toolchain install nightly --component rustfmt 15 | @echo "Nightly \`rustfmt\` successfully installed!" 16 | 17 | @echo "Installing \`pre-commit\`" 18 | @pip install pre-commit 19 | @pre-commit install 20 | @echo "\`pre-commit\` hooks successfully installed!" 21 | 22 | @echo "Installing \`codespell\`" 23 | @pip install codespell 24 | @echo "\`codespell\` successfully installed!" 25 | 26 | @echo "=== Development tools installed! ===" 27 | 28 | @meson build 29 | @ninja -C build install 30 | 31 | @echo "=== Development environment installed successfully! ===" 32 | 33 | # Build the project 34 | build +ARGS="": 35 | @ninja -C build install {{ARGS}} 36 | @echo "Successfully built the project!" 37 | 38 | # Run checks 39 | check: (spellcheck "") (fmt "--check") clippy test 40 | @echo "Checks were successful!" 41 | 42 | # Test the project 43 | test +ARGS="": 44 | @cargo test --all-features --workspace {{ARGS}} 45 | 46 | # Lint the codebase 47 | clippy +ARGS="": 48 | @cargo clippy --all-targets --all-features --workspace -- --deny warnings --deny clippy::pedantic {{ARGS}} 49 | @echo Lint successful! 50 | 51 | # Format the codebase 52 | fmt +ARGS="": spellcheck 53 | @cargo +nightly fmt --all -- {{ARGS}} 54 | @echo Codebase formatted successfully! 55 | 56 | # Spellcheck the codebase 57 | spellcheck +ARGS="--write-changes": 58 | @codespell --builtin clear,rare,informal,code -I .codespellignore --skip target* "*.svg" data{{ARGS}} 59 | @echo Spellings look good! 60 | -------------------------------------------------------------------------------- /meson.build: -------------------------------------------------------------------------------- 1 | project('rhino-setup', 2 | 'rust', 3 | version: '0.2.0', 4 | meson_version: '>= 0.59.0', 5 | license: 'GPL-3.0-or-later' 6 | ) 7 | 8 | i18n = import('i18n') 9 | gnome = import('gnome') 10 | 11 | base_id = 'org.rhinolinux.RhinoSetup' 12 | 13 | dependency('glib-2.0', version: '>= 2.66') 14 | dependency('gio-2.0', version: '>= 2.66') 15 | dependency('gtk4', version: '>= 4.0.0') 16 | dependency('libadwaita-1', version: '>= 1.0.0') 17 | 18 | glib_compile_resources = find_program('glib-compile-resources', required: true) 19 | glib_compile_schemas = find_program('glib-compile-schemas', required: true) 20 | desktop_file_validate = find_program('desktop-file-validate', required: false) 21 | # appstream_util = find_program('appstream-util', required: false) 22 | cargo = find_program('cargo', required: true) 23 | find_program('gettext', required: true) 24 | 25 | version = meson.project_version() 26 | 27 | prefix = get_option('prefix') 28 | bindir = prefix / get_option('bindir') 29 | localedir = prefix / get_option('localedir') 30 | 31 | datadir = prefix / get_option('datadir') 32 | pkgdatadir = datadir / meson.project_name() 33 | iconsdir = datadir / 'icons' 34 | podir = meson.project_source_root() / 'po' 35 | gettext_package = meson.project_name() 36 | 37 | if get_option('profile') == 'development' or get_option('profile') == 'CI' 38 | profile = 'Devel' 39 | vcs_tag = run_command('git', 'rev-parse', '--short', 'HEAD', check: false).stdout().strip() 40 | if vcs_tag == '' 41 | version_suffix = '-devel' 42 | else 43 | version_suffix = '-@0@'.format(vcs_tag) 44 | endif 45 | application_id = '@0@.@1@'.format(base_id, profile) 46 | else 47 | profile = '' 48 | version_suffix = '' 49 | application_id = base_id 50 | endif 51 | 52 | if get_option('profile') != 'CI' 53 | subdir('data') 54 | endif 55 | subdir('po') 56 | subdir('src') 57 | 58 | if get_option('profile') != 'CI' 59 | gnome.post_install( 60 | glib_compile_schemas: true, 61 | gtk_update_icon_cache: true, 62 | update_desktop_database: true, 63 | ) 64 | endif 65 | -------------------------------------------------------------------------------- /meson_options.txt: -------------------------------------------------------------------------------- 1 | option( 2 | 'profile', 3 | type: 'combo', 4 | choices: [ 5 | 'default', 6 | 'development', 7 | 'CI' 8 | ], 9 | value: 'default', 10 | description: 'The build profile for Rhino Setup. One of "default", "development" or "CI".' 11 | ) 12 | -------------------------------------------------------------------------------- /po/LINGUAS: -------------------------------------------------------------------------------- 1 | ro 2 | ur 3 | id 4 | fr 5 | hi 6 | sv 7 | ko 8 | nl 9 | uk 10 | bn 11 | enm 12 | it 13 | es 14 | pt_BR 15 | de 16 | -------------------------------------------------------------------------------- /po/POTFILES.in: -------------------------------------------------------------------------------- 1 | data/org.rhinolinux.RhinoSetup.desktop.in.in 2 | data/org.rhinolinux.RhinoSetup.gschema.xml.in 3 | 4 | src/main.rs 5 | src/welcome.rs 6 | -------------------------------------------------------------------------------- /po/ar.po: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2022-present Rhino Setup Translators 2 | # This file is distributed under the same license as the rhino-setup package. 3 | # 4 | msgid "" 5 | msgstr "" 6 | "Project-Id-Version: rhino-setup 0.1.0\n" 7 | "Report-Msgid-Bugs-To: https://github.com/rhino-linux/rhino-setup/issues\n" 8 | "POT-Creation-Date: 2022-10-29 20:26+0000\n" 9 | "PO-Revision-Date: 2024-02-08 09:01+0000\n" 10 | "Last-Translator: 7A9Oo \n" 11 | "Language-Team: Arabic \n" 13 | "Language: ar\n" 14 | "MIME-Version: 1.0\n" 15 | "Content-Type: text/plain; charset=UTF-8\n" 16 | "Content-Transfer-Encoding: 8bit\n" 17 | "Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 " 18 | "&& n%100<=10 ? 3 : n%100>=11 ? 4 : 5;\n" 19 | "X-Generator: Weblate 5.4-dev\n" 20 | 21 | #: src/done.rs:56 22 | msgid "Reboot Now" 23 | msgstr "إعادة التشغيل الآن" 24 | 25 | #: src/done.rs:67 26 | msgid "Close" 27 | msgstr "غلق" 28 | 29 | #: src/done.rs:90 30 | msgid "All done!" 31 | msgstr "تمت!" 32 | 33 | #: src/done.rs:91 34 | msgid "Restart your device to enjoy your Rhino Linux experience." 35 | msgstr "أعد تشغيل الجهاز و استمتع بتجربة Rhino Linux." 36 | 37 | #: src/done.rs:108 38 | msgid "Something went wrong" 39 | msgstr "يوجد خطأ ما" 40 | 41 | #: src/done.rs:109 42 | msgid "Please contact the distribution developers." 43 | msgstr "من فضلك اتصل بمطوري التوزيعة." 44 | 45 | #: src/extra_settings.rs:47 46 | msgid "Extra Settings" 47 | msgstr "إعدادات أخرى" 48 | 49 | #: src/extra_settings.rs:48 50 | msgid "" 51 | "The following are optional settings, leave them as they are if you don't " 52 | "know what they do." 53 | msgstr "هذه إعدادات إختيارية, اتركها كماهي إذا لم تكن تعرف ماذا تفعل." 54 | 55 | #: src/extra_settings.rs:60 56 | msgid "Nala is an alternative front-end to APT, featuring a beautiful UI/UX." 57 | msgstr "Nala هي واجهة بديلة لـ APT, مع جمالية واجهة المستخدم/تجربة المستخدم." 58 | 59 | #: src/extra_settings.rs:72 60 | msgid "" 61 | "Apport is a crash reporting system that helps us improve the stability of " 62 | "the system." 63 | msgstr "Apport هو نظام تقارير الأعطال يساعدك على الحفاظ على استقرار الجهاز." 64 | 65 | #: src/extra_settings.rs:84 src/package_manager.rs:104 66 | msgid "Next" 67 | msgstr "التالي" 68 | 69 | #: src/package_manager.rs:50 70 | msgid "Package Manager" 71 | msgstr "مدير الحزم" 72 | 73 | #: src/package_manager.rs:51 74 | msgid "Choose one or more package managers to install" 75 | msgstr "اختر مدير حزم واحد أو أكثر لتثبيته" 76 | 77 | #: src/package_manager.rs:63 78 | msgid "Will also configure the Flathub repository." 79 | msgstr "سوف يقوم بتعديل مستودع Flathub." 80 | 81 | #: src/package_manager.rs:64 82 | msgid "System for application virtualization." 83 | msgstr "نظام للتطبيقات الإفتراضية." 84 | 85 | #: src/package_manager.rs:76 86 | msgid "Uses the Snapcraft repository. Default in Ubuntu." 87 | msgstr "استعمل مستودع Snapcraft. الإفتراضي على أوبنتو." 88 | 89 | #: src/package_manager.rs:77 90 | msgid "" 91 | "Software deployment and package management system developed by Canonical." 92 | msgstr "تصدير البرامج و مدير الحزم مطورة من طرف Canonical." 93 | 94 | #: src/package_manager.rs:90 95 | msgid "Will install the necessary dependencies to run AppImages." 96 | msgstr "سوف يتم تثبيت المتطلبات لتشغيل AppImages." 97 | 98 | #: src/package_manager.rs:91 99 | msgid "Self-contained and compressed executable format for the Linux platform." 100 | msgstr "تنسيق قابل للتنفيذ ومضغوط ذاتيًا لمنصة Linux." 101 | 102 | #: src/progress.rs:37 103 | msgid "The changes are being applied. Please Wait..." 104 | msgstr "يتم تطبيق التغييرات. من فضلك انتظر..." 105 | 106 | #: src/welcome.rs:44 107 | msgid "Make your choices, this wizard will take care of everything." 108 | msgstr "إتخذ قرارك, هذا الويزارد سيهتم بكل شيء." 109 | 110 | #: src/welcome.rs:46 111 | msgid "Let's Start" 112 | msgstr "فلنبدأ" 113 | 114 | #: src/main.rs:69 115 | msgid "Back" 116 | msgstr "السابق" 117 | 118 | #: src/main.rs:149 119 | msgid "Rhino Setup" 120 | msgstr "تثبيت رينو" 121 | -------------------------------------------------------------------------------- /po/bn.po: -------------------------------------------------------------------------------- 1 | # Sourajyoti Basak , 2022. 2 | msgid "" 3 | msgstr "" 4 | "Project-Id-Version: Rhino Setup\n" 5 | "Report-Msgid-Bugs-To: https://github.com/rhino-linux/rhino-setup/issues\n" 6 | "POT-Creation-Date: 2022-10-29 20:26+0000\n" 7 | "PO-Revision-Date: 2022-10-29 21:08+0000\n" 8 | "Last-Translator: Sourajyoti Basak \n" 9 | "Language-Team: Bengali \n" 11 | "Language: bn\n" 12 | "MIME-Version: 1.0\n" 13 | "Content-Type: text/plain; charset=UTF-8\n" 14 | "Content-Transfer-Encoding: 8bit\n" 15 | "Plural-Forms: nplurals=2; plural=n > 1;\n" 16 | "X-Generator: Weblate 4.14.1\n" 17 | 18 | #: src/done.rs:56 19 | msgid "Reboot Now" 20 | msgstr "রিবুট করো এখনি" 21 | 22 | #: src/done.rs:67 23 | msgid "Close" 24 | msgstr "বন্ধ" 25 | 26 | #: src/done.rs:90 27 | msgid "All done!" 28 | msgstr "সব শেষ!" 29 | 30 | #: src/done.rs:91 31 | msgid "Restart your device to enjoy your Rhino Linux experience." 32 | msgstr "" 33 | "আপনার রাইনো লিনাক্স অপারেটিং সিস্টেম উপভোগ করতে আপনার ডিভাইসটি পুনরায় চালু " 34 | "করুন।" 35 | 36 | #: src/done.rs:108 37 | msgid "Something went wrong" 38 | msgstr "কিছু ভুল হয়েছে" 39 | 40 | #: src/done.rs:109 41 | msgid "Please contact the distribution developers." 42 | msgstr "ডিস্ট্রিবিউশন ডেভেলপারদের সাথে যোগাযোগ করুন।" 43 | 44 | #: src/extra_settings.rs:47 45 | msgid "Extra Settings" 46 | msgstr "অতিরিক্ত সেটিংস" 47 | 48 | #: src/extra_settings.rs:48 49 | msgid "" 50 | "The following are optional settings, leave them as they are if you don't " 51 | "know what they do." 52 | msgstr "" 53 | "নিচের ঐচ্ছিক সেটটিংসের ব্যাপারে যদি আপনি না জানেন তাহলে সেগুলোকে যেমন আছে তেমনি " 54 | "রেখে দিন।" 55 | 56 | #: src/extra_settings.rs:60 57 | msgid "Nala is an alternative front-end to APT, featuring a beautiful UI/UX." 58 | msgstr "Nala হল APT-এর বিকল্প ফ্রন্ট-এন্ড, একটি সুন্দর UI/UX সমন্বিত।" 59 | 60 | #: src/extra_settings.rs:72 61 | msgid "" 62 | "Apport is a crash reporting system that helps us improve the stability of " 63 | "the system." 64 | msgstr "" 65 | "Apport একটি ক্র্যাশ রিপোর্টিং সিস্টেম যা আমাদের সিস্টেমের স্থিতিশীলতা উন্নত করতে " 66 | "সাহায্য করে।" 67 | 68 | #: src/extra_settings.rs:84 src/package_manager.rs:104 69 | msgid "Next" 70 | msgstr "পরবর্তী" 71 | 72 | #: src/package_manager.rs:50 73 | msgid "Package Manager" 74 | msgstr "প্যাকেজ ম্যানেজার" 75 | 76 | #: src/package_manager.rs:51 77 | msgid "Choose one or more package managers to install" 78 | msgstr "ইনস্টল করার জন্য এক বা একাধিক প্যাকেজ ম্যানেজার বেছে নিন" 79 | 80 | #: src/package_manager.rs:63 81 | msgid "Will also configure the Flathub repository." 82 | msgstr "এটি Flathub সংগ্রহস্থলও কনফিগার করবে।" 83 | 84 | #: src/package_manager.rs:64 85 | msgid "System for application virtualization." 86 | msgstr "অ্যাপ্লিকেশন ভার্চুয়ালাইজেশনের জন্য একটি সিস্টেম।" 87 | 88 | #: src/package_manager.rs:76 89 | msgid "Uses the Snapcraft repository. Default in Ubuntu." 90 | msgstr "এটি Snapcraft সংগ্রহস্থল ব্যবহার করে। এটি উবুন্টুতে ডিফল্ট।" 91 | 92 | #: src/package_manager.rs:77 93 | msgid "" 94 | "Software deployment and package management system developed by Canonical." 95 | msgstr "Canonical দ্বারা তৈরি সফ্টওয়্যার স্থাপনা এবং প্যাকেজ ব্যবস্থাপনা সিস্টেম।" 96 | 97 | #: src/package_manager.rs:90 98 | msgid "Will install the necessary dependencies to run AppImages." 99 | msgstr "এটি AppImages চালানোর জন্য প্রয়োজনীয় সফ্টওয়্যার ইনস্টল করবে।" 100 | 101 | #: src/package_manager.rs:91 102 | msgid "Self-contained and compressed executable format for the Linux platform." 103 | msgstr "Linux প্ল্যাটফর্মের জন্য স্বয়ংসম্পূর্ণ এবং সংকুচিত এক্সিকিউটেবল বিন্যাস।" 104 | 105 | #: src/progress.rs:37 106 | msgid "The changes are being applied. Please Wait..." 107 | msgstr "পরিবর্তনগুলো স্থাপন করা হচ্ছে। অনুগ্রহকরে অপেক্ষা করুন..." 108 | 109 | #: src/welcome.rs:44 110 | msgid "Make your choices, this wizard will take care of everything." 111 | msgstr "আপনি পছন্দ করুন, এই উইজার্ড সবকিছুর যত্ন নেবে।" 112 | 113 | #: src/welcome.rs:46 114 | msgid "Let's Start" 115 | msgstr "চল শুরু করি" 116 | 117 | #: src/main.rs:69 118 | msgid "Back" 119 | msgstr "পেছনে" 120 | 121 | #: src/main.rs:149 122 | msgid "Rhino Setup" 123 | msgstr "রাইনো সেটআপ" 124 | -------------------------------------------------------------------------------- /po/de.po: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2022-present Rhino Setup Translators 2 | # This file is distributed under the same license as the rhino-setup package. 3 | # 4 | msgid "" 5 | msgstr "" 6 | "Project-Id-Version: rhino-setup 0.1.0\n" 7 | "Report-Msgid-Bugs-To: https://github.com/rhino-linux/rhino-setup/issues\n" 8 | "POT-Creation-Date: 2023-8-15 18:00+2000\n" 9 | "PO-Revision-Date: 2024-01-09 13:06+0000\n" 10 | "Last-Translator: Oliver Schantz \n" 11 | "Language-Team: German \n" 13 | "Language: de\n" 14 | "MIME-Version: 1.0\n" 15 | "Content-Type: text/plain; charset=UTF-8\n" 16 | "Content-Transfer-Encoding: 8bit\n" 17 | "Plural-Forms: nplurals=2; plural=n != 1;\n" 18 | "X-Generator: Weblate 5.4-dev\n" 19 | 20 | #: src/done.rs:56 21 | msgid "Reboot Now" 22 | msgstr "Jetzt neustarten" 23 | 24 | #: src/done.rs:67 25 | msgid "Close" 26 | msgstr "Schließen" 27 | 28 | #: src/done.rs:90 29 | msgid "All done!" 30 | msgstr "Alles fertig!" 31 | 32 | #: src/done.rs:91 33 | msgid "Restart your device to enjoy your Rhino Linux experience." 34 | msgstr "" 35 | "Starten Sie Ihr Gerät neu, um von Ihrer Rhino Linux-Installation optimal zu " 36 | "profitieren." 37 | 38 | #: src/done.rs:108 39 | msgid "Something went wrong" 40 | msgstr "Etwas ging schief" 41 | 42 | #: src/done.rs:109 43 | msgid "Please contact the distribution developers." 44 | msgstr "Bitte kontaktieren Sie die Distributionsentwickler." 45 | 46 | #: src/extra_settings.rs:47 47 | msgid "Extra Settings" 48 | msgstr "Zusätzliche Einstellungen" 49 | 50 | #: src/extra_settings.rs:48 51 | msgid "The following are optional settings, leave them as they are if you don't know what they do." 52 | msgstr "" 53 | "Die folgenden Einstellungen sind optional. Lassen Sie sie unverändert, wenn " 54 | "Sie nicht wissen, was sie bewirken." 55 | 56 | #: src/extra_settings.rs:60 57 | msgid "Nala is an alternative front-end to APT, featuring a beautiful UI/UX." 58 | msgstr "" 59 | "Nala ist eine alternative Benutzeroberfläche für APT mit einer ansprechenden " 60 | "UI/UX (Benutzeroberfläche/Benutzererfahrung)." 61 | 62 | #: src/extra_settings.rs:72 63 | msgid "Apport is a crash reporting system that helps us improve the stability of the system." 64 | msgstr "Apport ist ein Absturzberichtsprogramm, welches uns hilft die Stabilität des Systems zu verbessern." 65 | 66 | #: src/extra_settings.rs:84 src/package_manager.rs:104 67 | msgid "Next" 68 | msgstr "Weiter" 69 | 70 | #: src/package_manager.rs:50 71 | msgid "Package Manager" 72 | msgstr "Paketmanager" 73 | 74 | #: src/package_manager.rs:51 75 | msgid "Choose one or more package managers to install" 76 | msgstr "Wählen Sie einen oder mehrere Paketmanager zum Installieren" 77 | 78 | #: src/package_manager.rs:63 79 | msgid "Will also configure the Flathub repository." 80 | msgstr "Wird auch das Flathub-Repository konfigurieren." 81 | 82 | #: src/package_manager.rs:64 83 | msgid "System for application virtualization." 84 | msgstr "System für die Virtualisierung von Anwendungen." 85 | 86 | #: src/package_manager.rs:76 87 | msgid "Uses the Snapcraft repository. Default in Ubuntu." 88 | msgstr "Nutzt das Snapcraft repository. Standard in Ubuntu." 89 | 90 | #: src/package_manager.rs:77 91 | msgid "Software deployment and package management system developed by Canonical." 92 | msgstr "Softwareveröffentlichung und Paketmanagementsystem entwickelt von Canonical." 93 | 94 | #: src/package_manager.rs:90 95 | msgid "Will install the necessary dependencies to run AppImages." 96 | msgstr "" 97 | "Wird die erforderlichen Abhängigkeiten installieren, um AppImages " 98 | "auszuführen." 99 | 100 | #: src/package_manager.rs:91 101 | msgid "Self-contained and compressed executable format for the Linux platform." 102 | msgstr "Komprimiertes Format für Ausführbare Dateien für Linux-Plattformen, unabhängig der Distribution." 103 | 104 | #: src/progress.rs:37 105 | msgid "The changes are being applied. Please Wait..." 106 | msgstr "Die Änderungen werden angewandt. Bitte warten Sie..." 107 | 108 | #: src/welcome.rs:44 109 | msgid "Make your choices, this wizard will take care of everything." 110 | msgstr "Treffen Sie Ihre Auswahl, dieser Assistent wird sich um alles weitere kümmern." 111 | 112 | #: src/welcome.rs:46 113 | msgid "Let's Start" 114 | msgstr "Los geht's" 115 | 116 | #: src/main.rs:69 117 | msgid "Back" 118 | msgstr "Zurück" 119 | 120 | #: src/main.rs:149 121 | msgid "Rhino Setup" 122 | msgstr "Rhino Installation" 123 | -------------------------------------------------------------------------------- /po/enm.po: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2022-present Rhino Setup Translators 2 | # This file is distributed under the same license as the rhino-setup package. 3 | # 4 | msgid "" 5 | msgstr "" 6 | "Project-Id-Version: rhino-setup 0.1.0\n" 7 | "Report-Msgid-Bugs-To: https://github.com/rhino-linux/rhino-setup/issues\n" 8 | "POT-Creation-Date: 2022-10-29 20:26+0000\n" 9 | "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 10 | "Last-Translator: Automatically generated\n" 11 | "Language-Team: none\n" 12 | "Language: enm\n" 13 | "MIME-Version: 1.0\n" 14 | "Content-Type: text/plain; charset=UTF-8\n" 15 | "Content-Transfer-Encoding: 8bit\n" 16 | 17 | #: src/done.rs:56 18 | msgid "Reboot Now" 19 | msgstr "" 20 | 21 | #: src/done.rs:67 22 | msgid "Close" 23 | msgstr "" 24 | 25 | #: src/done.rs:90 26 | msgid "All done!" 27 | msgstr "" 28 | 29 | #: src/done.rs:91 30 | msgid "Restart your device to enjoy your Rhino Linux experience." 31 | msgstr "" 32 | 33 | #: src/done.rs:108 34 | msgid "Something went wrong" 35 | msgstr "" 36 | 37 | #: src/done.rs:109 38 | msgid "Please contact the distribution developers." 39 | msgstr "" 40 | 41 | #: src/extra_settings.rs:47 42 | msgid "Extra Settings" 43 | msgstr "" 44 | 45 | #: src/extra_settings.rs:48 46 | msgid "The following are optional settings, leave them as they are if you don't know what they do." 47 | msgstr "" 48 | 49 | #: src/extra_settings.rs:60 50 | msgid "Nala is an alternative front-end to APT, featuring a beautiful UI/UX." 51 | msgstr "" 52 | 53 | #: src/extra_settings.rs:72 54 | msgid "Apport is a crash reporting system that helps us improve the stability of the system." 55 | msgstr "" 56 | 57 | #: src/extra_settings.rs:84 src/package_manager.rs:104 58 | msgid "Next" 59 | msgstr "" 60 | 61 | #: src/package_manager.rs:50 62 | msgid "Package Manager" 63 | msgstr "" 64 | 65 | #: src/package_manager.rs:51 66 | msgid "Choose one or more package managers to install" 67 | msgstr "" 68 | 69 | #: src/package_manager.rs:63 70 | msgid "Will also configure the Flathub repository." 71 | msgstr "" 72 | 73 | #: src/package_manager.rs:64 74 | msgid "System for application virtualization." 75 | msgstr "" 76 | 77 | #: src/package_manager.rs:76 78 | msgid "Uses the Snapcraft repository. Default in Ubuntu." 79 | msgstr "" 80 | 81 | #: src/package_manager.rs:77 82 | msgid "Software deployment and package management system developed by Canonical." 83 | msgstr "" 84 | 85 | #: src/package_manager.rs:90 86 | msgid "Will install the necessary dependencies to run AppImages." 87 | msgstr "" 88 | 89 | #: src/package_manager.rs:91 90 | msgid "Self-contained and compressed executable format for the Linux platform." 91 | msgstr "" 92 | 93 | #: src/progress.rs:37 94 | msgid "The changes are being applied. Please Wait..." 95 | msgstr "" 96 | 97 | #: src/welcome.rs:44 98 | msgid "Make your choices, this wizard will take care of everything." 99 | msgstr "" 100 | 101 | #: src/welcome.rs:46 102 | msgid "Let's Start" 103 | msgstr "" 104 | 105 | #: src/main.rs:69 106 | msgid "Back" 107 | msgstr "" 108 | 109 | #: src/main.rs:149 110 | msgid "Rhino Setup" 111 | msgstr "" 112 | -------------------------------------------------------------------------------- /po/es.po: -------------------------------------------------------------------------------- 1 | # Twilight is-the-best , 2022, 2023. 2 | msgid "" 3 | msgstr "" 4 | "Project-Id-Version: Rhino Setup\n" 5 | "Report-Msgid-Bugs-To: https://github.com/rhino-linux/rhino-setup/issues\n" 6 | "POT-Creation-Date: 2022-10-29 20:26+0000\n" 7 | "PO-Revision-Date: 2023-05-15 02:01+0000\n" 8 | "Last-Translator: Anonymous \n" 9 | "Language-Team: Spanish \n" 11 | "Language: es\n" 12 | "MIME-Version: 1.0\n" 13 | "Content-Type: text/plain; charset=UTF-8\n" 14 | "Content-Transfer-Encoding: 8bit\n" 15 | "Plural-Forms: nplurals=2; plural=n != 1;\n" 16 | "X-Generator: Weblate 4.17\n" 17 | 18 | #: src/done.rs:56 19 | msgid "Reboot Now" 20 | msgstr "Reiniciar Ahora" 21 | 22 | #: src/done.rs:67 23 | msgid "Close" 24 | msgstr "Cerrar" 25 | 26 | #: src/done.rs:90 27 | msgid "All done!" 28 | msgstr "¡Acabado!" 29 | 30 | #: src/done.rs:91 31 | msgid "Restart your device to enjoy your Rhino Linux experience." 32 | msgstr "" 33 | "Vuelve a prender su dispositivo para disfrutar su experiencia de Rolling " 34 | "Rhino." 35 | 36 | #: src/done.rs:108 37 | msgid "Something went wrong" 38 | msgstr "Algo ha ido mal" 39 | 40 | #: src/done.rs:109 41 | msgid "Please contact the distribution developers." 42 | msgstr "Por favor contactar a los desarolladores de la distribución." 43 | 44 | #: src/extra_settings.rs:47 45 | msgid "Extra Settings" 46 | msgstr "Ajustes Extras" 47 | 48 | #: src/extra_settings.rs:48 49 | msgid "" 50 | "The following are optional settings, leave them as they are if you don't " 51 | "know what they do." 52 | msgstr "" 53 | "Los siguientes son ajustes opcionales, déjalos como están si no sabes lo que " 54 | "hacen." 55 | 56 | #: src/extra_settings.rs:60 57 | msgid "Nala is an alternative front-end to APT, featuring a beautiful UI/UX." 58 | msgstr "Nala es un alternativo frontal a APT, con un bonito UI/UX." 59 | 60 | #: src/extra_settings.rs:72 61 | msgid "" 62 | "Apport is a crash reporting system that helps us improve the stability of " 63 | "the system." 64 | msgstr "" 65 | "Apport es un sistema de notificación de fallos que nos ayuda a mejorar la " 66 | "estabilidad del sistema." 67 | 68 | #: src/extra_settings.rs:84 src/package_manager.rs:104 69 | msgid "Next" 70 | msgstr "Próximo" 71 | 72 | #: src/package_manager.rs:50 73 | msgid "Package Manager" 74 | msgstr "Administrador de Paquetes" 75 | 76 | #: src/package_manager.rs:51 77 | msgid "Choose one or more package managers to install" 78 | msgstr "Elija uno o varios administradores de paquetes para instalar" 79 | 80 | #: src/package_manager.rs:63 81 | msgid "Will also configure the Flathub repository." 82 | msgstr "También configurará el repositorio Flathub." 83 | 84 | #: src/package_manager.rs:64 85 | msgid "System for application virtualization." 86 | msgstr "Sistema de virtualización de aplicaciones." 87 | 88 | #: src/package_manager.rs:76 89 | msgid "Uses the Snapcraft repository. Default in Ubuntu." 90 | msgstr "Utiliza el repositorio Snapcraft. Por defecto en Ubuntu." 91 | 92 | #: src/package_manager.rs:77 93 | msgid "" 94 | "Software deployment and package management system developed by Canonical." 95 | msgstr "" 96 | "Sistema de despliegue de software y gestión de paquetes desarrollado por " 97 | "Canonical." 98 | 99 | #: src/package_manager.rs:90 100 | msgid "Will install the necessary dependencies to run AppImages." 101 | msgstr "Instalará las dependencias necesarias para ejecutar AppImages." 102 | 103 | #: src/package_manager.rs:91 104 | msgid "Self-contained and compressed executable format for the Linux platform." 105 | msgstr "Formato ejecutable autocontenido y comprimido para la plataforma Linux." 106 | 107 | #: src/progress.rs:37 108 | msgid "The changes are being applied. Please Wait..." 109 | msgstr "Se están aplicando los cambios. Espere por favor..." 110 | 111 | #: src/welcome.rs:44 112 | msgid "Make your choices, this wizard will take care of everything." 113 | msgstr "Elija tú elecciones, este programa ayuda con todo." 114 | 115 | #: src/welcome.rs:46 116 | msgid "Let's Start" 117 | msgstr "Comencemos" 118 | 119 | #: src/main.rs:69 120 | msgid "Back" 121 | msgstr "Volver" 122 | 123 | #: src/main.rs:149 124 | msgid "Rhino Setup" 125 | msgstr "Configuración de Rhino" 126 | -------------------------------------------------------------------------------- /po/fr.po: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2022-present Rhino Setup Translators 2 | # This file is distributed under the same license as the rhino-setup package. 3 | # 4 | msgid "" 5 | msgstr "" 6 | "Project-Id-Version: rhino-setup 0.1.0\n" 7 | "Report-Msgid-Bugs-To: https://github.com/rhino-linux/rhino-setup/issues\n" 8 | "POT-Creation-Date: 2022-10-29 20:26+0000\n" 9 | "PO-Revision-Date: 2024-12-18 23:00+0000\n" 10 | "Last-Translator: Phantomwise \n" 11 | "Language-Team: French \n" 13 | "Language: fr\n" 14 | "MIME-Version: 1.0\n" 15 | "Content-Type: text/plain; charset=UTF-8\n" 16 | "Content-Transfer-Encoding: 8bit\n" 17 | "Plural-Forms: nplurals=2; plural=n > 1;\n" 18 | "X-Generator: Weblate 5.9.2-dev\n" 19 | 20 | #: src/done.rs:56 21 | msgid "Reboot Now" 22 | msgstr "Redémarrer Maintenant" 23 | 24 | #: src/done.rs:67 25 | msgid "Close" 26 | msgstr "Fermer" 27 | 28 | #: src/done.rs:90 29 | msgid "All done!" 30 | msgstr "Terminé !" 31 | 32 | #: src/done.rs:91 33 | msgid "Restart your device to enjoy your Rhino Linux experience." 34 | msgstr "Redémarrez votre appareil pour profiter de Rhino Linux." 35 | 36 | #: src/done.rs:108 37 | msgid "Something went wrong" 38 | msgstr "" 39 | 40 | #: src/done.rs:109 41 | msgid "Please contact the distribution developers." 42 | msgstr "Merci de contactez les développeurs de la distribution." 43 | 44 | #: src/extra_settings.rs:47 45 | msgid "Extra Settings" 46 | msgstr "Paramètres supplémentaires" 47 | 48 | #: src/extra_settings.rs:48 49 | msgid "" 50 | "The following are optional settings, leave them as they are if you don't " 51 | "know what they do." 52 | msgstr "" 53 | "Les paramètres suivants sont optionnels, laissez-les tel quel si vous " 54 | "ignorez ce qu'ils font." 55 | 56 | #: src/extra_settings.rs:60 57 | msgid "Nala is an alternative front-end to APT, featuring a beautiful UI/UX." 58 | msgstr "" 59 | 60 | #: src/extra_settings.rs:72 61 | msgid "" 62 | "Apport is a crash reporting system that helps us improve the stability of " 63 | "the system." 64 | msgstr "" 65 | "Apport est un système de rapport d'erreur qui nous aide à améliorer la " 66 | "stabilité du système." 67 | 68 | #: src/extra_settings.rs:84 src/package_manager.rs:104 69 | msgid "Next" 70 | msgstr "Suivant" 71 | 72 | #: src/package_manager.rs:50 73 | msgid "Package Manager" 74 | msgstr "Gestionnaire de paquets" 75 | 76 | #: src/package_manager.rs:51 77 | msgid "Choose one or more package managers to install" 78 | msgstr "Choisissez un ou plusieurs gestionnaires de paquets à installer" 79 | 80 | #: src/package_manager.rs:63 81 | msgid "Will also configure the Flathub repository." 82 | msgstr "Le dépôt Flathub sera également configuré." 83 | 84 | #: src/package_manager.rs:64 85 | msgid "System for application virtualization." 86 | msgstr "" 87 | 88 | #: src/package_manager.rs:76 89 | msgid "Uses the Snapcraft repository. Default in Ubuntu." 90 | msgstr "Utilise le dépôt Snapcraft. Défaut dans Ubuntu." 91 | 92 | #: src/package_manager.rs:77 93 | #, fuzzy 94 | msgid "" 95 | "Software deployment and package management system developed by Canonical." 96 | msgstr "" 97 | "Système de déploiement et de gestion de paquets développé par Canonical." 98 | 99 | #: src/package_manager.rs:90 100 | msgid "Will install the necessary dependencies to run AppImages." 101 | msgstr "Installera les dépendances nécessaires pour exécuter des AppImages." 102 | 103 | #: src/package_manager.rs:91 104 | msgid "Self-contained and compressed executable format for the Linux platform." 105 | msgstr "" 106 | 107 | #: src/progress.rs:37 108 | msgid "The changes are being applied. Please Wait..." 109 | msgstr "" 110 | "Les modifications sont en train d'être appliquées. Veuillez patienter..." 111 | 112 | #: src/welcome.rs:44 113 | msgid "Make your choices, this wizard will take care of everything." 114 | msgstr "" 115 | 116 | #: src/welcome.rs:46 117 | msgid "Let's Start" 118 | msgstr "" 119 | 120 | #: src/main.rs:69 121 | msgid "Back" 122 | msgstr "Précédent" 123 | 124 | #: src/main.rs:149 125 | msgid "Rhino Setup" 126 | msgstr "" 127 | -------------------------------------------------------------------------------- /po/hi.po: -------------------------------------------------------------------------------- 1 | # Sourajyoti Basak , 2022. 2 | msgid "" 3 | msgstr "" 4 | "Project-Id-Version: Rhino Setup\n" 5 | "Report-Msgid-Bugs-To: https://github.com/rhino-linux/rhino-setup/issues\n" 6 | "POT-Creation-Date: 2022-10-29 20:26+0000\n" 7 | "PO-Revision-Date: 2022-10-29 21:17+0000\n" 8 | "Last-Translator: Sourajyoti Basak \n" 9 | "Language-Team: Hindi \n" 11 | "Language: hi\n" 12 | "MIME-Version: 1.0\n" 13 | "Content-Type: text/plain; charset=UTF-8\n" 14 | "Content-Transfer-Encoding: 8bit\n" 15 | "Plural-Forms: nplurals=2; plural=n > 1;\n" 16 | "X-Generator: Weblate 4.14.1\n" 17 | 18 | #: src/done.rs:56 19 | msgid "Reboot Now" 20 | msgstr "अब रिबूट करें" 21 | 22 | #: src/done.rs:67 23 | msgid "Close" 24 | msgstr "बंद" 25 | 26 | #: src/done.rs:90 27 | msgid "All done!" 28 | msgstr "सबकुछ हो चुका है!" 29 | 30 | #: src/done.rs:91 31 | msgid "Restart your device to enjoy your Rhino Linux experience." 32 | msgstr "" 33 | "अपने राइनो लिनक्स ऑपरेटिंग सिस्टम का आनंद लेने के लिए अपने डिवाइस को रीबूट " 34 | "करें।" 35 | 36 | #: src/done.rs:108 37 | msgid "Something went wrong" 38 | msgstr "कुछ गलत हो गया" 39 | 40 | #: src/done.rs:109 41 | msgid "Please contact the distribution developers." 42 | msgstr "कृपया डिस्ट्रीब्यूशन डेवलपर्स से संपर्क करें।" 43 | 44 | #: src/extra_settings.rs:47 45 | msgid "Extra Settings" 46 | msgstr "अतिरिक्त सेटिंग्स" 47 | 48 | #: src/extra_settings.rs:48 49 | msgid "" 50 | "The following are optional settings, leave them as they are if you don't " 51 | "know what they do." 52 | msgstr "" 53 | "यदि आप निम्न वैकल्पिक सेटिंग्स के बारे में नहीं जानते हैं, तो उन्हें वैसे ही रहने दें जैसे वे हैं।" 54 | 55 | #: src/extra_settings.rs:60 56 | msgid "Nala is an alternative front-end to APT, featuring a beautiful UI/UX." 57 | msgstr "Nala APT का एक वैकल्पिक फ्रंट-एंड है, जिसमें एक सुंदर UI/UX है।" 58 | 59 | #: src/extra_settings.rs:72 60 | msgid "" 61 | "Apport is a crash reporting system that helps us improve the stability of " 62 | "the system." 63 | msgstr "" 64 | "Apport एक क्रैश रिपोर्टिंग सिस्टम है जो सिस्टम की स्थिरता को बेहतर बनाने में हमारी मदद " 65 | "करता है।" 66 | 67 | #: src/extra_settings.rs:84 src/package_manager.rs:104 68 | msgid "Next" 69 | msgstr "अगला" 70 | 71 | #: src/package_manager.rs:50 72 | msgid "Package Manager" 73 | msgstr "पैकेज प्रबंधक" 74 | 75 | #: src/package_manager.rs:51 76 | msgid "Choose one or more package managers to install" 77 | msgstr "इंस्टॉल करने के लिए एक या अधिक पैकेज प्रबंधकों का चयन करें" 78 | 79 | #: src/package_manager.rs:63 80 | msgid "Will also configure the Flathub repository." 81 | msgstr "यह Flathub रिपॉजिटरी को भी कॉन्फ़िगर करेगा।" 82 | 83 | #: src/package_manager.rs:64 84 | msgid "System for application virtualization." 85 | msgstr "एप्लीकेशन वर्चुअलाइजेशन के लिए एक सिस्टम।" 86 | 87 | #: src/package_manager.rs:76 88 | msgid "Uses the Snapcraft repository. Default in Ubuntu." 89 | msgstr "এটি Snapcraft সংগ্রহস্থল ব্যবহার করে। এটি উবুন্টুতে ডিফল্ট।" 90 | 91 | #: src/package_manager.rs:77 92 | msgid "" 93 | "Software deployment and package management system developed by Canonical." 94 | msgstr "Canonical द्वारा विकसित सॉफ्टवेयर परिनियोजन और पैकेज प्रबंधन प्रणाली।" 95 | 96 | #: src/package_manager.rs:90 97 | msgid "Will install the necessary dependencies to run AppImages." 98 | msgstr "यह AppImages को चलाने के लिए आवश्यक सॉफ़्टवेयर इंस्टॉल करेगा।" 99 | 100 | #: src/package_manager.rs:91 101 | msgid "Self-contained and compressed executable format for the Linux platform." 102 | msgstr "Linux प्लेटफॉर्म के लिए स्व-निहित और संपीड़ित निष्पादन योग्य प्रारूप।" 103 | 104 | #: src/progress.rs:37 105 | msgid "The changes are being applied. Please Wait..." 106 | msgstr "परिवर्तन लागू किए जा रहे हैं। कृपया प्रतीक्षा करें..." 107 | 108 | #: src/welcome.rs:44 109 | msgid "Make your choices, this wizard will take care of everything." 110 | msgstr "अपने चुनाव करें, यह सॉफ्टवेयर सब कुछ संभाल लेगा।" 111 | 112 | #: src/welcome.rs:46 113 | msgid "Let's Start" 114 | msgstr "चलो शुरू करते हैं" 115 | 116 | #: src/main.rs:69 117 | msgid "Back" 118 | msgstr "पीछे" 119 | 120 | #: src/main.rs:149 121 | msgid "Rhino Setup" 122 | msgstr "राइनो सेटअप" 123 | -------------------------------------------------------------------------------- /po/id.po: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2022-present Rhino Setup Translators 2 | # This file is distributed under the same license as the rhino-setup package. 3 | # 4 | msgid "" 5 | msgstr "" 6 | "Project-Id-Version: rhino-setup 0.1.0\n" 7 | "Report-Msgid-Bugs-To: https://github.com/rhino-linux/rhino-setup/issues\n" 8 | "POT-Creation-Date: 2022-10-29 20:26+0000\n" 9 | "PO-Revision-Date: 2023-10-06 01:11+0000\n" 10 | "Last-Translator: Reza Almanda \n" 11 | "Language-Team: Indonesian \n" 13 | "Language: id\n" 14 | "MIME-Version: 1.0\n" 15 | "Content-Type: text/plain; charset=UTF-8\n" 16 | "Content-Transfer-Encoding: 8bit\n" 17 | "Plural-Forms: nplurals=1; plural=0;\n" 18 | "X-Generator: Weblate 5.1-dev\n" 19 | 20 | #: src/done.rs:56 21 | msgid "Reboot Now" 22 | msgstr "Mulai Ulang Sekarang" 23 | 24 | #: src/done.rs:67 25 | msgid "Close" 26 | msgstr "Tutup" 27 | 28 | #: src/done.rs:90 29 | msgid "All done!" 30 | msgstr "Semua beres!" 31 | 32 | #: src/done.rs:91 33 | msgid "Restart your device to enjoy your Rhino Linux experience." 34 | msgstr "Hidupkan ulang perangkat Anda untuk menikmati pengalaman Rhino Linux." 35 | 36 | #: src/done.rs:108 37 | msgid "Something went wrong" 38 | msgstr "Ada yang tidak beres" 39 | 40 | #: src/done.rs:109 41 | msgid "Please contact the distribution developers." 42 | msgstr "Silahkan hubungi pengembang distribusi." 43 | 44 | #: src/extra_settings.rs:47 45 | msgid "Extra Settings" 46 | msgstr "Pengaturan Ekstra" 47 | 48 | #: src/extra_settings.rs:48 49 | msgid "The following are optional settings, leave them as they are if you don't know what they do." 50 | msgstr "" 51 | "Berikut ini adalah pengaturan opsional, biarkan apa adanya jika Anda tidak " 52 | "tahu apa fungsinya." 53 | 54 | #: src/extra_settings.rs:60 55 | msgid "Nala is an alternative front-end to APT, featuring a beautiful UI/UX." 56 | msgstr "" 57 | "Nala adalah front-end alternatif untuk APT, menampilkan UI/UX yang indah." 58 | 59 | #: src/extra_settings.rs:72 60 | msgid "Apport is a crash reporting system that helps us improve the stability of the system." 61 | msgstr "" 62 | "Apport adalah sistem pelaporan kerusakan yang membantu kami meningkatkan " 63 | "stabilitas sistem." 64 | 65 | #: src/extra_settings.rs:84 src/package_manager.rs:104 66 | msgid "Next" 67 | msgstr "Berikutnya" 68 | 69 | #: src/package_manager.rs:50 70 | msgid "Package Manager" 71 | msgstr "Manajer Paket" 72 | 73 | #: src/package_manager.rs:51 74 | msgid "Choose one or more package managers to install" 75 | msgstr "Pilih satu atau lebih manajer paket untuk menginstal" 76 | 77 | #: src/package_manager.rs:63 78 | msgid "Will also configure the Flathub repository." 79 | msgstr "Juga akan mengonfigurasi repositori Flathub." 80 | 81 | #: src/package_manager.rs:64 82 | msgid "System for application virtualization." 83 | msgstr "Sistem untuk virtualisasi aplikasi." 84 | 85 | #: src/package_manager.rs:76 86 | msgid "Uses the Snapcraft repository. Default in Ubuntu." 87 | msgstr "Menggunakan repositori Snapcraft. Default di Ubuntu." 88 | 89 | #: src/package_manager.rs:77 90 | msgid "Software deployment and package management system developed by Canonical." 91 | msgstr "" 92 | "Penyebaran perangkat lunak dan sistem manajemen paket yang dikembangkan oleh " 93 | "Canonical." 94 | 95 | #: src/package_manager.rs:90 96 | msgid "Will install the necessary dependencies to run AppImages." 97 | msgstr "Akan memasang dependensi yang diperlukan untuk menjalankan AppImages." 98 | 99 | #: src/package_manager.rs:91 100 | msgid "Self-contained and compressed executable format for the Linux platform." 101 | msgstr "" 102 | "Format yang dapat dieksekusi mandiri dan terkompresi untuk platform Linux." 103 | 104 | #: src/progress.rs:37 105 | msgid "The changes are being applied. Please Wait..." 106 | msgstr "Perubahan sedang diterapkan. Mohon Tunggu..." 107 | 108 | #: src/welcome.rs:44 109 | msgid "Make your choices, this wizard will take care of everything." 110 | msgstr "Tentukan pilihan Anda, wizard ini akan mengurus semuanya." 111 | 112 | #: src/welcome.rs:46 113 | msgid "Let's Start" 114 | msgstr "Mari Mulai" 115 | 116 | #: src/main.rs:69 117 | msgid "Back" 118 | msgstr "Kembali" 119 | 120 | #: src/main.rs:149 121 | msgid "Rhino Setup" 122 | msgstr "Setup Rhino" 123 | -------------------------------------------------------------------------------- /po/ie.po: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2022-present Rhino Setup Translators 2 | # This file is distributed under the same license as the rhino-setup package. 3 | # 4 | msgid "" 5 | msgstr "" 6 | "Project-Id-Version: rhino-setup 0.1.0\n" 7 | "Report-Msgid-Bugs-To: https://github.com/rhino-linux/rhino-setup/issues\n" 8 | "POT-Creation-Date: 2022-10-29 20:26+0000\n" 9 | "PO-Revision-Date: 2023-08-18 05:26+0000\n" 10 | "Last-Translator: OIS \n" 11 | "Language-Team: Occidental \n" 13 | "Language: ie\n" 14 | "MIME-Version: 1.0\n" 15 | "Content-Type: text/plain; charset=UTF-8\n" 16 | "Content-Transfer-Encoding: 8bit\n" 17 | "Plural-Forms: nplurals=2; plural=n != 1;\n" 18 | "X-Generator: Weblate 5.0-dev\n" 19 | 20 | #: src/done.rs:56 21 | msgid "Reboot Now" 22 | msgstr "Reiniciar nu" 23 | 24 | #: src/done.rs:67 25 | msgid "Close" 26 | msgstr "Cluder" 27 | 28 | #: src/done.rs:90 29 | msgid "All done!" 30 | msgstr "Finit!" 31 | 32 | #: src/done.rs:91 33 | msgid "Restart your device to enjoy your Rhino Linux experience." 34 | msgstr "Reinicia vor aparate por experir Rhino Linux." 35 | 36 | #: src/done.rs:108 37 | msgid "Something went wrong" 38 | msgstr "Alquó ha fallit" 39 | 40 | #: src/done.rs:109 41 | msgid "Please contact the distribution developers." 42 | msgstr "Ples contacter li developatores del distribution." 43 | 44 | #: src/extra_settings.rs:47 45 | msgid "Extra Settings" 46 | msgstr "Plu parametres" 47 | 48 | #: src/extra_settings.rs:48 49 | msgid "The following are optional settings, leave them as they are if you don't know what they do." 50 | msgstr "Facultativ parametres seque, ne tucha les si vu ne save quo ili fa." 51 | 52 | #: src/extra_settings.rs:60 53 | msgid "Nala is an alternative front-end to APT, featuring a beautiful UI/UX." 54 | msgstr "Nala es un alternativ interfacie de APT, con un bell IdU/EdU." 55 | 56 | #: src/extra_settings.rs:72 57 | msgid "Apport is a crash reporting system that helps us improve the stability of the system." 58 | msgstr "" 59 | "Apport es un sistema de raportation de fracasses, quel assiste nos ameliorar " 60 | "li stabilitá del sistema." 61 | 62 | #: src/extra_settings.rs:84 src/package_manager.rs:104 63 | msgid "Next" 64 | msgstr "Avan" 65 | 66 | #: src/package_manager.rs:50 67 | msgid "Package Manager" 68 | msgstr "Gerente de paccages" 69 | 70 | #: src/package_manager.rs:51 71 | msgid "Choose one or more package managers to install" 72 | msgstr "Selecte ún o plu de gerentes de paccages a installar" 73 | 74 | #: src/package_manager.rs:63 75 | msgid "Will also configure the Flathub repository." 76 | msgstr "Anc va configurar li repositoria Flathub." 77 | 78 | #: src/package_manager.rs:64 79 | msgid "System for application virtualization." 80 | msgstr "Sistema de virtualisation de applicationes." 81 | 82 | #: src/package_manager.rs:76 83 | msgid "Uses the Snapcraft repository. Default in Ubuntu." 84 | msgstr "Usa li repositoria Snapcraft. Predefinit in Ubuntu." 85 | 86 | #: src/package_manager.rs:77 87 | msgid "Software deployment and package management system developed by Canonical." 88 | msgstr "Un sistema de expedition e gerente de paccages developat de Canonical." 89 | 90 | #: src/package_manager.rs:90 91 | msgid "Will install the necessary dependencies to run AppImages." 92 | msgstr "Va installar li besonat dependenties por executer AppImages." 93 | 94 | #: src/package_manager.rs:91 95 | msgid "Self-contained and compressed executable format for the Linux platform." 96 | msgstr "" 97 | "Self-contenet e compresset formate de executibiles por li platforma Linux." 98 | 99 | #: src/progress.rs:37 100 | msgid "The changes are being applied. Please Wait..." 101 | msgstr "Li modificationes ea applicat. Ples atender…" 102 | 103 | #: src/welcome.rs:44 104 | msgid "Make your choices, this wizard will take care of everything." 105 | msgstr "Fa vor selectiones, e li assistente va far omnicos." 106 | 107 | #: src/welcome.rs:46 108 | msgid "Let's Start" 109 | msgstr "Lass nos comensar" 110 | 111 | #: src/main.rs:69 112 | msgid "Back" 113 | msgstr "Retro" 114 | 115 | #: src/main.rs:149 116 | msgid "Rhino Setup" 117 | msgstr "Configuration de Rhino" 118 | -------------------------------------------------------------------------------- /po/it.po: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2022-present Rhino Setup Translators 2 | # This file is distributed under the same license as the rhino-setup package. 3 | # 4 | msgid "" 5 | msgstr "" 6 | "Project-Id-Version: rhino-setup 0.1.0\n" 7 | "Report-Msgid-Bugs-To: https://github.com/rhino-linux/rhino-setup/issues\n" 8 | "POT-Creation-Date: 2022-10-29 20:26+0000\n" 9 | "PO-Revision-Date: 2024-06-04 16:09+0000\n" 10 | "Last-Translator: Dario \n" 11 | "Language-Team: Italian \n" 13 | "Language: it\n" 14 | "MIME-Version: 1.0\n" 15 | "Content-Type: text/plain; charset=UTF-8\n" 16 | "Content-Transfer-Encoding: 8bit\n" 17 | "Plural-Forms: nplurals=2; plural=n != 1;\n" 18 | "X-Generator: Weblate 5.6-dev\n" 19 | 20 | #: src/done.rs:56 21 | msgid "Reboot Now" 22 | msgstr "Riavvia Ora" 23 | 24 | #: src/done.rs:67 25 | msgid "Close" 26 | msgstr "Chiudi" 27 | 28 | #: src/done.rs:90 29 | msgid "All done!" 30 | msgstr "Completato!" 31 | 32 | #: src/done.rs:91 33 | msgid "Restart your device to enjoy your Rhino Linux experience." 34 | msgstr "Riavvia il dispositivo per goderti il tuo nuovo Rhino Linux." 35 | 36 | #: src/done.rs:108 37 | msgid "Something went wrong" 38 | msgstr "Qualcosa non ha funzionato" 39 | 40 | #: src/done.rs:109 41 | msgid "Please contact the distribution developers." 42 | msgstr "Per favore contatta gli sviluppatori." 43 | 44 | #: src/extra_settings.rs:47 45 | msgid "Extra Settings" 46 | msgstr "Impostazioni Aggiuntive" 47 | 48 | #: src/extra_settings.rs:48 49 | msgid "The following are optional settings, leave them as they are if you don't know what they do." 50 | msgstr "" 51 | "Le impostazioni seguenti sono opzionali, non modificare nulla se non sai " 52 | "cosa stai facendo." 53 | 54 | #: src/extra_settings.rs:60 55 | msgid "Nala is an alternative front-end to APT, featuring a beautiful UI/UX." 56 | msgstr "Nala è un'interfaccia alternativa per APT, con una bellissima UI/UX." 57 | 58 | #: src/extra_settings.rs:72 59 | msgid "Apport is a crash reporting system that helps us improve the stability of the system." 60 | msgstr "" 61 | "Apport è un sistema di crash report che ci aiuta a migliorare la stabilità " 62 | "del sistema." 63 | 64 | #: src/extra_settings.rs:84 src/package_manager.rs:104 65 | msgid "Next" 66 | msgstr "Prossimo" 67 | 68 | #: src/package_manager.rs:50 69 | msgid "Package Manager" 70 | msgstr "Gestore Pacchetti" 71 | 72 | #: src/package_manager.rs:51 73 | msgid "Choose one or more package managers to install" 74 | msgstr "Scegli uno o più gestori pacchetti da installare" 75 | 76 | #: src/package_manager.rs:63 77 | msgid "Will also configure the Flathub repository." 78 | msgstr "Verrà configurato anche un repository Flathub." 79 | 80 | #: src/package_manager.rs:64 81 | msgid "System for application virtualization." 82 | msgstr "Sistema di virtualizzazione applicazioni." 83 | 84 | #: src/package_manager.rs:76 85 | msgid "Uses the Snapcraft repository. Default in Ubuntu." 86 | msgstr "Usa i repository di Snapcraft. Opzione predefinita in Ubuntu." 87 | 88 | #: src/package_manager.rs:77 89 | msgid "Software deployment and package management system developed by Canonical." 90 | msgstr "" 91 | "Sistema di installazione software e gestione pacchetti sviluppato da " 92 | "Canonical." 93 | 94 | #: src/package_manager.rs:90 95 | msgid "Will install the necessary dependencies to run AppImages." 96 | msgstr "Verranno installate le dipendenze necessarie per eseguire AppImages." 97 | 98 | #: src/package_manager.rs:91 99 | msgid "Self-contained and compressed executable format for the Linux platform." 100 | msgstr "Formato eseguibile autonomo e compresso per la piattaforma Linux." 101 | 102 | #: src/progress.rs:37 103 | msgid "The changes are being applied. Please Wait..." 104 | msgstr "Attendi mentre vengono apportate le modifiche." 105 | 106 | #: src/welcome.rs:44 107 | msgid "Make your choices, this wizard will take care of everything." 108 | msgstr "Fai la tua scelta, questa procedura si prenderà cura di tutto il resto." 109 | 110 | #: src/welcome.rs:46 111 | msgid "Let's Start" 112 | msgstr "Iniziamo" 113 | 114 | #: src/main.rs:69 115 | msgid "Back" 116 | msgstr "Indietro" 117 | 118 | #: src/main.rs:149 119 | msgid "Rhino Setup" 120 | msgstr "Setup di Rhino" 121 | -------------------------------------------------------------------------------- /po/ka.po: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2022-present Rhino Setup Translators 2 | # This file is distributed under the same license as the rhino-setup package. 3 | # 4 | msgid "" 5 | msgstr "" 6 | "Project-Id-Version: rhino-setup 0.1.0\n" 7 | "Report-Msgid-Bugs-To: https://github.com/rhino-linux/rhino-setup/issues\n" 8 | "POT-Creation-Date: 2022-10-29 20:26+0000\n" 9 | "PO-Revision-Date: 2024-10-27 03:16+0000\n" 10 | "Last-Translator: Temuri Doghonadze \n" 11 | "Language-Team: Georgian \n" 13 | "Language: ka\n" 14 | "MIME-Version: 1.0\n" 15 | "Content-Type: text/plain; charset=UTF-8\n" 16 | "Content-Transfer-Encoding: 8bit\n" 17 | "Plural-Forms: nplurals=2; plural=n != 1;\n" 18 | "X-Generator: Weblate 5.8.2-dev\n" 19 | 20 | #: src/done.rs:56 21 | msgid "Reboot Now" 22 | msgstr "ახლა გადატვირთვა" 23 | 24 | #: src/done.rs:67 25 | msgid "Close" 26 | msgstr "დახურვა" 27 | 28 | #: src/done.rs:90 29 | msgid "All done!" 30 | msgstr "ყველაფერი მზადაა!" 31 | 32 | #: src/done.rs:91 33 | msgid "Restart your device to enjoy your Rhino Linux experience." 34 | msgstr "გადატვირთეთ თქვენი მოწყობილობა, რომ Rhino Linux-ით სიამოვნება დაიწყოთ." 35 | 36 | #: src/done.rs:108 37 | msgid "Something went wrong" 38 | msgstr "რაღაც არასწორია" 39 | 40 | #: src/done.rs:109 41 | msgid "Please contact the distribution developers." 42 | msgstr "დაუკავშირდით დისტრიბუტივის პროგრამისტებს." 43 | 44 | #: src/extra_settings.rs:47 45 | msgid "Extra Settings" 46 | msgstr "დამატებითი პარამეტრები" 47 | 48 | #: src/extra_settings.rs:48 49 | msgid "" 50 | "The following are optional settings, leave them as they are if you don't " 51 | "know what they do." 52 | msgstr "" 53 | "ესენი არასავალდებულო პარამეტრებია. დატოვეთ ისინი, როგორცაა, თუ არ იცით, ვინ " 54 | "არიან და რასთან ერთად იჭმება." 55 | 56 | #: src/extra_settings.rs:60 57 | msgid "Nala is an alternative front-end to APT, featuring a beautiful UI/UX." 58 | msgstr "Nala წარმოადგენს APT-ის წინაბოლოს, ლამაზი ინტერფეისით." 59 | 60 | #: src/extra_settings.rs:72 61 | msgid "" 62 | "Apport is a crash reporting system that helps us improve the stability of " 63 | "the system." 64 | msgstr "" 65 | "Apport ავარიების შესახებ ანგარიშების სისტემაა, რომელიც სისტემის სტაბილურობის " 66 | "გაუმჯობესებაში გვეხმარება." 67 | 68 | #: src/extra_settings.rs:84 src/package_manager.rs:104 69 | msgid "Next" 70 | msgstr "შემდეგი" 71 | 72 | #: src/package_manager.rs:50 73 | msgid "Package Manager" 74 | msgstr "პაკეტების მმართველი" 75 | 76 | #: src/package_manager.rs:51 77 | msgid "Choose one or more package managers to install" 78 | msgstr "აირჩიეთ ერთი ან მეტი პაკეტების მმართველი დასაყენებლად" 79 | 80 | #: src/package_manager.rs:63 81 | msgid "Will also configure the Flathub repository." 82 | msgstr "ასევე მოირგებს Flathub-ის რეპოზიტორიას." 83 | 84 | #: src/package_manager.rs:64 85 | msgid "System for application virtualization." 86 | msgstr "სისტემა აპლიკაციის ვირტუალიზაციისთვის." 87 | 88 | #: src/package_manager.rs:76 89 | msgid "Uses the Snapcraft repository. Default in Ubuntu." 90 | msgstr "ინებეს Snapcraft-ის რეპოზიტორიას. ნაგულისხმევია Ubuntu-ში." 91 | 92 | #: src/package_manager.rs:77 93 | msgid "" 94 | "Software deployment and package management system developed by Canonical." 95 | msgstr "" 96 | "Canonical-ის მიერ შემუშავებული პროგრამების მართვისა და პაკეტების მართვის " 97 | "სისტემა." 98 | 99 | #: src/package_manager.rs:90 100 | msgid "Will install the necessary dependencies to run AppImages." 101 | msgstr "დააყენებს საჭირო დამოკიდებულებებს, რომ AppImage-ები გაუშვათ." 102 | 103 | #: src/package_manager.rs:91 104 | msgid "Self-contained and compressed executable format for the Linux platform." 105 | msgstr "თვითშემცველი და შეკუმშული გამშვები ფორმატი Linux პლატფორმისთვის." 106 | 107 | #: src/progress.rs:37 108 | msgid "The changes are being applied. Please Wait..." 109 | msgstr "მიმდინარეობს ცვლილებების გადატარება. მოითმინეთ..." 110 | 111 | #: src/welcome.rs:44 112 | msgid "Make your choices, this wizard will take care of everything." 113 | msgstr "გააკეთეთ არჩევანი, ოსტატი ყველაფერს მიხედავს." 114 | 115 | #: src/welcome.rs:46 116 | msgid "Let's Start" 117 | msgstr "დავიწყოთ" 118 | 119 | #: src/main.rs:69 120 | msgid "Back" 121 | msgstr "უკან" 122 | 123 | #: src/main.rs:149 124 | msgid "Rhino Setup" 125 | msgstr "Rhino-ის მორგება" 126 | -------------------------------------------------------------------------------- /po/ko.po: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2022-present Rhino Setup Translators 2 | # This file is distributed under the same license as the rhino-setup package. 3 | # 4 | # Sourajyoti Basak , 2023. 5 | # DtotheFuture , 2023. 6 | msgid "" 7 | msgstr "" 8 | "Project-Id-Version: rhino-setup 0.1.0\n" 9 | "Report-Msgid-Bugs-To: https://github.com/rhino-linux/rhino-setup/issues\n" 10 | "POT-Creation-Date: 2022-10-29 20:26+0000\n" 11 | "PO-Revision-Date: 2023-08-18 05:04+0000\n" 12 | "Last-Translator: DtotheFuture \n" 13 | "Language-Team: Korean \n" 15 | "Language: ko\n" 16 | "MIME-Version: 1.0\n" 17 | "Content-Type: text/plain; charset=UTF-8\n" 18 | "Content-Transfer-Encoding: 8bit\n" 19 | "Plural-Forms: nplurals=1; plural=0;\n" 20 | "X-Generator: Weblate 5.0-dev\n" 21 | 22 | #: src/done.rs:56 23 | msgid "Reboot Now" 24 | msgstr "지금 재시작" 25 | 26 | #: src/done.rs:67 27 | msgid "Close" 28 | msgstr "닫기" 29 | 30 | #: src/done.rs:90 31 | msgid "All done!" 32 | msgstr "모두 끝났습니다!" 33 | 34 | #: src/done.rs:91 35 | msgid "Restart your device to enjoy your Rhino Linux experience." 36 | msgstr "Rhino Linux 경험을 즐기기 위해서 장치를 다시 시작해주세요." 37 | 38 | #: src/done.rs:108 39 | msgid "Something went wrong" 40 | msgstr "문제가 발생했습니다" 41 | 42 | #: src/done.rs:109 43 | msgid "Please contact the distribution developers." 44 | msgstr "배포판 개발자에게 문의하세요." 45 | 46 | #: src/extra_settings.rs:47 47 | msgid "Extra Settings" 48 | msgstr "추가 설정" 49 | 50 | #: src/extra_settings.rs:48 51 | msgid "The following are optional settings, leave them as they are if you don't know what they do." 52 | msgstr "다음은 선택적 설정이며, 그것들이 어떤 작업을 수행하는지 모르는 경우 그대로 " 53 | "두세요." 54 | 55 | #: src/extra_settings.rs:60 56 | msgid "Nala is an alternative front-end to APT, featuring a beautiful UI/UX." 57 | msgstr "Nala는 아름다운 UI/UX를 특징으로 하는 APT의 대체 프론트 엔드입니다." 58 | 59 | #: src/extra_settings.rs:72 60 | msgid "Apport is a crash reporting system that helps us improve the stability of the system." 61 | msgstr "Apport는 시스템의 안정성을 개선하는 데 도움이 되는 충돌 보고 시스템입니다." 62 | 63 | #: src/extra_settings.rs:84 src/package_manager.rs:104 64 | msgid "Next" 65 | msgstr "다음" 66 | 67 | #: src/package_manager.rs:50 68 | msgid "Package Manager" 69 | msgstr "패키지 관리자" 70 | 71 | #: src/package_manager.rs:51 72 | msgid "Choose one or more package managers to install" 73 | msgstr "설치할 하나 이상의 패키지 관리자를 선택해주세요" 74 | 75 | #: src/package_manager.rs:63 76 | msgid "Will also configure the Flathub repository." 77 | msgstr "Flathub 저장소를 설정합니다." 78 | 79 | #: src/package_manager.rs:64 80 | msgid "System for application virtualization." 81 | msgstr "애플리케이션 가상화를 위한 시스템." 82 | 83 | #: src/package_manager.rs:76 84 | msgid "Uses the Snapcraft repository. Default in Ubuntu." 85 | msgstr "Snapcraft 저장소를 사용합니다. Ubuntu의 기본값입니다." 86 | 87 | #: src/package_manager.rs:77 88 | msgid "Software deployment and package management system developed by Canonical." 89 | msgstr "Canonical에서 개발한 소프트웨어 배포 및 패키지 관리 시스템입니다." 90 | 91 | #: src/package_manager.rs:90 92 | msgid "Will install the necessary dependencies to run AppImages." 93 | msgstr "AppImages를 실행하는 데 필요한 종속성을 설치합니다." 94 | 95 | #: src/package_manager.rs:91 96 | msgid "Self-contained and compressed executable format for the Linux platform." 97 | msgstr "Linux 플랫폼을 위한 독립적이고 압축된 실행 가능한 형식입니다." 98 | 99 | #: src/progress.rs:37 100 | msgid "The changes are being applied. Please Wait..." 101 | msgstr "변경 사항이 적용되고 있습니다. 잠시 기다려주세요..." 102 | 103 | #: src/welcome.rs:44 104 | msgid "Make your choices, this wizard will take care of everything." 105 | msgstr "선택만 하면 마법사가 모든 것을 알아서 처리합니다." 106 | 107 | #: src/welcome.rs:46 108 | msgid "Let's Start" 109 | msgstr "시작하기" 110 | 111 | #: src/main.rs:69 112 | msgid "Back" 113 | msgstr "뒤로" 114 | 115 | #: src/main.rs:149 116 | msgid "Rhino Setup" 117 | msgstr "Rhino 설정" 118 | -------------------------------------------------------------------------------- /po/meson.build: -------------------------------------------------------------------------------- 1 | i18n.gettext(gettext_package, preset: 'glib') 2 | -------------------------------------------------------------------------------- /po/nl.po: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2022-present Rhino Setup Translators 2 | # This file is distributed under the same license as the rhino-setup package. 3 | # 4 | # Heimen Stoffels , 2023. 5 | msgid "" 6 | msgstr "" 7 | "Project-Id-Version: rhino-setup 0.1.0\n" 8 | "Report-Msgid-Bugs-To: https://github.com/rhino-linux/rhino-setup/issues\n" 9 | "POT-Creation-Date: 2022-10-29 20:26+0000\n" 10 | "PO-Revision-Date: 2023-02-27 00:53+0000\n" 11 | "Last-Translator: Heimen Stoffels \n" 12 | "Language-Team: Dutch \n" 14 | "Language: nl\n" 15 | "MIME-Version: 1.0\n" 16 | "Content-Type: text/plain; charset=UTF-8\n" 17 | "Content-Transfer-Encoding: 8bit\n" 18 | "Plural-Forms: nplurals=2; plural=n != 1;\n" 19 | "X-Generator: Weblate 4.15.2\n" 20 | 21 | #: src/done.rs:56 22 | msgid "Reboot Now" 23 | msgstr "Nu herstarten" 24 | 25 | #: src/done.rs:67 26 | msgid "Close" 27 | msgstr "Sluiten" 28 | 29 | #: src/done.rs:90 30 | msgid "All done!" 31 | msgstr "Voltooid!" 32 | 33 | #: src/done.rs:91 34 | msgid "Restart your device to enjoy your Rhino Linux experience." 35 | msgstr "Herstart uw apparaat om Rhino Linux te kunnen gebruiken." 36 | 37 | #: src/done.rs:108 38 | msgid "Something went wrong" 39 | msgstr "Er is iets misgegaan" 40 | 41 | #: src/done.rs:109 42 | msgid "Please contact the distribution developers." 43 | msgstr "Neem contact op met de ontwikkelaars." 44 | 45 | #: src/extra_settings.rs:47 46 | msgid "Extra Settings" 47 | msgstr "Aanvullende voorkeuren" 48 | 49 | #: src/extra_settings.rs:48 50 | msgid "" 51 | "The following are optional settings, leave them as they are if you don't " 52 | "know what they do." 53 | msgstr "" 54 | "De volgende voorkeuren zijn optioneel. Laat ze bij twijfel op de " 55 | "standaardwaarden staan." 56 | 57 | #: src/extra_settings.rs:60 58 | msgid "Nala is an alternative front-end to APT, featuring a beautiful UI/UX." 59 | msgstr "Nala is een alternatief frontend voor APT met een mooiere vormgeving." 60 | 61 | #: src/extra_settings.rs:72 62 | msgid "" 63 | "Apport is a crash reporting system that helps us improve the stability of " 64 | "the system." 65 | msgstr "" 66 | "Apport is een crashmeldingssysteem die ons helpt om de stabiliteit van het " 67 | "systeem te verbeteren." 68 | 69 | #: src/extra_settings.rs:84 src/package_manager.rs:104 70 | msgid "Next" 71 | msgstr "Volgende" 72 | 73 | #: src/package_manager.rs:50 74 | msgid "Package Manager" 75 | msgstr "Pakketbeheer" 76 | 77 | #: src/package_manager.rs:51 78 | msgid "Choose one or more package managers to install" 79 | msgstr "Kies een of meerdere te installeren pakketbeheerders" 80 | 81 | #: src/package_manager.rs:63 82 | msgid "Will also configure the Flathub repository." 83 | msgstr "Hiermee wordt ook de Flathub-pakketbron toegevoegd." 84 | 85 | #: src/package_manager.rs:64 86 | msgid "System for application virtualization." 87 | msgstr "Systeem voor toepassingsvirtualisatie." 88 | 89 | #: src/package_manager.rs:76 90 | msgid "Uses the Snapcraft repository. Default in Ubuntu." 91 | msgstr "" 92 | "Hiermee wordt de Snapcraft-pakketbron (standaard in Ubuntu) toegevoegd." 93 | 94 | #: src/package_manager.rs:77 95 | msgid "" 96 | "Software deployment and package management system developed by Canonical." 97 | msgstr "Softwareverspreiding en pakketbeheer, ontwikkeld door Canonical." 98 | 99 | #: src/package_manager.rs:90 100 | msgid "Will install the necessary dependencies to run AppImages." 101 | msgstr "Hiermee worden de afhankelijkheden van AppImages geïnstalleerd." 102 | 103 | #: src/package_manager.rs:91 104 | msgid "Self-contained and compressed executable format for the Linux platform." 105 | msgstr "" 106 | "Een uitvoerbaar bestandsformaat voor Linux, met compressie en alle " 107 | "benodigdheden gebundeld." 108 | 109 | #: src/progress.rs:37 110 | msgid "The changes are being applied. Please Wait..." 111 | msgstr "De wijzigingen worden toegepast - even geduld…" 112 | 113 | #: src/welcome.rs:44 114 | msgid "Make your choices, this wizard will take care of everything." 115 | msgstr "Maak uw eigen keuzes - de instelhulp doet de rest." 116 | 117 | #: src/welcome.rs:46 118 | msgid "Let's Start" 119 | msgstr "Aan de slag" 120 | 121 | #: src/main.rs:69 122 | msgid "Back" 123 | msgstr "Terug" 124 | 125 | #: src/main.rs:149 126 | msgid "Rhino Setup" 127 | msgstr "Rhino-instelhulp" 128 | -------------------------------------------------------------------------------- /po/pt_BR.po: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2022-present Rhino Setup Translators 2 | # This file is distributed under the same license as the rhino-setup package. 3 | # 4 | msgid "" 5 | msgstr "" 6 | "Project-Id-Version: rhino-setup 0.1.0\n" 7 | "Report-Msgid-Bugs-To: https://github.com/rhino-linux/rhino-setup/issues\n" 8 | "POT-Creation-Date: 2022-10-29 20:26+0000\n" 9 | "PO-Revision-Date: 2024-03-18 20:01+0000\n" 10 | "Last-Translator: \"Mr. Fakezay\" \n" 11 | "Language-Team: Portuguese (Brazil) \n" 13 | "Language: pt_BR\n" 14 | "MIME-Version: 1.0\n" 15 | "Content-Type: text/plain; charset=UTF-8\n" 16 | "Content-Transfer-Encoding: 8bit\n" 17 | "Plural-Forms: nplurals=2; plural=n > 1;\n" 18 | "X-Generator: Weblate 5.5-dev\n" 19 | 20 | #: src/done.rs:56 21 | msgid "Reboot Now" 22 | msgstr "Reiniciar agora" 23 | 24 | #: src/done.rs:67 25 | msgid "Close" 26 | msgstr "Fechar" 27 | 28 | #: src/done.rs:90 29 | msgid "All done!" 30 | msgstr "Tudo pronto!" 31 | 32 | #: src/done.rs:91 33 | msgid "Restart your device to enjoy your Rhino Linux experience." 34 | msgstr "" 35 | "Reinicie seu dispositivo para aproveitar sua experiência com o Rhino Linux." 36 | 37 | #: src/done.rs:108 38 | msgid "Something went wrong" 39 | msgstr "Algo deu errado" 40 | 41 | #: src/done.rs:109 42 | msgid "Please contact the distribution developers." 43 | msgstr "Por favor entre em contato com os desenvolvedores da distribuição." 44 | 45 | #: src/extra_settings.rs:47 46 | msgid "Extra Settings" 47 | msgstr "Configurações extras" 48 | 49 | #: src/extra_settings.rs:48 50 | msgid "The following are optional settings, leave them as they are if you don't know what they do." 51 | msgstr "" 52 | "As configurações a seguir são opcionais; deixe-as como estão se não souber o " 53 | "que elas fazem." 54 | 55 | #: src/extra_settings.rs:60 56 | msgid "Nala is an alternative front-end to APT, featuring a beautiful UI/UX." 57 | msgstr "Nala é um front-end alternativo ao APT, apresentando uma bela UI/UX." 58 | 59 | #: src/extra_settings.rs:72 60 | msgid "Apport is a crash reporting system that helps us improve the stability of the system." 61 | msgstr "" 62 | "Apport é um sistema de relatório de falhas que nos ajuda a melhorar a " 63 | "estabilidade do sistema." 64 | 65 | #: src/extra_settings.rs:84 src/package_manager.rs:104 66 | msgid "Next" 67 | msgstr "Próximo" 68 | 69 | #: src/package_manager.rs:50 70 | msgid "Package Manager" 71 | msgstr "Gerenciador de pacotes" 72 | 73 | #: src/package_manager.rs:51 74 | msgid "Choose one or more package managers to install" 75 | msgstr "Escolha um ou mais gerenciadores de pacotes para instalar" 76 | 77 | #: src/package_manager.rs:63 78 | msgid "Will also configure the Flathub repository." 79 | msgstr "Isto também configurará o repositório Flathub." 80 | 81 | #: src/package_manager.rs:64 82 | msgid "System for application virtualization." 83 | msgstr "Sistema para virtualização de aplicativos." 84 | 85 | #: src/package_manager.rs:76 86 | msgid "Uses the Snapcraft repository. Default in Ubuntu." 87 | msgstr "Use o repositório Snapcraft. Padrão no Ubuntu." 88 | 89 | #: src/package_manager.rs:77 90 | msgid "Software deployment and package management system developed by Canonical." 91 | msgstr "" 92 | "Sistema de implantação de software e gerenciamento de pacotes desenvolvido " 93 | "pela Canonical." 94 | 95 | #: src/package_manager.rs:90 96 | msgid "Will install the necessary dependencies to run AppImages." 97 | msgstr "Instalará as dependências necessárias para executar AppImages." 98 | 99 | #: src/package_manager.rs:91 100 | msgid "Self-contained and compressed executable format for the Linux platform." 101 | msgstr "Formato executável independente e compactado para a plataforma Linux." 102 | 103 | #: src/progress.rs:37 104 | msgid "The changes are being applied. Please Wait..." 105 | msgstr "As alterações estão sendo aplicadas. Por favor, aguarde..." 106 | 107 | #: src/welcome.rs:44 108 | msgid "Make your choices, this wizard will take care of everything." 109 | msgstr "Faça suas escolhas, este assistente cuidará de tudo." 110 | 111 | #: src/welcome.rs:46 112 | msgid "Let's Start" 113 | msgstr "Vamos começar" 114 | 115 | #: src/main.rs:69 116 | msgid "Back" 117 | msgstr "Voltar" 118 | 119 | #: src/main.rs:149 120 | msgid "Rhino Setup" 121 | msgstr "Configuração do Rhino" 122 | -------------------------------------------------------------------------------- /po/rhino-setup.pot: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2022-present Rhino Setup Translators 2 | # This file is distributed under the same license as the rhino-setup package. 3 | # 4 | msgid "" 5 | msgstr "" 6 | "Project-Id-Version: rhino-setup 0.1.0\n" 7 | "Report-Msgid-Bugs-To: https://github.com/rhino-linux/rhino-setup/issues\n" 8 | "POT-Creation-Date: 2022-10-29 20:26+0000\n" 9 | "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 10 | "Last-Translator: FULL NAME \n" 11 | "Language-Team: LANGUAGE \n" 12 | "Language: \n" 13 | "MIME-Version: 1.0\n" 14 | "Content-Type: text/plain; charset=UTF-8\n" 15 | "Content-Transfer-Encoding: 8bit\n" 16 | 17 | #: src/done.rs:56 18 | msgid "Reboot Now" 19 | msgstr "" 20 | 21 | #: src/done.rs:67 22 | msgid "Close" 23 | msgstr "" 24 | 25 | #: src/done.rs:90 26 | msgid "All done!" 27 | msgstr "" 28 | 29 | #: src/done.rs:91 30 | msgid "Restart your device to enjoy your Rhino Linux experience." 31 | msgstr "" 32 | 33 | #: src/done.rs:108 34 | msgid "Something went wrong" 35 | msgstr "" 36 | 37 | #: src/done.rs:109 38 | msgid "Please contact the distribution developers." 39 | msgstr "" 40 | 41 | #: src/extra_settings.rs:47 42 | msgid "Extra Settings" 43 | msgstr "" 44 | 45 | #: src/extra_settings.rs:48 46 | msgid "The following are optional settings, leave them as they are if you don't know what they do." 47 | msgstr "" 48 | 49 | #: src/extra_settings.rs:60 50 | msgid "Nala is an alternative front-end to APT, featuring a beautiful UI/UX." 51 | msgstr "" 52 | 53 | #: src/extra_settings.rs:72 54 | msgid "Apport is a crash reporting system that helps us improve the stability of the system." 55 | msgstr "" 56 | 57 | #: src/extra_settings.rs:84 src/package_manager.rs:104 58 | msgid "Next" 59 | msgstr "" 60 | 61 | #: src/package_manager.rs:50 62 | msgid "Package Manager" 63 | msgstr "" 64 | 65 | #: src/package_manager.rs:51 66 | msgid "Choose one or more package managers to install" 67 | msgstr "" 68 | 69 | #: src/package_manager.rs:63 70 | msgid "Will also configure the Flathub repository." 71 | msgstr "" 72 | 73 | #: src/package_manager.rs:64 74 | msgid "System for application virtualization." 75 | msgstr "" 76 | 77 | #: src/package_manager.rs:76 78 | msgid "Uses the Snapcraft repository. Default in Ubuntu." 79 | msgstr "" 80 | 81 | #: src/package_manager.rs:77 82 | msgid "Software deployment and package management system developed by Canonical." 83 | msgstr "" 84 | 85 | #: src/package_manager.rs:90 86 | msgid "Will install the necessary dependencies to run AppImages." 87 | msgstr "" 88 | 89 | #: src/package_manager.rs:91 90 | msgid "Self-contained and compressed executable format for the Linux platform." 91 | msgstr "" 92 | 93 | #: src/progress.rs:37 94 | msgid "The changes are being applied. Please Wait..." 95 | msgstr "" 96 | 97 | #: src/welcome.rs:44 98 | msgid "Make your choices, this wizard will take care of everything." 99 | msgstr "" 100 | 101 | #: src/welcome.rs:46 102 | msgid "Let's Start" 103 | msgstr "" 104 | 105 | #: src/main.rs:69 106 | msgid "Back" 107 | msgstr "" 108 | 109 | #: src/main.rs:149 110 | msgid "Rhino Setup" 111 | msgstr "" 112 | -------------------------------------------------------------------------------- /po/ro.po: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2022-present Rhino Setup Translators 2 | # This file is distributed under the same license as the rhino-setup package. 3 | # 4 | msgid "" 5 | msgstr "" 6 | "Project-Id-Version: rhino-setup 0.1.0\n" 7 | "Report-Msgid-Bugs-To: https://github.com/rhino-linux/rhino-setup/issues\n" 8 | "POT-Creation-Date: 2022-10-29 20:26+0000\n" 9 | "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 10 | "Last-Translator: Automatically generated\n" 11 | "Language-Team: none\n" 12 | "Language: ro\n" 13 | "MIME-Version: 1.0\n" 14 | "Content-Type: text/plain; charset=UTF-8\n" 15 | "Content-Transfer-Encoding: 8bit\n" 16 | 17 | #: src/done.rs:56 18 | msgid "Reboot Now" 19 | msgstr "" 20 | 21 | #: src/done.rs:67 22 | msgid "Close" 23 | msgstr "" 24 | 25 | #: src/done.rs:90 26 | msgid "All done!" 27 | msgstr "" 28 | 29 | #: src/done.rs:91 30 | msgid "Restart your device to enjoy your Rhino Linux experience." 31 | msgstr "" 32 | 33 | #: src/done.rs:108 34 | msgid "Something went wrong" 35 | msgstr "" 36 | 37 | #: src/done.rs:109 38 | msgid "Please contact the distribution developers." 39 | msgstr "" 40 | 41 | #: src/extra_settings.rs:47 42 | msgid "Extra Settings" 43 | msgstr "" 44 | 45 | #: src/extra_settings.rs:48 46 | msgid "The following are optional settings, leave them as they are if you don't know what they do." 47 | msgstr "" 48 | 49 | #: src/extra_settings.rs:60 50 | msgid "Nala is an alternative front-end to APT, featuring a beautiful UI/UX." 51 | msgstr "" 52 | 53 | #: src/extra_settings.rs:72 54 | msgid "Apport is a crash reporting system that helps us improve the stability of the system." 55 | msgstr "" 56 | 57 | #: src/extra_settings.rs:84 src/package_manager.rs:104 58 | msgid "Next" 59 | msgstr "" 60 | 61 | #: src/package_manager.rs:50 62 | msgid "Package Manager" 63 | msgstr "" 64 | 65 | #: src/package_manager.rs:51 66 | msgid "Choose one or more package managers to install" 67 | msgstr "" 68 | 69 | #: src/package_manager.rs:63 70 | msgid "Will also configure the Flathub repository." 71 | msgstr "" 72 | 73 | #: src/package_manager.rs:64 74 | msgid "System for application virtualization." 75 | msgstr "" 76 | 77 | #: src/package_manager.rs:76 78 | msgid "Uses the Snapcraft repository. Default in Ubuntu." 79 | msgstr "" 80 | 81 | #: src/package_manager.rs:77 82 | msgid "Software deployment and package management system developed by Canonical." 83 | msgstr "" 84 | 85 | #: src/package_manager.rs:90 86 | msgid "Will install the necessary dependencies to run AppImages." 87 | msgstr "" 88 | 89 | #: src/package_manager.rs:91 90 | msgid "Self-contained and compressed executable format for the Linux platform." 91 | msgstr "" 92 | 93 | #: src/progress.rs:37 94 | msgid "The changes are being applied. Please Wait..." 95 | msgstr "" 96 | 97 | #: src/welcome.rs:44 98 | msgid "Make your choices, this wizard will take care of everything." 99 | msgstr "" 100 | 101 | #: src/welcome.rs:46 102 | msgid "Let's Start" 103 | msgstr "" 104 | 105 | #: src/main.rs:69 106 | msgid "Back" 107 | msgstr "" 108 | 109 | #: src/main.rs:149 110 | msgid "Rhino Setup" 111 | msgstr "" 112 | -------------------------------------------------------------------------------- /po/ru.po: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2022-present Rhino Setup Translators 2 | # This file is distributed under the same license as the rhino-setup package. 3 | # 4 | msgid "" 5 | msgstr "" 6 | "Project-Id-Version: rhino-setup 0.1.0\n" 7 | "Report-Msgid-Bugs-To: https://github.com/rhino-linux/rhino-setup/issues\n" 8 | "POT-Creation-Date: 2022-10-29 20:26+0000\n" 9 | "PO-Revision-Date: 2023-08-18 21:21+0000\n" 10 | "Last-Translator: OIS \n" 11 | "Language-Team: Russian \n" 13 | "Language: ru\n" 14 | "MIME-Version: 1.0\n" 15 | "Content-Type: text/plain; charset=UTF-8\n" 16 | "Content-Transfer-Encoding: 8bit\n" 17 | "Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && " 18 | "n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" 19 | "X-Generator: Weblate 5.0-dev\n" 20 | 21 | #: src/done.rs:56 22 | msgid "Reboot Now" 23 | msgstr "Перезагрузить" 24 | 25 | #: src/done.rs:67 26 | msgid "Close" 27 | msgstr "Закрыть" 28 | 29 | #: src/done.rs:90 30 | msgid "All done!" 31 | msgstr "Готово!" 32 | 33 | #: src/done.rs:91 34 | msgid "Restart your device to enjoy your Rhino Linux experience." 35 | msgstr "Перезагрузите устройство для работы с Rhino Linux." 36 | 37 | #: src/done.rs:108 38 | msgid "Something went wrong" 39 | msgstr "Что-то пошло не так" 40 | 41 | #: src/done.rs:109 42 | msgid "Please contact the distribution developers." 43 | msgstr "Свяжитесь с разработчиками дистрибутива." 44 | 45 | #: src/extra_settings.rs:47 46 | msgid "Extra Settings" 47 | msgstr "Дополнительные настройки" 48 | 49 | #: src/extra_settings.rs:48 50 | msgid "The following are optional settings, leave them as they are if you don't know what they do." 51 | msgstr "Не изменяйте их, если не знаете, что они делают." 52 | 53 | #: src/extra_settings.rs:60 54 | msgid "Nala is an alternative front-end to APT, featuring a beautiful UI/UX." 55 | msgstr "Nala — альтернативный красиво выглядящий интерфейс для APT." 56 | 57 | #: src/extra_settings.rs:72 58 | msgid "Apport is a crash reporting system that helps us improve the stability of the system." 59 | msgstr "" 60 | "Apport — система сообщений о сбоях, помогающая нам улучшать стабильность " 61 | "системы." 62 | 63 | #: src/extra_settings.rs:84 src/package_manager.rs:104 64 | msgid "Next" 65 | msgstr "Далее" 66 | 67 | #: src/package_manager.rs:50 68 | msgid "Package Manager" 69 | msgstr "Менеджер пакетов" 70 | 71 | #: src/package_manager.rs:51 72 | msgid "Choose one or more package managers to install" 73 | msgstr "Выберите один или несколько менеджеров пакетов для установки" 74 | 75 | #: src/package_manager.rs:63 76 | msgid "Will also configure the Flathub repository." 77 | msgstr "Также будет настроен репозиторий Flathub." 78 | 79 | #: src/package_manager.rs:64 80 | msgid "System for application virtualization." 81 | msgstr "Система виртуализации приложений." 82 | 83 | #: src/package_manager.rs:76 84 | msgid "Uses the Snapcraft repository. Default in Ubuntu." 85 | msgstr "Использует репозиторий Snapcraft. По умолчанию в Ubuntu." 86 | 87 | #: src/package_manager.rs:77 88 | msgid "Software deployment and package management system developed by Canonical." 89 | msgstr "Система установки приложений, разработанная в Canonical." 90 | 91 | #: src/package_manager.rs:90 92 | msgid "Will install the necessary dependencies to run AppImages." 93 | msgstr "Установит необходимые зависимости для запуска файлов AppImage." 94 | 95 | #: src/package_manager.rs:91 96 | msgid "Self-contained and compressed executable format for the Linux platform." 97 | msgstr "Автономный и сжатый формат исполняемых файлов для платформы Linux." 98 | 99 | #: src/progress.rs:37 100 | msgid "The changes are being applied. Please Wait..." 101 | msgstr "Применение настроек..." 102 | 103 | #: src/welcome.rs:44 104 | msgid "Make your choices, this wizard will take care of everything." 105 | msgstr "Выберите нужное, а мастер все настроит." 106 | 107 | #: src/welcome.rs:46 108 | msgid "Let's Start" 109 | msgstr "Начало" 110 | 111 | #: src/main.rs:69 112 | msgid "Back" 113 | msgstr "Назад" 114 | 115 | #: src/main.rs:149 116 | msgid "Rhino Setup" 117 | msgstr "Настройка Rhino" 118 | -------------------------------------------------------------------------------- /po/sv.po: -------------------------------------------------------------------------------- 1 | # Pierre Lindblom , 2022. 2 | msgid "" 3 | msgstr "" 4 | "Project-Id-Version: Rhino Setup\n" 5 | "Report-Msgid-Bugs-To: https://github.com/rhino-linux/rhino-setup/issues\n" 6 | "POT-Creation-Date: 2022-10-29 20:26+0000\n" 7 | "PO-Revision-Date: 2022-10-31 19:02+0000\n" 8 | "Last-Translator: Pierre Lindblom \n" 9 | "Language-Team: Swedish \n" 11 | "Language: sv\n" 12 | "MIME-Version: 1.0\n" 13 | "Content-Type: text/plain; charset=UTF-8\n" 14 | "Content-Transfer-Encoding: 8bit\n" 15 | "Plural-Forms: nplurals=2; plural=n != 1;\n" 16 | "X-Generator: Weblate 4.14.1\n" 17 | 18 | #: src/done.rs:56 19 | msgid "Reboot Now" 20 | msgstr "Starta om nu" 21 | 22 | #: src/done.rs:67 23 | msgid "Close" 24 | msgstr "Stäng" 25 | 26 | #: src/done.rs:90 27 | msgid "All done!" 28 | msgstr "allt klart!" 29 | 30 | #: src/done.rs:91 31 | msgid "Restart your device to enjoy your Rhino Linux experience." 32 | msgstr "Starta om enheten för att njuta av din Rhino Linux-upplevelse." 33 | 34 | #: src/done.rs:108 35 | msgid "Something went wrong" 36 | msgstr "Någonting gick fel" 37 | 38 | #: src/done.rs:109 39 | msgid "Please contact the distribution developers." 40 | msgstr "snälla kontakta distribution utvecklarna." 41 | 42 | #: src/extra_settings.rs:47 43 | msgid "Extra Settings" 44 | msgstr "Extra inställningar" 45 | 46 | #: src/extra_settings.rs:48 47 | msgid "" 48 | "The following are optional settings, leave them as they are if you don't " 49 | "know what they do." 50 | msgstr "" 51 | "Följande är valfria inställningar, lämna dem som de är om du inte vet vad de " 52 | "gör." 53 | 54 | #: src/extra_settings.rs:60 55 | msgid "Nala is an alternative front-end to APT, featuring a beautiful UI/UX." 56 | msgstr "Nala är en alternativ front-end till APT, med ett vackert UI/UX." 57 | 58 | #: src/extra_settings.rs:72 59 | msgid "" 60 | "Apport is a crash reporting system that helps us improve the stability of " 61 | "the system." 62 | msgstr "" 63 | "Apport är ett felrapporteringsprogram som hjälper oss att förbättra " 64 | "systemets stabilitet." 65 | 66 | #: src/extra_settings.rs:84 src/package_manager.rs:104 67 | msgid "Next" 68 | msgstr "Nästa" 69 | 70 | #: src/package_manager.rs:50 71 | msgid "Package Manager" 72 | msgstr "PaketHanterare" 73 | 74 | #: src/package_manager.rs:51 75 | msgid "Choose one or more package managers to install" 76 | msgstr "Välj ett, eller flera pakethanterare att installera" 77 | 78 | #: src/package_manager.rs:63 79 | msgid "Will also configure the Flathub repository." 80 | msgstr "Kommer också att konfiguerar Flathub databasen." 81 | 82 | #: src/package_manager.rs:64 83 | msgid "System for application virtualization." 84 | msgstr "System för tillämpning av virtualisering." 85 | 86 | #: src/package_manager.rs:76 87 | msgid "Uses the Snapcraft repository. Default in Ubuntu." 88 | msgstr "Använder Snapcraft databasen. Standard i Ubuntu." 89 | 90 | #: src/package_manager.rs:77 91 | msgid "" 92 | "Software deployment and package management system developed by Canonical." 93 | msgstr "Mjukvaruplacering och pakethanteringssystem utvecklat av Canonical." 94 | 95 | #: src/package_manager.rs:90 96 | msgid "Will install the necessary dependencies to run AppImages." 97 | msgstr "Kommer att installerar nödvändiga beroenden för att köra Appimages." 98 | 99 | #: src/package_manager.rs:91 100 | msgid "Self-contained and compressed executable format for the Linux platform." 101 | msgstr "Fristående och komprimerade körbara format för Linux Plattform." 102 | 103 | #: src/progress.rs:37 104 | msgid "The changes are being applied. Please Wait..." 105 | msgstr "Inställningarna tillämpas. Var vänligt vänta..." 106 | 107 | #: src/welcome.rs:44 108 | msgid "Make your choices, this wizard will take care of everything." 109 | msgstr "Gör dina val, installationsguiden tar hand om resten." 110 | 111 | #: src/welcome.rs:46 112 | msgid "Let's Start" 113 | msgstr "Låt oss starta" 114 | 115 | #: src/main.rs:69 116 | msgid "Back" 117 | msgstr "Bakåt" 118 | 119 | #: src/main.rs:149 120 | msgid "Rhino Setup" 121 | msgstr "Rhino installation" 122 | -------------------------------------------------------------------------------- /po/uk.po: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2022-present Rhino Setup Translators 2 | # This file is distributed under the same license as the rhino-setup package. 3 | # 4 | msgid "" 5 | msgstr "" 6 | "Project-Id-Version: rhino-setup 0.1.0\n" 7 | "Report-Msgid-Bugs-To: https://github.com/rhino-linux/rhino-setup/issues\n" 8 | "POT-Creation-Date: 2022-10-29 20:26+0000\n" 9 | "PO-Revision-Date: 2023-06-16 00:13+0000\n" 10 | "Last-Translator: Dan \n" 11 | "Language-Team: Ukrainian \n" 13 | "Language: uk\n" 14 | "MIME-Version: 1.0\n" 15 | "Content-Type: text/plain; charset=UTF-8\n" 16 | "Content-Transfer-Encoding: 8bit\n" 17 | "Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && " 18 | "n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" 19 | "X-Generator: Weblate 4.18.1-dev\n" 20 | 21 | #: src/done.rs:56 22 | msgid "Reboot Now" 23 | msgstr "Перезавантажити зараз" 24 | 25 | #: src/done.rs:67 26 | msgid "Close" 27 | msgstr "Закрити" 28 | 29 | #: src/done.rs:90 30 | msgid "All done!" 31 | msgstr "Готово!" 32 | 33 | #: src/done.rs:91 34 | msgid "Restart your device to enjoy your Rhino Linux experience." 35 | msgstr "Перезавантажте пристрій, щоб насолодитися роботою в Rhino Linux." 36 | 37 | #: src/done.rs:108 38 | msgid "Something went wrong" 39 | msgstr "Щось пішло не так" 40 | 41 | #: src/done.rs:109 42 | msgid "Please contact the distribution developers." 43 | msgstr "Будь ласка, зверніться до розробників дистрибутива." 44 | 45 | #: src/extra_settings.rs:47 46 | msgid "Extra Settings" 47 | msgstr "Додаткові налаштування" 48 | 49 | #: src/extra_settings.rs:48 50 | msgid "The following are optional settings, leave them as they are if you don't know what they do." 51 | msgstr "" 52 | "Наступні налаштування є необов'язковими, залиште їх, якщо ви не знаєте, що " 53 | "вони роблять." 54 | 55 | #: src/extra_settings.rs:60 56 | msgid "Nala is an alternative front-end to APT, featuring a beautiful UI/UX." 57 | msgstr "Nala є альтернативним інтерфейсом APT, що відрізняється красивим UI/UX." 58 | 59 | #: src/extra_settings.rs:72 60 | msgid "Apport is a crash reporting system that helps us improve the stability of the system." 61 | msgstr "" 62 | "Apport - це система повідомлень про збої, яка допомагає нам підвищити " 63 | "стабільність системи." 64 | 65 | #: src/extra_settings.rs:84 src/package_manager.rs:104 66 | msgid "Next" 67 | msgstr "Далі" 68 | 69 | #: src/package_manager.rs:50 70 | msgid "Package Manager" 71 | msgstr "Менеджер пакунків" 72 | 73 | #: src/package_manager.rs:51 74 | msgid "Choose one or more package managers to install" 75 | msgstr "Виберіть один або декілька менеджерів пакунків для встановлення" 76 | 77 | #: src/package_manager.rs:63 78 | msgid "Will also configure the Flathub repository." 79 | msgstr "Також буде налаштовано репозиторій Flathub." 80 | 81 | #: src/package_manager.rs:64 82 | msgid "System for application virtualization." 83 | msgstr "Система для віртуалізації застосунків." 84 | 85 | #: src/package_manager.rs:76 86 | msgid "Uses the Snapcraft repository. Default in Ubuntu." 87 | msgstr "Використовує репозиторій Snapcraft. За замовчуванням в Ubuntu." 88 | 89 | #: src/package_manager.rs:77 90 | msgid "Software deployment and package management system developed by Canonical." 91 | msgstr "" 92 | "Система розгортання програмного забезпечення та керування пакунками, " 93 | "розроблена компанією Canonical." 94 | 95 | #: src/package_manager.rs:90 96 | msgid "Will install the necessary dependencies to run AppImages." 97 | msgstr "Встановлює необхідні залежності для запуску AppImages." 98 | 99 | #: src/package_manager.rs:91 100 | msgid "Self-contained and compressed executable format for the Linux platform." 101 | msgstr "Самодостатній і стислий виконуваний формат для платформи Linux." 102 | 103 | #: src/progress.rs:37 104 | msgid "The changes are being applied. Please Wait..." 105 | msgstr "Зміни застосовуються. Будь ласка, зачекайте..." 106 | 107 | #: src/welcome.rs:44 108 | msgid "Make your choices, this wizard will take care of everything." 109 | msgstr "Зробіть свій вибір, цей чарівник подбає про все." 110 | 111 | #: src/welcome.rs:46 112 | msgid "Let's Start" 113 | msgstr "Розпочати" 114 | 115 | #: src/main.rs:69 116 | msgid "Back" 117 | msgstr "Назад" 118 | 119 | #: src/main.rs:149 120 | msgid "Rhino Setup" 121 | msgstr "Налаштування Rhino" 122 | -------------------------------------------------------------------------------- /po/ur.po: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2022-present Rhino Setup Translators 2 | # This file is distributed under the same license as the rhino-setup package. 3 | # 4 | msgid "" 5 | msgstr "" 6 | "Project-Id-Version: rhino-setup 0.1.0\n" 7 | "Report-Msgid-Bugs-To: https://github.com/rhino-linux/rhino-setup/issues\n" 8 | "POT-Creation-Date: 2022-10-29 20:26+0000\n" 9 | "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 10 | "Last-Translator: Automatically generated\n" 11 | "Language-Team: none\n" 12 | "Language: ur\n" 13 | "MIME-Version: 1.0\n" 14 | "Content-Type: text/plain; charset=UTF-8\n" 15 | "Content-Transfer-Encoding: 8bit\n" 16 | 17 | #: src/done.rs:56 18 | msgid "Reboot Now" 19 | msgstr "" 20 | 21 | #: src/done.rs:67 22 | msgid "Close" 23 | msgstr "" 24 | 25 | #: src/done.rs:90 26 | msgid "All done!" 27 | msgstr "" 28 | 29 | #: src/done.rs:91 30 | msgid "Restart your device to enjoy your Rhino Linux experience." 31 | msgstr "" 32 | 33 | #: src/done.rs:108 34 | msgid "Something went wrong" 35 | msgstr "" 36 | 37 | #: src/done.rs:109 38 | msgid "Please contact the distribution developers." 39 | msgstr "" 40 | 41 | #: src/extra_settings.rs:47 42 | msgid "Extra Settings" 43 | msgstr "" 44 | 45 | #: src/extra_settings.rs:48 46 | msgid "The following are optional settings, leave them as they are if you don't know what they do." 47 | msgstr "" 48 | 49 | #: src/extra_settings.rs:60 50 | msgid "Nala is an alternative front-end to APT, featuring a beautiful UI/UX." 51 | msgstr "" 52 | 53 | #: src/extra_settings.rs:72 54 | msgid "Apport is a crash reporting system that helps us improve the stability of the system." 55 | msgstr "" 56 | 57 | #: src/extra_settings.rs:84 src/package_manager.rs:104 58 | msgid "Next" 59 | msgstr "" 60 | 61 | #: src/package_manager.rs:50 62 | msgid "Package Manager" 63 | msgstr "" 64 | 65 | #: src/package_manager.rs:51 66 | msgid "Choose one or more package managers to install" 67 | msgstr "" 68 | 69 | #: src/package_manager.rs:63 70 | msgid "Will also configure the Flathub repository." 71 | msgstr "" 72 | 73 | #: src/package_manager.rs:64 74 | msgid "System for application virtualization." 75 | msgstr "" 76 | 77 | #: src/package_manager.rs:76 78 | msgid "Uses the Snapcraft repository. Default in Ubuntu." 79 | msgstr "" 80 | 81 | #: src/package_manager.rs:77 82 | msgid "Software deployment and package management system developed by Canonical." 83 | msgstr "" 84 | 85 | #: src/package_manager.rs:90 86 | msgid "Will install the necessary dependencies to run AppImages." 87 | msgstr "" 88 | 89 | #: src/package_manager.rs:91 90 | msgid "Self-contained and compressed executable format for the Linux platform." 91 | msgstr "" 92 | 93 | #: src/progress.rs:37 94 | msgid "The changes are being applied. Please Wait..." 95 | msgstr "" 96 | 97 | #: src/welcome.rs:44 98 | msgid "Make your choices, this wizard will take care of everything." 99 | msgstr "" 100 | 101 | #: src/welcome.rs:46 102 | msgid "Let's Start" 103 | msgstr "" 104 | 105 | #: src/main.rs:69 106 | msgid "Back" 107 | msgstr "" 108 | 109 | #: src/main.rs:149 110 | msgid "Rhino Setup" 111 | msgstr "" 112 | -------------------------------------------------------------------------------- /po/zh_Hans.po: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2022-present Rhino Setup Translators 2 | # This file is distributed under the same license as the rhino-setup package. 3 | # 4 | msgid "" 5 | msgstr "" 6 | "Project-Id-Version: rhino-setup 0.1.0\n" 7 | "Report-Msgid-Bugs-To: https://github.com/rhino-linux/rhino-setup/issues\n" 8 | "POT-Creation-Date: 2022-10-29 20:26+0000\n" 9 | "PO-Revision-Date: 2023-08-23 20:52+0000\n" 10 | "Last-Translator: iHsin \n" 11 | "Language-Team: Chinese (Simplified) \n" 13 | "Language: zh_Hans\n" 14 | "MIME-Version: 1.0\n" 15 | "Content-Type: text/plain; charset=UTF-8\n" 16 | "Content-Transfer-Encoding: 8bit\n" 17 | "Plural-Forms: nplurals=1; plural=0;\n" 18 | "X-Generator: Weblate 5.0-dev\n" 19 | 20 | #: src/done.rs:56 21 | msgid "Reboot Now" 22 | msgstr "立刻重启" 23 | 24 | #: src/done.rs:67 25 | msgid "Close" 26 | msgstr "关闭" 27 | 28 | #: src/done.rs:90 29 | msgid "All done!" 30 | msgstr "全部完成!" 31 | 32 | #: src/done.rs:91 33 | msgid "Restart your device to enjoy your Rhino Linux experience." 34 | msgstr "重启设备以享受您的 Rhino Linux 体验。" 35 | 36 | #: src/done.rs:108 37 | msgid "Something went wrong" 38 | msgstr "出了点问题" 39 | 40 | #: src/done.rs:109 41 | msgid "Please contact the distribution developers." 42 | msgstr "请联系发行版开发者。" 43 | 44 | #: src/extra_settings.rs:47 45 | msgid "Extra Settings" 46 | msgstr "额外设置" 47 | 48 | #: src/extra_settings.rs:48 49 | msgid "The following are optional settings, leave them as they are if you don't know what they do." 50 | msgstr "下面的是可选设置,如果您不知道它们是做什么的,就让它们保持原样。" 51 | 52 | #: src/extra_settings.rs:60 53 | msgid "Nala is an alternative front-end to APT, featuring a beautiful UI/UX." 54 | msgstr "Nala 是 APT 的替代前端,具有漂亮的 UI/UX。" 55 | 56 | #: src/extra_settings.rs:72 57 | msgid "Apport is a crash reporting system that helps us improve the stability of the system." 58 | msgstr "Apport 是崩溃日志上报系统,可以帮助我们改进系统稳定性。" 59 | 60 | #: src/extra_settings.rs:84 src/package_manager.rs:104 61 | msgid "Next" 62 | msgstr "继续" 63 | 64 | #: src/package_manager.rs:50 65 | msgid "Package Manager" 66 | msgstr "包管理器" 67 | 68 | #: src/package_manager.rs:51 69 | msgid "Choose one or more package managers to install" 70 | msgstr "请选择一个或更多要安装的包管理器" 71 | 72 | #: src/package_manager.rs:63 73 | msgid "Will also configure the Flathub repository." 74 | msgstr "同时也会配置 Flathub 仓库。" 75 | 76 | #: src/package_manager.rs:64 77 | msgid "System for application virtualization." 78 | msgstr "应用程序虚拟化系统。" 79 | 80 | #: src/package_manager.rs:76 81 | msgid "Uses the Snapcraft repository. Default in Ubuntu." 82 | msgstr "使用 Snapcraft 仓库(在 Ubuntu 中默认使用)。" 83 | 84 | #: src/package_manager.rs:77 85 | msgid "Software deployment and package management system developed by Canonical." 86 | msgstr "由 Canonical 开发的软件部署和包管理系统。" 87 | 88 | #: src/package_manager.rs:90 89 | msgid "Will install the necessary dependencies to run AppImages." 90 | msgstr "将会安装 AppImage 所需的必要依赖。" 91 | 92 | #: src/package_manager.rs:91 93 | msgid "Self-contained and compressed executable format for the Linux platform." 94 | msgstr "适用于 Linux 平台的独立压缩可执行格式。" 95 | 96 | #: src/progress.rs:37 97 | msgid "The changes are being applied. Please Wait..." 98 | msgstr "正在应用更改。请稍候…" 99 | 100 | #: src/welcome.rs:44 101 | msgid "Make your choices, this wizard will take care of everything." 102 | msgstr "做出你的选择,安装向导会处理一切。" 103 | 104 | #: src/welcome.rs:46 105 | msgid "Let's Start" 106 | msgstr "开始吧" 107 | 108 | #: src/main.rs:69 109 | msgid "Back" 110 | msgstr "后退" 111 | 112 | #: src/main.rs:149 113 | msgid "Rhino Setup" 114 | msgstr "Rhino 设置" 115 | -------------------------------------------------------------------------------- /src/carousel.rs: -------------------------------------------------------------------------------- 1 | use relm4::adw::prelude::*; 2 | use relm4::{adw, Component, ComponentController, ComponentParts, Controller, SimpleComponent}; 3 | 4 | use crate::containers::{ContainersModel, ContainersOutput}; 5 | use crate::done::DoneModel; 6 | use crate::extra_settings::{ExtraSettingsModel, ExtraSettingsOutput}; 7 | use crate::package_manager::{PackageManagerModel, PackageManagerOutput}; 8 | use crate::progress::{ProgressInput, ProgressModel, ProgressOutput}; 9 | use crate::welcome::{WelcomeModel, WelcomeOutput}; 10 | 11 | pub(crate) struct CarouselPagesModel { 12 | current: u32, 13 | 14 | welcome: Controller, 15 | package_manager: Controller, 16 | containers: Controller, 17 | extra_settings: Controller, 18 | progress: Controller, 19 | done: Controller, 20 | } 21 | 22 | #[derive(Debug)] 23 | #[allow(clippy::enum_variant_names)] 24 | pub(crate) enum CarouselInput { 25 | /// Move to next page. 26 | NextPage, 27 | /// Move to the previous page. 28 | PreviousPage, 29 | /// An error has occurred in one of the pages. 30 | /// Move to the [`crate::done`] page, with the error state. 31 | SkipToErrorPage, 32 | } 33 | 34 | #[derive(Debug)] 35 | pub(crate) enum CarouselOutput { 36 | /// Show the back button. 37 | ShowBackButton, 38 | /// Hide the back button. 39 | HideBackButton, 40 | } 41 | 42 | #[relm4::component(pub)] 43 | impl SimpleComponent for CarouselPagesModel { 44 | type Init = (); 45 | type Input = CarouselInput; 46 | type Output = CarouselOutput; 47 | type Widgets = CarouselWidgets; 48 | 49 | view! { 50 | #[name = "carousel"] 51 | adw::Carousel { 52 | set_vexpand: true, 53 | set_hexpand: true, 54 | set_allow_scroll_wheel: false, 55 | set_allow_mouse_drag: false, 56 | set_allow_long_swipes: false, 57 | 58 | append: model.welcome.widget(), 59 | append: model.package_manager.widget(), 60 | append: model.containers.widget(), 61 | append: model.extra_settings.widget(), 62 | append: model.progress.widget(), 63 | append: model.done.widget(), 64 | } 65 | } 66 | 67 | fn init( 68 | _init: Self::Init, 69 | root: Self::Root, 70 | sender: relm4::ComponentSender, 71 | ) -> relm4::ComponentParts { 72 | let model = CarouselPagesModel { 73 | current: 0, 74 | welcome: WelcomeModel::builder() 75 | .launch(()) 76 | .forward(sender.input_sender(), |msg| match msg { 77 | WelcomeOutput::NextPage => CarouselInput::NextPage, 78 | }), 79 | package_manager: PackageManagerModel::builder().launch(()).forward( 80 | sender.input_sender(), 81 | |msg| match msg { 82 | PackageManagerOutput::NextPage => CarouselInput::NextPage, 83 | }, 84 | ), 85 | containers: ContainersModel::builder().launch(()).forward( 86 | sender.input_sender(), 87 | |msg| match msg { 88 | ContainersOutput::NextPage => CarouselInput::NextPage, 89 | }, 90 | ), 91 | extra_settings: ExtraSettingsModel::builder().launch(()).forward( 92 | sender.input_sender(), 93 | |msg| match msg { 94 | ExtraSettingsOutput::NextPage => CarouselInput::NextPage, 95 | }, 96 | ), 97 | progress: ProgressModel::builder() 98 | .launch(()) 99 | .forward(sender.input_sender(), |msg| match msg { 100 | ProgressOutput::InstallationComplete => CarouselInput::NextPage, 101 | ProgressOutput::InstallationError => CarouselInput::SkipToErrorPage, 102 | }), 103 | done: DoneModel::builder().launch(()).detach(), 104 | }; 105 | 106 | let widgets = view_output!(); 107 | 108 | ComponentParts { model, widgets } 109 | } 110 | 111 | fn update(&mut self, message: Self::Input, sender: relm4::ComponentSender) { 112 | match message { 113 | CarouselInput::NextPage => { 114 | self.current += 1; 115 | 116 | // If the user hasn't reached the progress page yet. 117 | if self.current < 4 { 118 | sender.output(CarouselOutput::ShowBackButton).unwrap(); 119 | } 120 | 121 | // When the user is at the progress page. 122 | if self.current == 4 { 123 | // Hide the back button, as the user is not supposed to return to previous pages 124 | // after this point. 125 | sender.output(CarouselOutput::HideBackButton).unwrap(); 126 | 127 | self.progress 128 | .sender() 129 | .send(ProgressInput::StartInstallation) 130 | .unwrap(); 131 | } 132 | }, 133 | CarouselInput::PreviousPage => { 134 | self.current -= 1; 135 | 136 | // When on the first page (pages starts from 0), disable the back button. 137 | if self.current == 0 { 138 | sender.output(CarouselOutput::HideBackButton).unwrap(); 139 | } 140 | }, 141 | CarouselInput::SkipToErrorPage => { 142 | self.current = 5; 143 | self.done 144 | .sender() 145 | .send(crate::done::DoneInput::SwitchToErrorState) 146 | .unwrap(); 147 | sender.output(CarouselOutput::HideBackButton).unwrap(); 148 | }, 149 | } 150 | } 151 | 152 | fn post_view() { carousel.scroll_to(&carousel.nth_page(model.current), true); } 153 | } 154 | -------------------------------------------------------------------------------- /src/config.rs.in: -------------------------------------------------------------------------------- 1 | pub const APP_ID: &str = @APP_ID@; 2 | pub const GETTEXT_PACKAGE: &str = @GETTEXT_PACKAGE@; 3 | pub const LOCALEDIR: &str = @LOCALEDIR@; 4 | #[allow(unused)] 5 | pub const PKGDATADIR: &str = @PKGDATADIR@; 6 | #[allow(unused)] 7 | pub const PROFILE: &str = @PROFILE@; 8 | pub const RESOURCES_FILE: &str = concat!(@PKGDATADIR@, "/resources.gresource"); 9 | #[allow(unused)] 10 | pub const VERSION: &str = @VERSION@; 11 | -------------------------------------------------------------------------------- /src/containers.rs: -------------------------------------------------------------------------------- 1 | use gettextrs::gettext; 2 | use relm4::adw::prelude::*; 3 | use relm4::{adw, gtk, Component, ComponentParts, ComponentSender}; 4 | 5 | use crate::COMMANDS; 6 | 7 | #[derive(Debug)] 8 | #[allow(clippy::struct_excessive_bools)] 9 | pub(crate) struct ContainersModel { 10 | enable_docker: bool, 11 | enable_podman: bool, 12 | enable_distrobox: bool, 13 | enable_apptainer: bool, 14 | enable_qemu: bool, 15 | enable_virtualbox: bool, 16 | } 17 | 18 | #[derive(Debug)] 19 | pub(crate) enum ContainersInput { 20 | /// Represents the container engines switch states 21 | Docker(bool), 22 | Podman(bool), 23 | Apptainer(bool), 24 | /// Represents the Distrobox switch state 25 | Distrobox(bool), 26 | #[allow(clippy::upper_case_acronyms)] 27 | /// Represents the virtual machine switch states 28 | QEMU(bool), 29 | Virtualbox(bool), 30 | } 31 | 32 | #[derive(Debug)] 33 | pub(crate) enum ContainersOutput { 34 | /// Move to the next page 35 | NextPage, 36 | } 37 | 38 | #[relm4::component(pub)] 39 | impl Component for ContainersModel { 40 | type CommandOutput = (); 41 | type Init = (); 42 | type Input = ContainersInput; 43 | type Output = ContainersOutput; 44 | type Widgets = ContainersWidgets; 45 | 46 | view! { 47 | #[root] 48 | adw::Bin { 49 | set_halign: gtk::Align::Fill, 50 | set_valign: gtk::Align::Fill, 51 | set_hexpand: true, 52 | 53 | adw::StatusPage { 54 | set_halign: gtk::Align::Fill, 55 | set_valign: gtk::Align::Fill, 56 | set_hexpand: true, 57 | 58 | set_icon_name: Some("rhinosetup-package-symbolic"), 59 | set_title: &gettext("Containerization"), 60 | set_description: Some(&gettext("Container Engines and Virtual Machines")), 61 | 62 | gtk::Box { 63 | set_orientation: gtk::Orientation::Vertical, 64 | set_vexpand: true, 65 | set_hexpand: true, 66 | set_valign: gtk::Align::Center, 67 | 68 | adw::PreferencesPage { 69 | add = &adw::PreferencesGroup { 70 | adw::ActionRow { 71 | set_title: "Docker", 72 | set_subtitle: &gettext("The open-source application container engine."), 73 | set_tooltip_text: Some(&gettext("Enable the Docker container engine.")), 74 | add_suffix = >k::Switch { 75 | set_valign: gtk::Align::Center, 76 | set_active: false, 77 | connect_active_notify[sender] => move |switch| { 78 | sender.input(Self::Input::Docker(switch.is_active())); 79 | } 80 | } 81 | }, 82 | adw::ActionRow { 83 | set_title: "Podman", 84 | set_subtitle: &gettext("Engine to run OCI-based containers in Pods."), 85 | set_tooltip_text: Some(&gettext("Enable the Podman container engine.")), 86 | add_suffix = >k::Switch { 87 | set_valign: gtk::Align::Center, 88 | set_active: false, 89 | connect_active_notify[sender] => move |switch| { 90 | sender.input(Self::Input::Podman(switch.is_active())); 91 | } 92 | } 93 | }, 94 | #[name="distrobox"] 95 | adw::ActionRow { 96 | set_title: "Distrobox", 97 | set_subtitle: &gettext("Use any linux distribution inside your terminal.\nRequires Docker or Podman. "), 98 | set_sensitive: false, 99 | set_visible: true, 100 | 101 | #[name="distrobox_switch"] 102 | add_suffix = >k::Switch { 103 | set_valign: gtk::Align::Center, 104 | 105 | connect_active_notify[sender] => move |switch| { 106 | sender.input(Self::Input::Distrobox(switch.is_active())); 107 | } 108 | } 109 | }, 110 | adw::ActionRow { 111 | set_title: "Apptainer", 112 | set_subtitle: &gettext("Container platform focused on supporting \"Mobility of Compute\""), 113 | set_tooltip_text: Some(&gettext("Enable the Apptainer container engine.")), 114 | set_visible: cfg!(target_arch = "x86_64"), 115 | add_suffix = >k::Switch { 116 | set_valign: gtk::Align::Center, 117 | 118 | connect_active_notify[sender] => move |switch| { 119 | sender.input(Self::Input::Apptainer(switch.is_active())); 120 | } 121 | } 122 | }, 123 | adw::ActionRow { 124 | set_title: "QEMU", 125 | set_subtitle: &gettext("QEMU full system emulation"), 126 | 127 | add_suffix = >k::Switch { 128 | set_valign: gtk::Align::Center, 129 | 130 | connect_active_notify[sender] => move |switch| { 131 | sender.input(Self::Input::QEMU(switch.is_active())); 132 | } 133 | } 134 | }, 135 | adw::ActionRow { 136 | set_title: "VirtualBox", 137 | set_subtitle: &gettext("x86 virtualization solution"), 138 | set_visible: cfg!(target_arch = "x86_64"), 139 | add_suffix = >k::Switch { 140 | set_valign: gtk::Align::Center, 141 | 142 | connect_active_notify[sender] => move |switch| { 143 | sender.input(Self::Input::Virtualbox(switch.is_active())); 144 | } 145 | } 146 | }, 147 | } 148 | }, 149 | gtk::Button::with_label(&gettext("Next")) { 150 | set_halign: gtk::Align::Center, 151 | set_css_classes: &["pill", "suggested-action"], 152 | 153 | connect_clicked[sender] => move |_| { 154 | sender.output(Self::Output::NextPage).unwrap(); 155 | } 156 | } 157 | } 158 | } 159 | } 160 | } 161 | 162 | fn init( 163 | _init: Self::Init, 164 | root: Self::Root, 165 | sender: ComponentSender, 166 | ) -> ComponentParts { 167 | let model = ContainersModel { 168 | enable_docker: false, 169 | enable_podman: false, 170 | enable_apptainer: false, 171 | enable_distrobox: false, 172 | enable_qemu: false, 173 | enable_virtualbox: false, 174 | }; 175 | 176 | let widgets = view_output!(); 177 | 178 | ComponentParts { model, widgets } 179 | } 180 | 181 | #[allow(clippy::too_many_lines)] 182 | fn update_with_view( 183 | &mut self, 184 | widgets: &mut Self::Widgets, 185 | message: Self::Input, 186 | _sender: ComponentSender, 187 | _root: &Self::Root, 188 | ) { 189 | match message { 190 | Self::Input::Docker(switched_on) => { 191 | tracing::info!( 192 | "{}", 193 | if switched_on { 194 | "Enabling Docker" 195 | } else { 196 | "Disabling Docker" 197 | } 198 | ); 199 | 200 | self.enable_docker = switched_on; 201 | 202 | widgets 203 | .distrobox 204 | .set_sensitive(self.enable_docker || self.enable_podman); 205 | if !(self.enable_docker || self.enable_podman) { 206 | widgets.distrobox_switch.set_active(false); 207 | } 208 | }, 209 | Self::Input::Podman(switched_on) => { 210 | tracing::info!( 211 | "{}", 212 | if switched_on { 213 | "Enabling Podman" 214 | } else { 215 | "Disabling Podman" 216 | } 217 | ); 218 | 219 | self.enable_podman = switched_on; 220 | 221 | widgets 222 | .distrobox 223 | .set_sensitive(self.enable_docker || self.enable_podman); 224 | if !(self.enable_docker || self.enable_podman) { 225 | widgets.distrobox_switch.set_active(false); 226 | } 227 | }, 228 | Self::Input::Distrobox(switched_on) => { 229 | tracing::info!( 230 | "{}", 231 | if switched_on { 232 | "Enabling Distrobox" 233 | } else { 234 | "Disabling Distrobox" 235 | } 236 | ); 237 | 238 | self.enable_distrobox = switched_on; 239 | }, 240 | Self::Input::Apptainer(switched_on) => { 241 | tracing::info!( 242 | "{}", 243 | if switched_on { 244 | "Enabling Apptainer" 245 | } else { 246 | "Disabling Apptainer" 247 | } 248 | ); 249 | 250 | self.enable_distrobox = switched_on; 251 | }, 252 | Self::Input::QEMU(switched_on) => { 253 | tracing::info!( 254 | "{}", 255 | if switched_on { 256 | "Enabling QEMU" 257 | } else { 258 | "Disabling QEMU" 259 | } 260 | ); 261 | 262 | self.enable_qemu = switched_on; 263 | }, 264 | Self::Input::Virtualbox(switched_on) => { 265 | tracing::info!( 266 | "{}", 267 | if switched_on { 268 | "Enabling Virtualbox" 269 | } else { 270 | "Disabling Virtualbox" 271 | } 272 | ); 273 | 274 | self.enable_virtualbox = switched_on; 275 | }, 276 | } 277 | 278 | let mut commands: Vec<&str> = Vec::new(); 279 | 280 | if self.enable_docker { 281 | commands.push( 282 | "pacstall -PIQ docker-bin docker-buildx-plugin-bin docker-compose-plugin-bin", 283 | ); 284 | } 285 | 286 | if self.enable_podman { 287 | commands.push("sudo apt-get install -y podman"); 288 | } 289 | 290 | if self.enable_distrobox && (self.enable_docker || self.enable_podman) { 291 | commands.push("pacstall -PIQ distrobox"); 292 | } 293 | 294 | if self.enable_apptainer { 295 | commands.push("pacstall -PIQ apptainer-deb"); 296 | } 297 | 298 | if self.enable_qemu { 299 | commands.push("sudo apt-get install -y qemu-system qemu-user-static qemu-utils"); 300 | } 301 | 302 | if self.enable_virtualbox { 303 | commands.push("sudo apt-get install -y virtualbox"); 304 | } 305 | 306 | COMMANDS.write_inner().insert("containers", commands); 307 | } 308 | } 309 | -------------------------------------------------------------------------------- /src/done.rs: -------------------------------------------------------------------------------- 1 | use std::process::Command; 2 | 3 | use gettextrs::gettext; 4 | use relm4::adw::prelude::*; 5 | use relm4::{adw, gtk, main_application, ComponentParts, ComponentSender, SimpleComponent}; 6 | 7 | use crate::config::PROFILE; 8 | 9 | #[derive(Debug)] 10 | pub(crate) struct DoneModel { 11 | icon: &'static str, 12 | title: String, 13 | description: String, 14 | error_state: bool, 15 | } 16 | 17 | #[derive(Debug)] 18 | pub(crate) enum DoneInput { 19 | /// Restarts the OS. 20 | Reboot, 21 | /// Sent by the [`crate::carousel`] whenever an error occurs. 22 | /// This signals the done page to switch to a "error" page state. 23 | SwitchToErrorState, 24 | /// Sent when an error has occurred, and the user has clicked the "close" 25 | /// button. 26 | CloseApp, 27 | } 28 | 29 | #[relm4::component(pub)] 30 | impl SimpleComponent for DoneModel { 31 | type Init = (); 32 | type Input = DoneInput; 33 | type Output = (); 34 | type Widgets = DoneWidgets; 35 | 36 | view! { 37 | #[root] 38 | adw::Bin { 39 | set_halign: gtk::Align::Fill, 40 | set_valign: gtk::Align::Fill, 41 | set_hexpand: true, 42 | 43 | adw::StatusPage { 44 | #[watch] 45 | set_icon_name: Some(model.icon), 46 | #[watch] 47 | set_title: &model.title, 48 | #[watch] 49 | set_description: Some(&model.description), 50 | 51 | set_halign: gtk::Align::Fill, 52 | set_valign: gtk::Align::Fill, 53 | set_hexpand: true, 54 | 55 | gtk::Box { 56 | set_halign: gtk::Align::Center, 57 | 58 | gtk::Button::with_label(&gettext("Reboot Now")) { 59 | set_halign: gtk::Align::Center, 60 | set_css_classes: &["pill", "suggested-action"], 61 | 62 | #[watch] 63 | set_visible: !model.error_state, 64 | 65 | connect_clicked[sender] => move |_| { 66 | sender.input(Self::Input::Reboot); 67 | } 68 | }, 69 | gtk::Button::with_label(&gettext("Close")) { 70 | set_halign: gtk::Align::Center, 71 | set_css_classes: &["pill", "destructive-action"], 72 | 73 | #[watch] 74 | set_visible: model.error_state, 75 | 76 | connect_clicked[sender] => move |_| { 77 | sender.input(Self::Input::CloseApp); 78 | } 79 | } 80 | } 81 | } 82 | } 83 | } 84 | 85 | fn init( 86 | _init: Self::Init, 87 | root: Self::Root, 88 | sender: ComponentSender, 89 | ) -> ComponentParts { 90 | let model = DoneModel { 91 | icon: "emblem-default-symbolic", 92 | title: gettext("All done!"), 93 | description: gettext("Restart your device to enjoy your Rhino Linux experience."), 94 | error_state: false, 95 | }; 96 | 97 | let widgets = view_output!(); 98 | 99 | ComponentParts { model, widgets } 100 | } 101 | 102 | fn update(&mut self, message: Self::Input, _sender: ComponentSender) { 103 | match message { 104 | Self::Input::Reboot => { 105 | if PROFILE != "Devel" { 106 | Command::new("/sbin/reboot").status().unwrap(); 107 | } 108 | tracing::info!("Not rebooting, closing the application instead"); 109 | main_application().quit(); 110 | }, 111 | Self::Input::SwitchToErrorState => { 112 | self.error_state = true; 113 | self.icon = "dialog-error-symbolic"; 114 | self.title = gettext("Something went wrong"); 115 | self.description = gettext("Please contact the distribution developers."); 116 | }, 117 | Self::Input::CloseApp => { 118 | tracing::info!("Closing the application"); 119 | main_application().quit(); 120 | }, 121 | } 122 | } 123 | } 124 | -------------------------------------------------------------------------------- /src/extra_settings.rs: -------------------------------------------------------------------------------- 1 | use gettextrs::gettext; 2 | use relm4::adw::prelude::*; 3 | use relm4::{adw, gtk, ComponentParts, ComponentSender, SimpleComponent}; 4 | 5 | use crate::COMMANDS; 6 | 7 | #[derive(Debug)] 8 | #[allow(clippy::struct_excessive_bools)] 9 | pub(crate) struct ExtraSettingsModel { 10 | remove_nala: bool, 11 | enable_apport: bool, 12 | enable_github: bool, 13 | enable_redshift: bool, 14 | } 15 | 16 | #[derive(Debug)] 17 | pub(crate) enum ExtraSettingsInput { 18 | /// Represents the Nala switch state 19 | Nala(bool), 20 | /// Represents the Apport switch state 21 | Apport(bool), 22 | /// Represents the GitHub switch state 23 | Github(bool), 24 | /// Represents the Redshift switch state 25 | Redshift(bool), 26 | } 27 | 28 | #[derive(Debug)] 29 | pub(crate) enum ExtraSettingsOutput { 30 | /// Move to the next page 31 | NextPage, 32 | } 33 | 34 | #[relm4::component(pub)] 35 | impl SimpleComponent for ExtraSettingsModel { 36 | type Init = (); 37 | type Input = ExtraSettingsInput; 38 | type Output = ExtraSettingsOutput; 39 | type Widgets = ExtraSettingsWidgets; 40 | 41 | view! { 42 | #[root] 43 | adw::Bin { 44 | set_halign: gtk::Align::Fill, 45 | set_valign: gtk::Align::Fill, 46 | set_hexpand: true, 47 | 48 | adw::StatusPage { 49 | set_halign: gtk::Align::Fill, 50 | set_valign: gtk::Align::Fill, 51 | set_hexpand: true, 52 | 53 | set_icon_name: Some("rhinosetup-puzzle-piece-symbolic"), 54 | set_title: &gettext("Extra Settings"), 55 | set_description: Some(&gettext("The following are optional settings, leave them as they are if you don't know what they do.")), 56 | 57 | gtk::Box { 58 | set_orientation: gtk::Orientation::Vertical, 59 | set_vexpand: true, 60 | set_hexpand: true, 61 | set_valign: gtk::Align::Center, 62 | 63 | adw::PreferencesPage { 64 | add = &adw::PreferencesGroup { 65 | adw::ActionRow { 66 | set_title: "Nala", 67 | set_subtitle: &gettext("Nala is an alternative front-end to APT, featuring a beautiful UI/UX."), 68 | 69 | add_suffix = >k::Switch { 70 | set_active: true, 71 | set_valign: gtk::Align::Center, 72 | 73 | connect_active_notify[sender] => move |switch| { 74 | sender.input(Self::Input::Nala(switch.is_active())); 75 | } 76 | } 77 | }, 78 | adw::ActionRow { 79 | set_title: "GitHub CLI", 80 | set_subtitle: &gettext("GitHub on the command-line."), 81 | 82 | add_suffix = >k::Switch { 83 | set_valign: gtk::Align::Center, 84 | 85 | connect_active_notify[sender] => move |switch| { 86 | sender.input(Self::Input::Github(switch.is_active())); 87 | } 88 | } 89 | }, 90 | adw::ActionRow { 91 | set_title: "Apport", 92 | set_subtitle: &gettext("A crash reporting system, improving the stability of your system."), 93 | 94 | add_suffix = >k::Switch { 95 | set_valign: gtk::Align::Center, 96 | 97 | connect_active_notify[sender] => move |switch| { 98 | sender.input(Self::Input::Apport(switch.is_active())); 99 | } 100 | } 101 | }, 102 | adw::ActionRow { 103 | set_title: "Redshift", 104 | set_subtitle: &gettext("Adjusts the color temperature of your screen."), 105 | 106 | add_suffix = >k::Switch { 107 | set_valign: gtk::Align::Center, 108 | 109 | connect_active_notify[sender] => move |switch| { 110 | sender.input(Self::Input::Redshift(switch.is_active())); 111 | } 112 | } 113 | }, 114 | } 115 | }, 116 | gtk::Button::with_label(&gettext("Next")) { 117 | set_halign: gtk::Align::Center, 118 | set_css_classes: &["pill", "suggested-action"], 119 | 120 | connect_clicked[sender] => move |_| { 121 | sender.output(Self::Output::NextPage).unwrap(); 122 | } 123 | } 124 | } 125 | } 126 | } 127 | } 128 | 129 | fn init( 130 | _init: Self::Init, 131 | root: Self::Root, 132 | sender: ComponentSender, 133 | ) -> ComponentParts { 134 | let model = ExtraSettingsModel { 135 | remove_nala: false, 136 | enable_apport: false, 137 | enable_github: false, 138 | enable_redshift: false, 139 | }; 140 | 141 | let widgets = view_output!(); 142 | 143 | ComponentParts { model, widgets } 144 | } 145 | 146 | fn update(&mut self, message: Self::Input, _sender: ComponentSender) { 147 | match message { 148 | Self::Input::Nala(switched_on) => { 149 | tracing::info!( 150 | "{}", 151 | if switched_on { 152 | "Disabling Nala removal" 153 | } else { 154 | "Enabling Nala removal" 155 | } 156 | ); 157 | 158 | self.remove_nala = !switched_on; 159 | }, 160 | Self::Input::Github(switched_on) => { 161 | tracing::info!( 162 | "{}", 163 | if switched_on { 164 | "Enabling Github" 165 | } else { 166 | "Disabling Github" 167 | } 168 | ); 169 | 170 | self.enable_github = switched_on; 171 | }, 172 | Self::Input::Apport(switched_on) => { 173 | tracing::info!( 174 | "{}", 175 | if switched_on { 176 | "Enabling Apport" 177 | } else { 178 | "Disabling Apport" 179 | } 180 | ); 181 | 182 | self.enable_apport = switched_on; 183 | }, 184 | Self::Input::Redshift(switched_on) => { 185 | tracing::info!( 186 | "{}", 187 | if switched_on { 188 | "Enabling redshift" 189 | } else { 190 | "Disabling redshift" 191 | } 192 | ); 193 | 194 | self.enable_redshift = switched_on; 195 | }, 196 | } 197 | 198 | let mut commands: Vec<&str> = Vec::new(); 199 | 200 | if self.remove_nala { 201 | commands.push("sudo apt-get remove -y nala"); 202 | } 203 | 204 | if self.enable_apport { 205 | commands.push("sudo apt-get install -y apport"); 206 | commands.push("{ sudo systemctl enable apport.service || :; }"); 207 | } 208 | 209 | if self.enable_github { 210 | commands.push("pacstall -PIQ github-cli-deb"); 211 | } 212 | 213 | if self.enable_redshift { 214 | commands.push("sudo apt-get install -y redshift redshift-gtk"); 215 | } 216 | 217 | COMMANDS.write_inner().insert("extra_settings", commands); 218 | } 219 | } 220 | -------------------------------------------------------------------------------- /src/main.rs: -------------------------------------------------------------------------------- 1 | #![allow(clippy::used_underscore_binding)] 2 | 3 | use std::collections::HashMap; 4 | use std::env; 5 | use std::path::Path; 6 | 7 | use carousel::{CarouselInput, CarouselOutput, CarouselPagesModel}; 8 | use config::{APP_ID, GETTEXT_PACKAGE, LOCALEDIR, RESOURCES_FILE}; 9 | use gettextrs::{gettext, LocaleCategory}; 10 | use relm4::adw::prelude::*; 11 | use relm4::gtk::{gdk, gio, glib}; 12 | use relm4::{ 13 | adw, gtk, main_application, Component, ComponentController, ComponentParts, ComponentSender, 14 | Controller, RelmApp, SharedState, SimpleComponent, 15 | }; 16 | use tracing_appender::rolling::{RollingFileAppender, Rotation}; 17 | use tracing_subscriber::fmt::writer::MakeWriterExt; 18 | 19 | mod carousel; 20 | mod config; 21 | mod containers; 22 | mod done; 23 | mod extra_settings; 24 | mod package_manager; 25 | mod progress; 26 | mod welcome; 27 | 28 | /// Gathers all the commands to be executed from different pages. 29 | pub(crate) static COMMANDS: SharedState>> = 30 | SharedState::new(); 31 | 32 | struct AppModel { 33 | carousel: Controller, 34 | back_button_visible: bool, 35 | } 36 | 37 | #[derive(Debug)] 38 | enum AppInput { 39 | ShowBackButton, 40 | HideBackButton, 41 | } 42 | 43 | #[relm4::component] 44 | impl SimpleComponent for AppModel { 45 | type Init = (); 46 | type Input = AppInput; 47 | type Output = (); 48 | // AppWidgets is generated by the macro 49 | type Widgets = AppWidgets; 50 | 51 | view! { 52 | adw::ApplicationWindow { 53 | set_default_width: 800, 54 | set_default_height: 900, 55 | 56 | gtk::Box { 57 | set_orientation: gtk::Orientation::Vertical, 58 | 59 | 60 | adw::HeaderBar { 61 | set_css_classes: &["flat"], 62 | 63 | #[wrap(Some)] 64 | set_title_widget = &adw::CarouselIndicatorDots::builder().orientation(gtk::Orientation::Horizontal).build() { 65 | set_carousel: Some(carousel), 66 | }, 67 | 68 | 69 | pack_start = >k::Button::with_label(&gettext("Back")) { 70 | set_halign: gtk::Align::Center, 71 | #[watch] 72 | set_visible: model.back_button_visible, 73 | 74 | connect_clicked[carousel_sender] => move |_| { 75 | carousel_sender.send(CarouselInput::PreviousPage).unwrap(); 76 | } 77 | }, 78 | }, 79 | 80 | 81 | adw::ToastOverlay { 82 | #[wrap(Some)] 83 | #[local_ref] 84 | set_child = carousel -> adw::Carousel { 85 | } 86 | }, 87 | 88 | }, 89 | 90 | } 91 | } 92 | 93 | // Initialize the UI. 94 | fn init( 95 | _counter: Self::Init, 96 | root: Self::Root, 97 | sender: ComponentSender, 98 | ) -> ComponentParts { 99 | let model = AppModel { 100 | carousel: CarouselPagesModel::builder().launch(()).forward( 101 | sender.input_sender(), 102 | |message| match message { 103 | CarouselOutput::ShowBackButton => AppInput::ShowBackButton, 104 | CarouselOutput::HideBackButton => AppInput::HideBackButton, 105 | }, 106 | ), 107 | back_button_visible: false, 108 | }; 109 | 110 | let carousel = model.carousel.widget(); 111 | let carousel_sender = model.carousel.sender().clone(); 112 | 113 | // Insert the macro code generation here 114 | let widgets = view_output!(); 115 | 116 | ComponentParts { model, widgets } 117 | } 118 | 119 | fn update(&mut self, message: Self::Input, _sender: ComponentSender) { 120 | match message { 121 | AppInput::ShowBackButton => self.back_button_visible = true, 122 | AppInput::HideBackButton => self.back_button_visible = false, 123 | } 124 | } 125 | } 126 | 127 | fn main() { 128 | let logfile = RollingFileAppender::new( 129 | Rotation::NEVER, 130 | Path::new(&env::var("HOME").unwrap()).join(".local/share/"), 131 | "rhino-setup.log", 132 | ) 133 | .with_max_level(tracing::Level::DEBUG); 134 | 135 | let stdout = std::io::stdout.with_max_level(tracing::Level::INFO); 136 | 137 | tracing_subscriber::fmt() 138 | .with_max_level(tracing::Level::DEBUG) 139 | .with_writer(logfile.and(stdout)) 140 | .init(); 141 | 142 | adw::init().unwrap(); 143 | 144 | // Prepare i18n 145 | gettextrs::setlocale(LocaleCategory::LcAll, ""); 146 | gettextrs::bindtextdomain(GETTEXT_PACKAGE, LOCALEDIR).expect("Unable to bind the text domain"); 147 | gettextrs::textdomain(GETTEXT_PACKAGE).expect("Unable to switch to the text domain"); 148 | 149 | glib::set_application_name(&gettext("Rhino Setup")); 150 | 151 | let res = gio::Resource::load(RESOURCES_FILE).expect("Could not load gresource file"); 152 | gio::resources_register(&res); 153 | 154 | let provider = gtk::CssProvider::new(); 155 | provider.load_from_resource("/org/rhinolinux/RhinoSetup/style.css"); 156 | 157 | if let Some(display) = gdk::Display::default() { 158 | gtk::style_context_add_provider_for_display( 159 | &display, 160 | &provider, 161 | gtk::STYLE_PROVIDER_PRIORITY_APPLICATION, 162 | ); 163 | } 164 | 165 | gtk::Window::set_default_icon_name(APP_ID); 166 | 167 | let app = main_application(); 168 | app.set_application_id(Some(APP_ID)); 169 | app.set_resource_base_path(Some("/org/rhinolinux/RhinoSetup/")); 170 | 171 | main_application() 172 | .downcast_ref::() 173 | .unwrap() 174 | .style_manager() 175 | .set_color_scheme(adw::ColorScheme::PreferDark); 176 | 177 | let app = RelmApp::from_app(app); 178 | app.run::(()); 179 | } 180 | -------------------------------------------------------------------------------- /src/meson.build: -------------------------------------------------------------------------------- 1 | global_conf = configuration_data() 2 | global_conf.set_quoted('APP_ID', application_id) 3 | global_conf.set_quoted('PKGDATADIR', pkgdatadir) 4 | global_conf.set_quoted('PROFILE', profile) 5 | global_conf.set_quoted('VERSION', version + version_suffix) 6 | global_conf.set_quoted('GETTEXT_PACKAGE', gettext_package) 7 | global_conf.set_quoted('LOCALEDIR', localedir) 8 | config = configure_file( 9 | input: 'config.rs.in', 10 | output: 'config.rs', 11 | configuration: global_conf 12 | ) 13 | # Copy the config.rs output to the source directory. 14 | run_command( 15 | 'cp', 16 | meson.project_build_root() / 'src' / 'config.rs', 17 | meson.project_source_root() / 'src' / 'config.rs', 18 | check: true 19 | ) 20 | 21 | cargo_options = [ '--manifest-path', meson.project_source_root() / 'Cargo.toml' ] 22 | cargo_options += [ '--target-dir', meson.project_build_root() / 'src' ] 23 | 24 | if get_option('profile') == 'default' 25 | cargo_options += [ '--release' ] 26 | rust_target = 'release' 27 | message('Building in release mode') 28 | else 29 | rust_target = 'debug' 30 | message('Building in debug mode') 31 | endif 32 | 33 | if get_option('profile') != 'CI' 34 | cargo_build = custom_target( 35 | 'cargo-build', 36 | build_by_default: true, 37 | build_always_stale: true, 38 | output: meson.project_name(), 39 | console: true, 40 | install: true, 41 | install_dir: bindir, 42 | depends: resources, 43 | command: [ 44 | cargo, 'build', 45 | cargo_options, 46 | '&&', 47 | 'cp', 'src' / rust_target / meson.project_name(), '@OUTPUT@', 48 | ] 49 | ) 50 | endif 51 | -------------------------------------------------------------------------------- /src/package_manager.rs: -------------------------------------------------------------------------------- 1 | use gettextrs::gettext; 2 | use relm4::adw::prelude::*; 3 | use relm4::{adw, gtk, Component, ComponentParts, ComponentSender}; 4 | 5 | use crate::COMMANDS; 6 | 7 | #[derive(Debug)] 8 | #[allow(clippy::struct_excessive_bools)] 9 | pub(crate) struct PackageManagerModel { 10 | install_flatpak: bool, 11 | install_flatpak_beta: bool, 12 | install_flatpak_flatseal: bool, 13 | install_nix: bool, 14 | install_snap: bool, 15 | install_appimage: bool, 16 | install_appimage_am: bool, 17 | } 18 | 19 | #[derive(Debug)] 20 | pub(crate) enum PackageManagerInput { 21 | /// Represents the Flatpak switch states 22 | Flatpak(bool), 23 | FlatpakBeta(bool), 24 | FlatpakFlatSeal(bool), 25 | /// Represents the Nix switch state 26 | Nix(bool), 27 | /// Represents the Snap switch state 28 | Snap(bool), 29 | #[allow(clippy::doc_markdown)] 30 | /// Represents the AppImage switch states 31 | AppImage(bool), 32 | AppImageAM(bool), 33 | } 34 | 35 | #[derive(Debug)] 36 | pub(crate) enum PackageManagerOutput { 37 | /// Move to the next page 38 | NextPage, 39 | } 40 | 41 | #[relm4::component(pub)] 42 | impl Component for PackageManagerModel { 43 | type CommandOutput = (); 44 | type Init = (); 45 | type Input = PackageManagerInput; 46 | type Output = PackageManagerOutput; 47 | type Widgets = PackageManagerWidgets; 48 | 49 | view! { 50 | #[root] 51 | adw::Bin { 52 | set_halign: gtk::Align::Fill, 53 | set_valign: gtk::Align::Fill, 54 | set_hexpand: true, 55 | 56 | adw::StatusPage { 57 | set_halign: gtk::Align::Fill, 58 | set_valign: gtk::Align::Fill, 59 | set_hexpand: true, 60 | 61 | set_icon_name: Some("rhinosetup-package-symbolic"), 62 | set_title: &gettext("Package Manager"), 63 | set_description: Some(&gettext("Choose one or more package managers to install")), 64 | 65 | gtk::Box { 66 | set_orientation: gtk::Orientation::Vertical, 67 | set_vexpand: true, 68 | set_hexpand: true, 69 | set_valign: gtk::Align::Center, 70 | 71 | adw::PreferencesPage { 72 | add = &adw::PreferencesGroup { 73 | #[name="flatpak"] 74 | adw::ExpanderRow { 75 | set_title: "Flatpak", 76 | set_subtitle: &gettext("Will also configure the Flathub repository."), 77 | set_tooltip_text: Some(&gettext("System for application virtualization.")), 78 | add_action = >k::Switch { 79 | set_valign: gtk::Align::Center, 80 | set_active: false, 81 | connect_active_notify[sender] => move |switch| { 82 | sender.input(Self::Input::Flatpak(switch.is_active())); 83 | } 84 | }, 85 | #[name="flatpak_beta"] 86 | add_row = &adw::ActionRow { 87 | set_title: "Flatpak Beta Channel", 88 | set_subtitle: &gettext("Allows software to be installed from the Flatpak Beta Channel"), 89 | set_tooltip_text: Some(&gettext("Enable Flatpak Beta Channel.")), 90 | set_sensitive: false, 91 | #[name="flatpak_beta_switch"] 92 | add_suffix = >k::Switch { 93 | set_valign: gtk::Align::Center, 94 | set_active: false, 95 | connect_active_notify[sender] => move |switch| { 96 | sender.input(PackageManagerInput::FlatpakBeta(switch.is_active())); 97 | } 98 | } 99 | }, 100 | #[name="flatpak_flatseal"] 101 | add_row = &adw::ActionRow { 102 | set_title: "Flatseal", 103 | set_subtitle: &gettext("Manage Flatpak permissions"), 104 | set_tooltip_text: Some(&gettext("Enable Flatseal permission manager.")), 105 | set_sensitive: false, 106 | #[name="flatpak_flatseal_switch"] 107 | add_suffix = >k::Switch { 108 | set_valign: gtk::Align::Center, 109 | set_active: false, 110 | connect_active_notify[sender] => move |switch| { 111 | sender.input(PackageManagerInput::FlatpakFlatSeal(switch.is_active())); 112 | } 113 | } 114 | } 115 | }, 116 | adw::ActionRow { 117 | set_title: "Nix", 118 | set_subtitle: &gettext("Will also configure the nixpkgs-unstable channel."), 119 | set_tooltip_text: Some(&gettext("Purely functional package manager.")), 120 | 121 | add_suffix = >k::Switch { 122 | set_valign: gtk::Align::Center, 123 | set_active: false, 124 | connect_active_notify[sender] => move |switch| { 125 | sender.input(Self::Input::Nix(switch.is_active())); 126 | } 127 | } 128 | }, 129 | adw::ActionRow { 130 | set_title: "Snap", 131 | set_subtitle: &gettext("Uses the Snapcraft repository. Default in Ubuntu."), 132 | set_tooltip_text: Some(&gettext("Software deployment and package management system developed by Canonical.")), 133 | 134 | add_suffix = >k::Switch { 135 | set_valign: gtk::Align::Center, 136 | set_active: false, 137 | connect_active_notify[sender] => move |switch| { 138 | sender.input(Self::Input::Snap(switch.is_active())); 139 | } 140 | } 141 | }, 142 | #[name="appimage"] 143 | adw::ExpanderRow { 144 | set_title: "AppImage", 145 | set_subtitle: &gettext("Will install the necessary dependencies to run AppImages."), 146 | set_tooltip_text: Some(&gettext("Self-contained and compressed executable format for the Linux platform.")), 147 | 148 | add_action = >k::Switch { 149 | set_valign: gtk::Align::Center, 150 | set_active: false, 151 | connect_active_notify[sender] => move |switch| { 152 | sender.input(Self::Input::AppImage(switch.is_active())); 153 | } 154 | }, 155 | #[name="appimage_am"] 156 | add_row = &adw::ActionRow { 157 | set_title: "AM", 158 | set_subtitle: &gettext("A command line interface to install AppImages."), 159 | set_tooltip_text: Some(&gettext("Enable the AM package manager.")), 160 | set_sensitive: false, 161 | #[name="appimage_am_switch"] 162 | add_suffix = >k::Switch { 163 | set_valign: gtk::Align::Center, 164 | set_active: false, 165 | connect_active_notify[sender] => move |switch| { 166 | sender.input(PackageManagerInput::AppImageAM(switch.is_active())); 167 | } 168 | } 169 | } 170 | } 171 | } 172 | }, 173 | 174 | gtk::Button::with_label(&gettext("Next")) { 175 | set_halign: gtk::Align::Center, 176 | set_css_classes: &["pill", "suggested-action"], 177 | 178 | connect_clicked[sender] => move |_| { 179 | sender.output(Self::Output::NextPage).unwrap(); 180 | } 181 | } 182 | } 183 | } 184 | } 185 | } 186 | 187 | fn init( 188 | _init: Self::Init, 189 | root: Self::Root, 190 | sender: ComponentSender, 191 | ) -> ComponentParts { 192 | let model = PackageManagerModel { 193 | install_flatpak: false, 194 | install_flatpak_beta: false, 195 | install_flatpak_flatseal: false, 196 | install_nix: false, 197 | install_snap: false, 198 | install_appimage: false, 199 | install_appimage_am: false, 200 | }; 201 | 202 | let widgets = view_output!(); 203 | 204 | ComponentParts { model, widgets } 205 | } 206 | 207 | #[allow(clippy::too_many_lines)] 208 | fn update_with_view( 209 | &mut self, 210 | widgets: &mut Self::Widgets, 211 | message: Self::Input, 212 | _sender: ComponentSender, 213 | _root: &Self::Root, 214 | ) { 215 | match message { 216 | Self::Input::Flatpak(switched_on) => { 217 | tracing::info!( 218 | "{}", 219 | if switched_on { 220 | "Enabling Flatpak installation" 221 | } else { 222 | "Disabling Flatpak installation" 223 | } 224 | ); 225 | 226 | self.install_flatpak = switched_on; 227 | 228 | widgets.flatpak.set_expanded(self.install_flatpak); 229 | widgets.flatpak_beta.set_sensitive(self.install_flatpak); 230 | widgets.flatpak_flatseal.set_sensitive(self.install_flatpak); 231 | if !self.install_flatpak { 232 | widgets.flatpak_beta_switch.set_active(false); 233 | widgets.flatpak_flatseal_switch.set_active(false); 234 | } 235 | }, 236 | Self::Input::FlatpakBeta(switched_on) => { 237 | tracing::info!( 238 | "{}", 239 | if switched_on { 240 | "Enabling Flatpak Beta installation" 241 | } else { 242 | "Disabling Flatpak Beta installation" 243 | } 244 | ); 245 | 246 | self.install_flatpak_beta = switched_on; 247 | }, 248 | Self::Input::FlatpakFlatSeal(switched_on) => { 249 | tracing::info!( 250 | "{}", 251 | if switched_on { 252 | "Enabling Flatseal installation" 253 | } else { 254 | "Disabling Flatseal installation" 255 | } 256 | ); 257 | 258 | self.install_flatpak_flatseal = switched_on; 259 | }, 260 | Self::Input::Nix(switched_on) => { 261 | tracing::info!( 262 | "{}", 263 | if switched_on { 264 | "Enabling Nix installation" 265 | } else { 266 | "Disabling Nix installation" 267 | } 268 | ); 269 | 270 | self.install_nix = switched_on; 271 | }, 272 | Self::Input::Snap(switched_on) => { 273 | tracing::info!( 274 | "{}", 275 | if switched_on { 276 | "Enabling Snap installation" 277 | } else { 278 | "Disabling Snap installation" 279 | } 280 | ); 281 | 282 | self.install_snap = switched_on; 283 | }, 284 | Self::Input::AppImage(switched_on) => { 285 | tracing::info!( 286 | "{}", 287 | if switched_on { 288 | "Enabling AppImage installation" 289 | } else { 290 | "Disabling AppImage installation" 291 | } 292 | ); 293 | self.install_appimage = switched_on; 294 | 295 | widgets.appimage.set_expanded(self.install_appimage); 296 | widgets.appimage_am.set_sensitive(self.install_appimage); 297 | if !self.install_appimage { 298 | widgets.appimage_am_switch.set_active(false); 299 | } 300 | }, 301 | Self::Input::AppImageAM(switched_on) => { 302 | tracing::info!( 303 | "{}", 304 | if switched_on { 305 | "Enabling AM installation" 306 | } else { 307 | "Disabling AM installation" 308 | } 309 | ); 310 | self.install_appimage_am = switched_on; 311 | }, 312 | } 313 | 314 | let mut commands: Vec<&str> = Vec::new(); 315 | 316 | if self.install_flatpak { 317 | commands.push("sudo apt-get install -y flatpak"); 318 | commands.push("flatpak remote-add --system --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo"); 319 | commands.push( 320 | "flatpak install --system flathub org.gtk.Gtk3theme.adw-gtk3 \ 321 | org.gtk.Gtk3theme.adw-gtk3-dark -y", 322 | ); 323 | commands.push( 324 | "sudo flatpak override --filesystem='xdg-config/gtk-3.0:ro' \ 325 | --filesystem='xdg-config/gtk-4.0:ro' --filesystem='xdg-data/icons:ro' \ 326 | --filesystem='xdg-data/themes:ro'", 327 | ); 328 | if self.install_flatpak_beta { 329 | commands.push("flatpak remote-add --system --if-not-exists flathub-beta https://flathub.org/beta-repo/flathub-beta.flatpakrepo"); 330 | } 331 | if self.install_flatpak_flatseal { 332 | commands.push("flatpak install --system flathub com.github.tchx84.Flatseal -y"); 333 | } 334 | } 335 | 336 | if self.install_nix { 337 | commands.push("sudo apt-get install -y nix-bin nix-setup-systemd"); 338 | commands.push("sudo groupadd -f nix-users"); 339 | commands.push("sudo usermod -a -G nix-users $USER"); 340 | commands.push("{ sudo systemctl enable nix-daemon.service || :; }"); 341 | commands.push("nix-channel --add https://nixos.org/channels/nixpkgs-unstable nixpkgs"); 342 | commands.push("nix-channel --update"); 343 | } 344 | 345 | if self.install_snap { 346 | commands.push("sudo apt-get install -y snapd"); 347 | } 348 | 349 | if self.install_appimage { 350 | commands.push("sudo apt-get install -y libfuse2"); 351 | if self.install_appimage_am { 352 | commands.push( 353 | "{ wget https://github.com/ivan-hc/AM/raw/main/INSTALL && sudo sh ./INSTALL \ 354 | && rm ./INSTALL; }", 355 | ); 356 | } 357 | } 358 | 359 | COMMANDS.write_inner().insert("package_manager", commands); 360 | } 361 | } 362 | -------------------------------------------------------------------------------- /src/progress.rs: -------------------------------------------------------------------------------- 1 | use std::io::{BufRead, BufReader}; 2 | use std::process::{Command, Stdio}; 3 | 4 | use gettextrs::gettext; 5 | use relm4::adw::prelude::*; 6 | use relm4::{ 7 | gtk, Component, ComponentController, ComponentParts, ComponentSender, Controller, 8 | SimpleComponent, 9 | }; 10 | 11 | use crate::config::PROFILE; 12 | use crate::COMMANDS; 13 | 14 | #[derive(Debug)] 15 | struct ProgressBarModel { 16 | /// The fraction of the progress bar completed. 17 | completed: f64, 18 | /// Total size of the progress bar. 19 | total: f64, 20 | } 21 | 22 | #[derive(Debug)] 23 | enum ProgressBarInput { 24 | /// Sent when a command finishes, and it's time to update the progress bar. 25 | Progress, 26 | } 27 | 28 | #[relm4::component] 29 | impl SimpleComponent for ProgressBarModel { 30 | /// Initialize with the total size of the progress bar. 31 | type Init = f64; 32 | type Input = ProgressBarInput; 33 | type Output = (); 34 | type Widgets = ProgressBarWidget; 35 | 36 | view! { 37 | gtk::ProgressBar { 38 | set_text: Some(&gettext("The changes are being applied. Please Wait...")), 39 | set_show_text: true, 40 | set_margin_top: 40, 41 | set_margin_start: 40, 42 | set_margin_bottom: 40, 43 | set_margin_end: 40, 44 | 45 | #[watch] 46 | set_fraction: model.completed 47 | } 48 | } 49 | 50 | fn init( 51 | init: Self::Init, 52 | root: Self::Root, 53 | _sender: ComponentSender, 54 | ) -> ComponentParts { 55 | let model = ProgressBarModel { 56 | completed: 0.0, 57 | total: init, 58 | }; 59 | 60 | let widgets = view_output!(); 61 | 62 | ComponentParts { model, widgets } 63 | } 64 | 65 | fn update(&mut self, message: Self::Input, _sender: ComponentSender) { 66 | match message { 67 | Self::Input::Progress => self.completed += 1.0 / self.total, 68 | } 69 | } 70 | } 71 | 72 | pub(crate) struct ProgressModel { 73 | /// This is lazily initialized when the [COMMANDS] are available, i.e, the 74 | /// user has progressed to this page. 75 | progress_bar: Option>, 76 | } 77 | 78 | #[derive(Debug)] 79 | pub(crate) enum ProgressInput { 80 | /// Sent by [`crate::CarouselPagesModel`] when the user has finished 81 | /// browsing through all the other pages. 82 | StartInstallation, 83 | } 84 | 85 | #[derive(Debug)] 86 | pub(crate) enum ProgressOutput { 87 | InstallationComplete, 88 | InstallationError, 89 | } 90 | 91 | #[relm4::component(pub)] 92 | impl SimpleComponent for ProgressModel { 93 | type Init = (); 94 | type Input = ProgressInput; 95 | type Output = ProgressOutput; 96 | type Widgets = ProgressWidget; 97 | 98 | view! { 99 | #[name(root)] 100 | #[root] 101 | gtk::Box { 102 | set_orientation: gtk::Orientation::Vertical, 103 | set_valign: gtk::Align::Center, 104 | } 105 | } 106 | 107 | fn pre_view() { 108 | if let Some(progress_bar) = model.progress_bar.as_ref() { 109 | let widget = progress_bar.widget(); 110 | if widget.parent().is_none() { 111 | root.append(widget); 112 | } 113 | } 114 | } 115 | 116 | fn init( 117 | _init: Self::Init, 118 | root: Self::Root, 119 | _sender: ComponentSender, 120 | ) -> ComponentParts { 121 | let model = ProgressModel { progress_bar: None }; 122 | 123 | let widgets = view_output!(); 124 | 125 | ComponentParts { model, widgets } 126 | } 127 | 128 | #[allow(clippy::cast_precision_loss)] 129 | fn update(&mut self, message: Self::Input, sender: ComponentSender) { 130 | match message { 131 | Self::Input::StartInstallation => { 132 | tracing::info!("Starting installation"); 133 | 134 | COMMANDS.write_inner().insert( 135 | "pre_run", 136 | vec![ 137 | "sudo apt-get update", 138 | "sudo sed -i 's/ignore_stack=false/ignore_stack=true/g' /usr/bin/pacstall \ 139 | && TERM=linux pacstall -U pacstall master", 140 | ], 141 | ); 142 | 143 | let commands = COMMANDS.read_inner(); 144 | let commands = commands.values().flatten(); 145 | let mut commands_with_results = String::new(); 146 | 147 | // Aggregate all the commands. 148 | for command in commands.clone() { 149 | commands_with_results += &format!( 150 | "{command} && {{ echo ---successful---; }} || {{ echo ---failed---; }}; " 151 | ); 152 | } 153 | 154 | tracing::debug!("{commands_with_results}"); 155 | 156 | if PROFILE == "Devel" { 157 | sender.output(Self::Output::InstallationComplete).unwrap(); 158 | tracing::info!("Installation skipped"); 159 | return; 160 | } 161 | 162 | // Spawn a process to execute the commands 163 | let mut processor = Command::new("sh") 164 | .args([ 165 | "-c", 166 | &format!(r#"pkexec sh -c "{commands_with_results}" || echo ---failed---"#,), 167 | ]) 168 | .stdout(Stdio::piped()) 169 | .stderr(Stdio::piped()) 170 | .spawn() 171 | .unwrap(); 172 | 173 | let stdout_reader = BufReader::new(processor.stdout.take().unwrap()); 174 | 175 | // Initialize the progress_bar now, as the commands are available. 176 | self.progress_bar = Some( 177 | ProgressBarModel::builder() 178 | .launch(commands.count() as f64) 179 | .detach(), 180 | ); 181 | 182 | let progress_bar_sender = self.progress_bar.as_ref().unwrap().sender().clone(); 183 | relm4::spawn_blocking(move || { 184 | let mut error_occured = false; 185 | 186 | for line in stdout_reader.lines().map(Result::unwrap) { 187 | tracing::debug!("{line}"); 188 | 189 | if line.contains("---successful---") { 190 | progress_bar_sender 191 | .send(ProgressBarInput::Progress) 192 | .unwrap(); 193 | } else if line.contains("---failed---") { 194 | tracing::error!( 195 | "Error executing commands: {}", 196 | BufReader::new(processor.stderr.take().unwrap()) 197 | .lines() 198 | .map(Result::unwrap) 199 | .collect::() 200 | ); 201 | 202 | error_occured = true; 203 | sender.output(Self::Output::InstallationError).unwrap(); 204 | 205 | // Kill the processor to avoid any extra changes to the system. 206 | processor.kill().unwrap(); 207 | } 208 | } 209 | 210 | if !error_occured { 211 | sender.output(Self::Output::InstallationComplete).unwrap(); 212 | tracing::info!("Installation complete"); 213 | Command::new("pkexec") 214 | .args(["sh", "-c", "sudo apt remove -yq rhino-setup"]) 215 | .status() 216 | .unwrap(); 217 | } 218 | }); 219 | }, 220 | }; 221 | } 222 | } 223 | -------------------------------------------------------------------------------- /src/welcome.rs: -------------------------------------------------------------------------------- 1 | use std::iter::Cycle; 2 | use std::time::Duration; 3 | 4 | use gettextrs::gettext; 5 | use relm4::adw::prelude::*; 6 | use relm4::{adw, gtk, ComponentParts, ComponentSender, SimpleComponent}; 7 | 8 | pub(crate) struct WelcomeModel { 9 | title: &'static str, 10 | titles: Cycle>, 11 | } 12 | 13 | #[derive(Debug)] 14 | pub(crate) enum WelcomeInput { 15 | /// Indicates whether to change the title text. 16 | ChangeTitle, 17 | } 18 | 19 | #[derive(Debug)] 20 | pub(crate) enum WelcomeOutput { 21 | /// Move to the next page. 22 | NextPage, 23 | } 24 | 25 | #[relm4::component(pub)] 26 | impl SimpleComponent for WelcomeModel { 27 | type Init = (); 28 | type Input = WelcomeInput; 29 | type Output = WelcomeOutput; 30 | // AppWidgets is generated by the macro 31 | type Widgets = WelcomeWidgets; 32 | 33 | view! { 34 | #[root] 35 | adw::Bin { 36 | set_halign: gtk::Align::Fill, 37 | set_valign: gtk::Align::Fill, 38 | set_hexpand: true, 39 | 40 | adw::StatusPage { 41 | set_icon_name: Some("rhinosetup-welcome"), 42 | #[watch] 43 | set_title: model.title, 44 | set_description: Some(&gettext("Make your choices, this wizard will take care of everything.")), 45 | 46 | gtk::Button::with_label(&gettext("Let's Start")) { 47 | set_css_classes: &["pill", "suggested-action"], 48 | set_halign: gtk::Align::Center, 49 | 50 | connect_clicked[sender] => move|_| { 51 | sender.output(WelcomeOutput::NextPage).unwrap(); 52 | } 53 | } 54 | } 55 | } 56 | } 57 | 58 | // Initialize the UI. 59 | fn init( 60 | _counter: Self::Init, 61 | root: Self::Root, 62 | sender: ComponentSender, 63 | ) -> ComponentParts { 64 | let model = WelcomeModel { 65 | title: "Welcome!", 66 | titles: [ 67 | "Welcome", 68 | "Benvenuto", 69 | "Bienvenido", 70 | "Bienvenue", 71 | "Willkommen", 72 | "Bem-vindo", 73 | "Добро пожаловать", 74 | "欢迎", 75 | "ようこそ", 76 | "환영합니다", 77 | "أهلا بك", 78 | "ברוך הבא", 79 | "Καλώς ήρθατε", 80 | "Hoşgeldiniz", 81 | "Welkom", 82 | "Witamy", 83 | "Välkommen", 84 | "Tervetuloa", 85 | "Vítejte", 86 | "Üdvözöljük", 87 | "Bun venit", 88 | "Vitajte", 89 | "Tere tulemast", 90 | "Sveiki atvykę", 91 | "Dobrodošli", 92 | "خوش آمدید", 93 | "आपका स्वागत है", 94 | "স্বাগতম", 95 | "வரவேற்கிறோம்", 96 | "స్వాగతం", 97 | "स्वागत", 98 | "સુસ્વાગત છે", 99 | "ಸುಸ್ವಾಗತ", 100 | "സ്വാഗതം", 101 | "ᚹᛁᛚᚳᚢᛗᛖ", 102 | ] 103 | .into_iter() 104 | .cycle(), 105 | }; 106 | 107 | // Insert the macro code generation here 108 | let widgets = view_output!(); 109 | 110 | relm4::spawn_blocking(move || loop { 111 | sender.input(WelcomeInput::ChangeTitle); 112 | std::thread::sleep(Duration::new(1, 2)); 113 | }); 114 | 115 | ComponentParts { model, widgets } 116 | } 117 | 118 | fn update(&mut self, msg: Self::Input, _sender: ComponentSender) { 119 | match msg { 120 | WelcomeInput::ChangeTitle => { 121 | self.title = self.titles.next().unwrap(); 122 | tracing::trace!("Changing title to: {}", self.title); 123 | }, 124 | } 125 | } 126 | } 127 | --------------------------------------------------------------------------------