Getting the below deprecation warning when building Nutty from source
pop-os@pop-os:~/nutty/build$ ninja
[1/15] Compiling Vala source src/constants.vala ../src/main.vala ../src/nutty..../src/info.vala ../src/window.vala ../src/settings.vala ../src/shortcuts.vala
../src/nutty.vala:122.3-122.51: warning: `Granite.Services.Paths' has been deprecated since 5.5.0. Use GLib.Environment
122 | public static Granite.Services.Paths app_xdg_path;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/nutty.vala:145.23-145.44: warning: `Granite.Services.Paths' has been deprecated since 5.5.0. Use GLib.Environment
145 | app_xdg_path = new Granite.Services.Paths();
| ^~~~~~~~~~~~~~~~~~~~~~
../src/nutty.vala:146.4-146.26: warning: Access to static member `Granite.Services.Paths.initialize' with an instance reference
146 | app_xdg_path.initialize (Constants.app_id, Constants.NUTTY_SCRIPT_PATH);
| ^~~~~~~~~~~~~~~~~~~~~~~
../src/nutty.vala:146.4-146.26: warning: `Granite.Services.Paths' has been deprecated since 5.5.0. Use GLib.Environment
146 | app_xdg_path.initialize (Constants.app_id, Constants.NUTTY_SCRIPT_PATH);
| ^~~~~~~~~~~~~~~~~~~~~~~
../src/nutty.vala:147.24-147.52: warning: Access to static member `Granite.Services.Paths.user_data_folder' with an instance reference
147 | nutty_config_path = app_xdg_path.user_data_folder.get_path();
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/nutty.vala:147.24-147.52: warning: `Granite.Services.Paths' has been deprecated since 5.5.0. Use GLib.Environment
147 | nutty_config_path = app_xdg_path.user_data_folder.get_path();
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/devices.vala:451.6-451.51: warning: Access to static member `Granite.Services.Paths.user_config_folder' with an instance reference
451 | NuttyApp.Nutty.app_xdg_path.user_config_folder.get_path() + "/" + Constants.nutty_monitor_scheduler_backup_file_name,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/devices.vala:451.6-451.51: warning: `Granite.Services.Paths' has been deprecated since 5.5.0. Use GLib.Environment
451 | NuttyApp.Nutty.app_xdg_path.user_config_folder.get_path() + "/" + Constants.nutty_monitor_scheduler_backup_file_name,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/devices.vala:452.6-452.50: warning: Access to static member `Granite.Services.Paths.user_cache_folder' with an instance reference
452 | NuttyApp.Nutty.app_xdg_path.user_cache_folder.get_path() + "/root_"+ Environment.get_user_name () + "_crontab_temp.txt"
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/devices.vala:452.6-452.50: warning: `Granite.Services.Paths' has been deprecated since 5.5.0. Use GLib.Environment
452 | NuttyApp.Nutty.app_xdg_path.user_cache_folder.get_path() + "/root_"+ Environment.get_user_name () + "_crontab_temp.txt"
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/devices.vala:459.6-459.51: warning: Access to static member `Granite.Services.Paths.user_config_folder' with an instance reference
459 | NuttyApp.Nutty.app_xdg_path.user_config_folder.get_path() + "/" + Constants.nutty_alert_scheduler_backup_file_name,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/devices.vala:459.6-459.51: warning: `Granite.Services.Paths' has been deprecated since 5.5.0. Use GLib.Environment
459 | NuttyApp.Nutty.app_xdg_path.user_config_folder.get_path() + "/" + Constants.nutty_alert_scheduler_backup_file_name,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/devices.vala:460.6-460.50: warning: Access to static member `Granite.Services.Paths.user_cache_folder' with an instance reference
460 | NuttyApp.Nutty.app_xdg_path.user_cache_folder.get_path() + "/user_"+Environment.get_user_name () + "_crontab_temp.txt"
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/devices.vala:460.6-460.50: warning: `Granite.Services.Paths' has been deprecated since 5.5.0. Use GLib.Environment
460 | NuttyApp.Nutty.app_xdg_path.user_cache_folder.get_path() + "/user_"+Environment.get_user_name () + "_crontab_temp.txt"
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Compilation succeeded - 14 warning(s)
[4/4] Linking target com.github.babluboy.nutty
Fix this by migrating the code to new specification.
Getting the below deprecation warning when building Nutty from source
Fix this by migrating the code to new specification.