-
Notifications
You must be signed in to change notification settings - Fork 131
[WIP] Added support for config file #412
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
jay763190097
wants to merge
10
commits into
linuxmint:master
Choose a base branch
from
jay763190097:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
6a9f7c6
Added support for config file
jay763190097 b8a616c
upgrade version
jay763190097 43e1926
upgrade version
jay763190097 e47a9ba
update descriptions
jay763190097 28937be
25.0.7
clefebvre a63dc32
remove .vscode
jay763190097 0ba6012
Merge branch 'master' of github.com:linuxmint/timeshift
jay763190097 11cf361
remove scdoc
jay763190097 64f02fa
removed timeshift-gtk-env
jay763190097 9e33067
Merge branch 'master' into master
jay763190097 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -21,6 +21,7 @@ sudo apt install meson \ | |
| help2man \ | ||
| gettext \ | ||
| valac \ | ||
| libvala-dev \ | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This shouldn't be necessary to build. |
||
| libvte-2.91-dev \ | ||
| libgee-0.8-dev \ | ||
| libjson-glib-dev \ | ||
|
|
@@ -50,6 +51,19 @@ meson compile -C build | |
|
|
||
| ### Step 4. Install Timeshift | ||
|
|
||
| Install | ||
| ```bash | ||
| sudo meson install -C build | ||
| ``` | ||
| Uninstall | ||
| ``` | ||
| cd build | ||
| sudo ninja uninstall | ||
| ``` | ||
|
|
||
| ### Step 5. Build the debian package | ||
| #### Package | ||
| ```bash | ||
| sudo apt install debhelper-compat=10 | ||
| dpkg-buildpackage -us -uc | ||
| ``` | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -149,6 +149,7 @@ public class Main : GLib.Object{ | |
| public string cmd_target_device = ""; | ||
| public string cmd_backup_device = ""; | ||
| public string cmd_snapshot = ""; | ||
| public string cmd_config = ""; | ||
| public bool cmd_confirm = false; | ||
| public bool cmd_verbose = true; | ||
| public bool cmd_scripted = false; | ||
|
|
@@ -298,7 +299,7 @@ public class Main : GLib.Object{ | |
| string local_exec = args[0]; | ||
| string local_conf = app_path + "/timeshift.json"; | ||
| string local_share = app_path + "/share"; | ||
|
|
||
| log_msg("cmd_config" + ": " + cmd_config); | ||
| var f_local_exec = File.new_for_path(local_exec); | ||
| if (f_local_exec.query_exists()){ | ||
|
|
||
|
|
@@ -316,6 +317,10 @@ public class Main : GLib.Object{ | |
| //timeshift is running from system directory - update app_path | ||
| this.app_path = get_cmd_path("timeshift"); | ||
| } | ||
| var f_config_path = File.new_for_path(cmd_config); | ||
| if (f_config_path.query_exists()){ | ||
| this.app_conf_path = cmd_config; | ||
| } | ||
|
|
||
| // initialize lists ----------------- | ||
|
|
||
|
|
@@ -573,6 +578,9 @@ public class Main : GLib.Object{ | |
| case "--list-devices": | ||
| app_mode = "list-devices"; | ||
| break; | ||
| case "--config": | ||
| cmd_config = args[++k]; | ||
| break; | ||
| } | ||
| } | ||
| } | ||
|
|
@@ -684,6 +692,7 @@ public class Main : GLib.Object{ | |
| if (entry.mount_point.has_prefix("/srv")){ continue; } | ||
| if (entry.mount_point.has_prefix("/sys")){ continue; } | ||
| if (entry.mount_point.has_prefix("/system")){ continue; } | ||
| if (entry.mount_point.has_prefix("/work")){ continue; } | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This isn't a standard folder, remove please |
||
| if (entry.mount_point.has_prefix("/tmp")){ continue; } | ||
| if (entry.mount_point.has_prefix("/usr")){ continue; } | ||
| if (entry.mount_point.has_prefix("/var")){ continue; } | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't modify the changelog, this is done at release time.