Fix TrisquelStudio-Controls

4 Antworten [Letzter Beitrag]
davidpgil
Offline
Beigetreten: 08/26/2015

I decided to uninstall ubuntustudio-controls and try the new trisquelstudio-controls to handle JACK in Trisquel 9 and it appears to be broken.

When I type:

systemctl status studio-system.service


● studio-system.service - Studio System CPU Governor Setting
Loaded: loaded (/lib/systemd/system/studio-system.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sun 2020-05-17 09:45:36 EDT; 20s ago
Process: 4653 ExecStart=/lib/systemd/ubuntustudio (code=exited, status=203/EXEC)
Main PID: 4653 (code=exited, status=203/EXEC)

May 17 09:45:36 thinkpadw541 systemd[1]: Starting Studio System CPU Governor Setting...
May 17 09:45:36 thinkpadw541 systemd[4653]: studio-system.service: Failed to execute command: No such file or directory
May 17 09:45:36 thinkpadw541 systemd[4653]: studio-system.service: Failed at step EXEC spawning /lib/systemd/ubuntustudio: No such file or directory
May 17 09:45:36 thinkpadw541 systemd[1]: studio-system.service: Main process exited, code=exited, status=203/EXEC
May 17 09:45:36 thinkpadw541 systemd[1]: studio-system.service: Failed with result 'exit-code'.
May 17 09:45:36 thinkpadw541 systemd[1]: Failed to start Studio System CPU Governor Setting.

How can this be fixed? I see the reference to "/lib/systemd/ubuntustudio" which I suspect should instead say "trisquelstudio"?

davidpgil
Offline
Beigetreten: 08/26/2015

... *crickets* ... I guess I will ask about this in the next trisquel-dev meeting :D

chaosmonk

I am a member!

I am a translator!

Offline
Beigetreten: 07/07/2017

I have a new version of the package helper for ubuntustudio-controls which I think should work, but I don't have a Trisquel 9 system handy to test it on. I am also having a problem with Trisquel's Gitlab instance and can't push my changes. Can you test the following package helper and tell me if it works for you? I have changed the following:

* Rebrand in a way less likely to be broken again by upstream changes
* Use the generic name "Studio Setup Utility" rather than "Trisquel Studio Controls" since there is no distro called "Trisquel Studio"
* Backport from Ubuntu 20.04 instead of the Ubuntu Studio PPA, which no longer supports 18.04
* Replace the Ubuntu Studio logo with a generic icon

#!/bin/sh
#
# Copyright (C) 2020 chaosmonk <name at domain>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#

VERSION=1
EXTERNAL='deb-src http://archive.ubuntu.com/ubuntu focal universe'
REPOKEY=3B4FE6ACC0B21F32
BACKPORTS=true

. ./configure

sed -i 's/Icon=ubuntustudio-controls/Icon=configure/' usr/share/applications/ubuntustudio-controls.desktop

sed -i 's/Ubuntu Studio Controls/Studio Setup Utility/g' \
usr/share/applications/ubuntustudio-controls.desktop \
usr/share/ubuntustudio-controls/ubuntustudio-controls.glade \
usr/share/polkit-1/actions/com.ubuntustudio.pkexec.ubuntustudio-controls.policy \
debian/control

replace ubuntustudio-controls studio-setup-utility .
find -execdir rename 's/ubuntustudio-controls/studio-setup-utility/' '{}' \+

sed -i 's/Source: studio-setup-utility/Source: ubuntustudio-controls/' debian/control

changelog "Import from Ubuntu" "Rebrand for Trisquel"

compile

davidpgil
Offline
Beigetreten: 08/26/2015

Thank you. I see there is some type of regEx going on. Ok I will test it, I'll get myself setup again for Trisquel dev again.

strypey
Offline
Beigetreten: 05/14/2015

> since there is no distro called "Trisquel Studio"

... but it would be so awesome if there was! Or at least some FSDG compliant distro for multimedia production.